Air'V
8th July 2004 10:02 UTC
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
Joost Verburg
8th July 2004 11:59 UTC
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.
Air'V
8th July 2004 12:34 UTC
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 ?
Joost Verburg
8th July 2004 13:34 UTC
You can check for files, registry keys or the process itself. There have been some topics about checking for processes.
zimsms
8th July 2004 18:07 UTC
see this thread.