Hi all,

I run an external My.exe during installation using "Support Files". My.exe returns an error code (0 if successful, any other value if error). The return error is correctly in %_SB_ERRORCODE% (and probably also in %_SB_RETURNEX%).

Well, I check the errorcode - if on error, I want to trigger "Exit Installation" to force a smart rollback.

How to do that? Calling "Exit Installation" does not have any effect, its just ignored.
I stored the My.exe return error code to a variable %_My_EXE_ERROR% (a copy from %_SB_ERRORCODE% when the value is still there and not replaced by a newer value). I put in several places in the script an "if %_My_EXE_ERROR is not 0 then Exit Installation..." block. No effect at all.

How to force to pop up the "Installation failed" dialog and invoke the smart rollback w/o asking the user?

Thanks in advance, André