Archive: ExecWait problems


ExecWait problems
Hi,
I'm a NSIS newbie trying to invoke an installer in my script by calling ExecWait "C:\Path\To\Installer.exe"
The thing is ExecWait doesn't actually wait for this installer to finish. I suppose this embedded installer creates a new process and NSIS can't detect this one's end...
In fact, the embedded installer installs some dlls needed by the main program (no user interaction), I can't modify it. I need to do extra treatments just after it finished but I realized NSIS calls the next section before it ends.

How could I ensure the embedded installer finishes to invoke my special treatments just after ?
Thanks in advance


Check whether the installer has a command line options that allows you to change this behavior.

If not, you can create a loop that checks every second whether the installer has finished or not.


Thank you for your answer.
I'll find out for the argument way.
I thought about the second option but didn't know the condition that let me know the installer has finished. Any idea on this point ?


You can check for files, registry keys or the process itself. There have been some topics about checking for processes.


see this thread.