54 lines
1.6 KiB
Plaintext
54 lines
1.6 KiB
Plaintext
|
;Request ExitCode from last Program
|
||
|
set $ExitCode$ = getLastExitCode
|
||
|
|
||
|
;Modify Loglevel
|
||
|
setLogLevel = 4
|
||
|
|
||
|
;Check ExitCode
|
||
|
|
||
|
if ($ExitCode$ = "0")
|
||
|
setLogLevel = 5
|
||
|
comment "ExitCode = "+$ExitCode$+" Setup was successfully run to completion."
|
||
|
setLogLevel = 4
|
||
|
endif
|
||
|
|
||
|
if ($ExitCode$ = "1")
|
||
|
setLogLevel = 5
|
||
|
logError "ExitCode = "+$ExitCode$+" Setup failed to initialize."
|
||
|
isFatalError
|
||
|
endif
|
||
|
|
||
|
if ($ExitCode$ = "2")
|
||
|
setLogLevel = 5
|
||
|
logError "ExitCode = "+$ExitCode$+" The user clicked Cancel in the wizard before the actual installation started, or chose "No" on the opening "This will install..." message box."
|
||
|
isFatalError
|
||
|
endif
|
||
|
|
||
|
if ($ExitCode$ = "3")
|
||
|
setLogLevel = 5
|
||
|
logError "ExitCode = "+$ExitCode$+" A fatal error occurred while preparing to move to the next installation phase (for example, from displaying the pre-installation wizard pages to the actual installation process). This should never happen except under the most unusual of circumstances, such as running out of memory or Windows resources."
|
||
|
isFatalError
|
||
|
endif
|
||
|
|
||
|
if ($ExitCode$ = "4")
|
||
|
setLogLevel = 5
|
||
|
logError "ExitCode = "+$ExitCode$+" A fatal error occurred during the actual installation process."
|
||
|
isFatalError
|
||
|
endif
|
||
|
|
||
|
if ($ExitCode$ = "5")
|
||
|
setLogLevel = 5
|
||
|
logError "ExitCode = "+$ExitCode$+" The user clicked Cancel during the actual installation process, or chose Abort at an Abort-Retry-Ignore box."
|
||
|
isFatalError
|
||
|
endif
|
||
|
|
||
|
if ($ExitCode$ = "6")
|
||
|
setLogLevel = 5
|
||
|
logError "ExitCode = "+$ExitCode$+" The Setup process was forcefully terminated by the debugger (Run | Terminate was used in the IDE)."
|
||
|
isFatalError
|
||
|
endif
|
||
|
|
||
|
;Modify Loglevel
|
||
|
setLogLevel = 6
|
||
|
|