craude
31st July 2009 11:54 UTC
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
31st July 2009 12:15 UTC
SetOutPath $PLUGINSDIR
File some_installer.exe
ExecWait `"$PLUGINSDIR\some_installer.exe" /silent?` $R0
; check value of $R0
Stu
craude
31st July 2009 14:57 UTC
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
31st July 2009 17:10 UTC
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