Go Back   Winamp Forums > Developer Center > NSIS Discussion

 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 23rd September 2011, 10:59   #1
heldain
Junior Member
 
Join Date: Sep 2011
Posts: 2
Exit code on embedded installers

Bad topic title I know.

I'm running an installer from my NSIS installer/script via the following:

code:
Section "app2" Section2

; Set Section properties
SetOverwrite on
SectionIn RO

;Set Section Files and Shortcuts
SetOutPath "$INSTDIR\Install\"
File "..\..\source\biginstaller\app2.exe"
ExecWait "$INSTDIR\Install\app2.exe"

SectionEnd



However I want to abort the whole script/installer if this installer fails to complete. I.e. if the exit code != 0.
I did find a 'Useful Script' that mentions this, but I'm being intellectually challenged and cant find how to apply it, as the example seems to omit this section.

http://nsis.sourceforge.net/Embedding_other_installers#Using_the_return_value_from_the_ExecWait
.

Suggestions please?
heldain is offline   Reply With Quote
 
Go Back   Winamp 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