Archive: NSIS sometimes skips steps


NSIS sometimes skips steps
I am using NSIS to install a .Net Office Extension project. In order for the app to work, it needs the following installed:

vstor30.exe
vstor30sp1.exe

The piece that handles that is as follows:

Section "VSTO system 3.0 Runtime" SEC03
File "Data\vstor30.exe"
ExecWait "Data\vstor30.exe /qr"
SectionEnd

Section "VSTO system 3.0 Runtime SP1" SEC04
File "Data\vstor30sp1.exe"
ExecWait "Data\vstor30sp1.exe /quiet"
SectionEnd

Yet, for some people, the installer attempts to install vstor30sp1 without installing vstor30. This, of course, causes the installer to fail.

Any ideas what might be causing this?

I am grateful for any suggestions...


Presuming SEC03 does execute (DetailPrint / messagebox are your friend), it could be that "Data\vstor30.exe" exits immediately for some reason (either because it fails to install entirely (check its exit code), or because it launches a separate process which ExecWait doesn't know about) thus causing the next section with "Data\vstor30sp1.exe" to execute straight away.


Ok. Thanks for the advice!