Archive: Execwait problem


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


Perhaps the installer is run as admin? Or param needs to be in quotes?


why are you using cmd /c ?


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.


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


Thanks a ton :).Yeah it worked.