Hi
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
This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Post Istall
Started by
karkrish
, Apr 29 2011 10:42
3 replies to this topic
Posted 29 April 2011 - 14:37
Yes, I could see spaces being an issue based on how you're calling your batch file, so here is an alternative approach to address that problem:
CODE |
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
Yes , I have already added LongPathToQuote and checked . But the same issue exists .
Thanks
Thanks
Posted 03 May 2011 - 14:34
Hmm, I would step through it with the debugger then and see if that reveals anything.