bubunia2000
11th November 2009 11:31 UTC
Execwait problem
Hi all,
I am trying to add a code to execute an exe to cleanup processes using ExecWait during uninstall.
ExecWait "cmd /c $DESKTOP\cleanup.exe"
Sleep 10
When I run it in the Start -> Run (cmd /c $DESKTOP\cleanup.exe") it works. But from script it doesnot work.
Am I missing anything?
Regards
Pradeep
MSG
11th November 2009 12:37 UTC
Perhaps the installer is run as admin? Or param needs to be in quotes?
Anders
11th November 2009 12:51 UTC
why are you using cmd /c ?
bubunia2000
11th November 2009 15:57 UTC
Execwait problem
the cmd /c is used to invoke a particular exe from Start-> Run. It will create a window shell and execute the command.
Anders
11th November 2009 16:29 UTC
if cleanup.exe is a console app, it will get a "window shell", no need for cmd.exe, if it is not a console app, using cmd.exe makes no sense. If you wanted to keep the window open, you would use cmd.exe /k
bubunia2000
11th November 2009 17:06 UTC
Thanks a ton :).Yeah it worked.