Archive: Make a silent installer wait when called from a batch file


Make a silent installer wait when called from a batch file
I created an NSIS installer that works great (Thank goodness for NSIS)! I would like to be able to run my installer from a Windows batch file with the silent option (/S) and have the batch file wait until the installer completes before proceeding on. My problem is that when I call the installer with the silent option (/S) it appears to go off on a separate thread and the batch file keeps on chugging.

Is there any easy way to fix this? Do I need to wrap one NSIS installer with another? I read quite a few threads on the use of execWait with a _? parameter as related to running uninstallers. Is that a or the solution.

Any guidance would be greatly appreciated. Thank you.


So, if you start your installer from within your windows batch file with

start /wait 'installer.exe /S'
the batch file does not wait for the installer to finish?
CF

I think the correct syntax would be:
start /wait installer.exe /S
or
start "" /wait "c:\some path\installer.exe" /S
if you need quotes (on NT)