Comparison with exit code 0 does not work

Got a problem you cannot solve? Try here.
Post Reply
thohoff
Posts: 2
Joined: Wed Jan 13, 2010 10:23 am

Comparison with exit code 0 does not work

Post by thohoff »

My script code is the following:

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
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?
Post Reply