Archive: Error Level when installer ends


Error Level when installer ends
I've tried to set the error level for my installer using


Function .onInstFailed
SetErrorLevel 12
FunctionEnd


If I've understand the manual correct, SetErrorLevel should set the status/exit code of the installer!?
Now I'm trying to get the error level displayed on console using
echo %ERRORLEVEL%


It doesn't work, but I dont know why.

Thanks for any help.
CJ

What are you doing to make .onInstFailed execute? Just for a test, try putting the SetErrorLevel in another section/function.


Thanks for your reply. :)

I've continued programming and I don't know what I've changed, but everything works fine now - also inside .onInstFailed...

@Mods
Thread can be deleted.