Archive: ExecWait and Visual Studio Express


ExecWait and Visual Studio Express
I just found another bug with my installer that installs Visual Studio 2005 Express and it's Service Pack.
The problem: NSIS downloads and runs the installer for VS 2005 Express from microsoft.com using ExecWait, but when it runs the VSE, the VSE installer self-extracts something really fast, and then setup starts. When the self-extracting ends, VSE's service pack gets called by NSIS to start (being the next component to install), and then there is an error because VSE hasn't finished installing yet. Is there a way to make ExecWait wait for the second part of the VSE installer? I can't find a VSE installer that doesn't self-extract first...

Thanks in advance for helping!

Edit: this is the best I could find about the installer, yet none of the command line calls help with ExecWait... http://support.microsoft.com/?id=197147


You could unpack the VSE installer yourself and include only the "unpacked" files in your installer. When VSE is to be installer, you let your installer extract the VSE setup files to the $PLUGINSDIR folder. Then you run the actual "Setup.exe" from the $PLUGINSDIR directory via ExecWait. Should work that way...


Like that:

InitPluginsDir
SetOutPath "$PLUGINSDIR\VSE_Install"
File /r "C:\Redist\VSE Setup Files\*.*"
ExecWait '"$PLUGINSDIR\VSE_Install\Setup.exe"' $0
RMDir /r "$PLUGINSDIR\VSE_Install"