Archive: Execwait , how come it doesn't wait?


Execwait , how come it doesn't wait?
OMG, when i try to use execwait "'myservice.exe" -uninstall' to unregister the service,
cause unregistering the service takes a while, but execwait can't wait for it done, then continue to process to the next line...

Really don't why?


Bad quotation!

ExecWait '"$INSTDIR\command.exe" parameters'. If you don't put it in quotes it will not work on Windows 9x with or without parameters.

sorry. I type it wrongly. Acctually, in my code like this:

Execwait '"$OldInstallDir\MyService.exe" -UnregServer'

but never wait for unregistered the service done, then go to next line?
why?


Better use IfFileExists to detect the valid path file.
Are you 100% sure that $OldInstallDir\MyService.exe is there?
Maybe $OldInstallDir is wrong


yes, I am 100% sure that this files is in right folder. (cause' i used messagebox to show it up)....

the problem is that execwait acctually doesn't wait for the unregister done.

Weird.....


Probably the '"MyService.exe" -UnregServer' all it actually does is to call a native windows service so ExecWait normally detects the end of MyService.exe thus there is nothing to wait.