Old 15th February 2008, 17:49   #1
Vino87
Junior Member
 
Join Date: Feb 2008
Posts: 6
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 is offline   Reply With Quote
Old 15th February 2008, 17:57   #2
Yathosho
Forum King
 
Yathosho's Avatar
 
Join Date: Jan 2002
Location: AT-DE
Posts: 3,366
can you attach the script or paste the portion of the code with the execwait cmd?
Yathosho is offline   Reply With Quote
Old 15th February 2008, 17:59   #3
Vino87
Junior Member
 
Join Date: Feb 2008
Posts: 6
Sorry,


Quote:
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
Vino87 is offline   Reply With Quote
Old 15th February 2008, 18:09   #4
Yathosho
Forum King
 
Yathosho's Avatar
 
Join Date: Jan 2002
Location: AT-DE
Posts: 3,366
try ExecWait "$EXEDIR\Swat 4 Expansion\setup.exe" or whatever the correct structure would then be
Yathosho is offline   Reply With Quote
Old 15th February 2008, 18:10   #5
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Try:

http://forums.winamp.com/showthread....&highlight=dvd

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump