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.
starting an additional installer
4 posts
SetOutPath $PLUGINSDIR
File some_installer.exe
ExecWait `"$PLUGINSDIR\some_installer.exe" /silent?` $R0
; check value of $R0
Stu
File some_installer.exe
ExecWait `"$PLUGINSDIR\some_installer.exe" /silent?` $R0
; check value of $R0
Stu
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
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
LogicLib:
Stu
Can do some nice code with LogicLib:
${If} $R0 == 0
; success
${Else}
; oops
${EndIf}
You also have StrCmp, IntCmp etc
${Do}
ExecWait ... $R0
${If} $R0 == 0
${Break}
${ElseIf} ${Cmd} `MessageBox MB_RETRYCANCEL|MB_ICONEXCLAMATION 'Error installing blah!' /SD IDCANCEL IDCANCEL`
Abort
${EndIf}
${Loop}
Stu