Archive: Getting a silent install to wait


Getting a silent install to wait
So, I'm using NSIS, and as part of my install procedure, I'm installing another package via an NSIS installer (CopSSH, if you care).

I know about the /S switch. The problem is (as I determined by trying that at the prompt) is that it returns immediately. I want to run some commands after CopSSH is installed, but I want to wait until it is finished. If the CopSSH installer returns immediately and runs in the back ground, how will I know when it is done?

I found a reference to using ExecWait (which I've used for other things), but if the installer returns right away, the parent installer will have nothing to "wait for."

Is there a way to get the installer to wait until it's done before it returns?

Thanks!


it either returns immediately(possibly spawning a child process) OR runs in the background

if ExecWait does not do the trick, ask the CopSSH guys to fix their installer or try http://nsis.sourceforge.net/ExecWait...th_Job_Objects


Originally posted by Anders
it either returns immediately(possibly spawning a child process) OR runs in the background

if ExecWait does not do the trick, ask the CopSSH guys to fix their installer or try http://nsis.sourceforge.net/ExecWait...th_Job_Objects
Thanks! I'll probably use that. When I run the CopSSH installer with /S, I noticed that the process list showed NSIS.exe running. So, I don't know if that's standard procedure, or if NSIS.exe is what the image name usually is.