Axonn
14th November 2005 09:22 UTC
if ($0 == 1) { do something }
Hi again. One more question... I use ExecWait to execute a file once installed. Like this:
ExecWait '"$INSTDIR\zLoadIcon2.exe"' $0
So then the exit code of that Application will go in $0. But then if $0 is 1 I want to Abort the install and if it's 0 to continue... something like this...
if ($0 == 1) { do something }
I don't know if NSIS has support for such conditional checking and I checked the documentation and this forum but didn't find anything of use so far. So can it be done?
glory_man
14th November 2005 12:32 UTC
Use strcmp instruction. Or LogicLib.nsh and If statement.
EDIT. Or InCmp instruction instead strcmp.
Axonn
14th November 2005 15:24 UTC
Thanks
Thank you. Let me see if it works : D.
Axonn
14th November 2005 18:27 UTC
Nope
I can see no such instruction "lncmp" in my NSIS (2.11) documentation. However, the other solutions seem to be ok so thanks a lot ::- D.
Joel
14th November 2005 18:33 UTC
Re: Nope
Originally posted by Axonn
I can see no such instruction "lncmp" in my NSIS (2.11) documentation. However, the other solutions seem to be ok so thanks a lot ::- D.
IntCmp :rolleyes:
Axonn
14th November 2005 20:45 UTC
Hhehe
I should have known : D.