User Tools

Site Tools


userspace:check_nullsoft-exitcode

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

userspace:check_nullsoft-exitcode [2011/10/26 20:20]
Stone [check_innosetup-exitcode.ins]
userspace:check_nullsoft-exitcode [2021/08/23 08:37]
Line 1: Line 1:
-====== check_nullsoft-exitcode ====== 
-Script by Der-Matze \\ 
-Comments and improvements welcome \\ 
  
-Tested with opsi 4.0.1 \\ 
-Tested with opsi-winst 4.10.x - 4.11.1.6 \\ 
-Tested with Windows XP Professional and Windows 7 Enterprise x64 \\ 
- 
-Subscript that checks all available nullsoft exitcodes, writes the definition of the encountered exitcode to the logfile and determines if the installation was successful or not. \\ 
-Makes debugging installations easier and assures that failed installations show up as failed in configed. \\ 
- 
-Usage: \\ 
- 
-<code winst> 
- 
-Winbatch_Install 
- 
- sub "%ScriptDrive%\install\check_exitcode\check_nullsoft-exitcode.ins" 
- 
-</code> 
- 
- 
- 
-==== check_nullsoft-exitcode ==== 
- 
-<code winst> 
- 
-;Den ExitCode des Installers abfragen 
- set $ExitCode$ = getLastExitCode 
- 
- 
- 
-;Loglevel anpassen 
- setLogLevel = 4 
- 
- 
- 
-;Den ExitCode auswerten 
- 
-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 
- 
- 
- 
-;Loglevel anpassen 
- setLogLevel = 6 
- 
-</code> 
userspace/check_nullsoft-exitcode.txt ยท Last modified: 2021/08/23 08:37 (external edit)