Skip to content
⌘ NSIS Forum Archive

exit form external script

2 posts

rrbs#

exit form external script

Hello,

How can I evaluate an exit from an external script?

Script:

[CODENSExec::ExecToLog "perl $\"$INSTDIR\Test\scripts\InstallMSSQLDatabase.pl$\" -u $2 -p $3 -h $0 -d $1 "][/CODE]

Thanks

ralf
jpderuiter#
From the nsExec docs:
Originally Posted by nsExec Docs
If nsExec is unable to execute the process, it will return "error" on the top of the stack, if the process timed out it will return "timeout", else it will return the return code from the executed process.
So:
NSExec::ExecToLog "perl $\"$INSTDIR\Test\scripts\InstallMSSQLDatabase.pl$\" -u $2 -p $3 -h $0 -d $1"
Pop $0 # return value/error/timeout]