Skip to content
⌘ NSIS Forum Archive

Execwait problem

6 posts

bubunia2000#

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
bubunia2000#
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#
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