Comparison with exit code 0 does not work
Posted: Wed Jan 13, 2010 10:40 am
My script code is the following:
The if statement never enters the IF block but always enters the ELSE block, though the Setup exit code seems to be zero. What can I do?
Code: Select all
Set Variable SUCCESS_ADDIN to 1
Run Program $TARGETDIR$\\Setup-NitOutlookToDocuWare\\setup.exe /q (WAIT, get result into variable SUCCESS_ADDIN)
if Variable SUCCESS_ADDIN Equals 0
MessageBox: $TITLE$, SUCCESS_ADDIN is Zero
else
MessageBox: $TITLE$, SUCCESS_ADDIN is not Zero
end