Posted 29 April 2011 - 10:42
I have created exe using installshield 6.2 . If iam trying to install as administrator , It works fine (post install bat files are getting called) . If the same exe is installed as some other user , post install bat files are not getting called but it works fine if i set temp directory as C:\test (non space directory) .
This is the command i have called in post install
cmd.exe /c "SUPPORTDIR/a.bat" "some arguments" > logfile 2>&1
logfile itself not created .
Thanks in advance
Posted 29 April 2011 - 14:37
|szApp = "cmd.exe";|
szBatch = SUPPORTDIR ^ "a.bat";
// ENCLOSE THE BATCH FILE IN DOUBLE QUOTES DUE TO LONG FILENAMES
nResult = LongPathToQuote(szBatch, TRUE);
szArgs = "some arguments";
szCmdLine = "/c " + szBatch + szArgs + "> logfile 2>&1";
nResult = LaunchAppAndWait(szApp, szCmdLine, WAIT);
where szApp, szBatch, szArgs, & szCmdLine are STRING and nResult is NUMBER.
Hope it helps.
Edited by Taco Bell, 29 April 2011 - 14:38.
Posted 29 April 2011 - 17:44
Posted 03 May 2011 - 14:34