Skip to content
⌘ NSIS Forum Archive

starting an additional installer

4 posts

craude#

starting an additional installer

Hello,

to install my app I need to pre install an other app. How can one integrate the additional installer into an nsis script so it is executed first and only if that was successful my app should be installed?

So far I only see examples to start a program on finish.

Thanks.
Afrow UK#
SetOutPath $PLUGINSDIR
File some_installer.exe
ExecWait `"$PLUGINSDIR\some_installer.exe" /silent?` $R0
; check value of $R0

Stu
craude#
Hey Afrow!

Thanks for the quick reply - exactly what I need to know. Can you please point me to a location where I find some details on how to code a check (if else) for a variable, thanks.

cheers
Afrow UK#
LogicLib:

${If} $R0 == 0
; success
${Else}
; oops
${EndIf}
Can do some nice code with LogicLib:

${Do}
ExecWait ... $R0

${If} $R0 == 0
${Break}
${ElseIf} ${Cmd} `MessageBox MB_RETRYCANCEL|MB_ICONEXCLAMATION 'Error installing blah!' /SD IDCANCEL IDCANCEL`
Abort
${EndIf}
${Loop}
You also have StrCmp, IntCmp etc

Stu