Skip to content
⌘ NSIS Forum Archive

ExecWait wont wait when burned to DVD

5 posts

Vino87#

ExecWait wont wait when burned to DVD

Hi,

I made an installer for a mod that also installs a game, a patch and a game expansion during this mods installation. I use execWait to run each of these components (setup.exe) 1 by 1. This works fine until i try burning it to a DVD. When I do it tries to run the first to exes 1 right after the other. Anyone know why this might be happening. If i copy the installer to the HD from the dvd then run it, it works fine...
Vino87#
Sorry,


IfFileExists "$INSTDIR\Content\System\Swat4.exe" CheckSwatExpansion
MessageBox MB_ICONINFORMATION|MB_OK "Swat 4 will now be installed. Please have your Swat 4 CD Key ready."
goto InstallSwat


CheckSwatExpansion:
IfFileExists "$INSTDIR\ContentExpansion\System\Swat4X.exe" InstallCFDA
MessageBox MB_ICONINFORMATION|MB_OK "Swat 4 update and Swat 4 Expansion will now be installed. Please have your Swat 4 Expansion CD Key ready."
goto InstallSwatExpansion

InstallSwat:
ClearErrors
DetailPrint "Installing Swat 4."
ExecWait "Swat 4\setup.exe"
IfErrors ErrorMessage

InstallSwatExpansion:
DetailPrint "Installing Swat Patch."
ExecWait "Swat 4 Expansion\swat4_update_en_10_11.exe"
IfErrors ErrorMessage
DetailPrint "Installing Swat Expansion."
ExecWait "Swat 4 Expansion\setup.exe"
IfErrors ErrorMessage
goto Check
Yathosho#
try ExecWait "$EXEDIR\Swat 4 Expansion\setup.exe" or whatever the correct structure would then be
kichik#
Try:

Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.