30 lines
563 B
Plaintext
30 lines
563 B
Plaintext
|
;Request ExitCode from last Program
|
||
|
set $ExitCode$ = getLastExitCode
|
||
|
|
||
|
;Modify Loglevel
|
||
|
setLogLevel = 4
|
||
|
|
||
|
;Check ExitCode
|
||
|
|
||
|
if ($ExitCode$ = "0")
|
||
|
setLogLevel = 5
|
||
|
comment "ExitCode = "+$ExitCode$+" Normal execution (no error)"
|
||
|
setLogLevel = 4
|
||
|
endif
|
||
|
|
||
|
if ($ExitCode$ = "1")
|
||
|
setLogLevel = 5
|
||
|
logError "ExitCode = "+$ExitCode$+" Installation aborted by user (cancel button)"
|
||
|
isFatalError
|
||
|
endif
|
||
|
|
||
|
if ($ExitCode$ = "2")
|
||
|
setLogLevel = 5
|
||
|
logError "ExitCode = "+$ExitCode$+" Installation aborted by script"
|
||
|
isFatalError
|
||
|
endif
|
||
|
|
||
|
;Modify Loglevel
|
||
|
setLogLevel = 6
|
||
|
|