Add check exitcode scripts from opsi wiki for a better logline in the opsi logs
This commit is contained in:
@@ -112,9 +112,15 @@ else
|
||||
comment "Start setup program"
|
||||
ChangeDirectory "%SCRIPTPATH%"
|
||||
Winbatch_install_32
|
||||
;Sub "%ScriptPath%\check_innosetup-exitcode.opsiscript"
|
||||
;Sub "%ScriptPath%\check_installshield-exitcode.opsiscript"
|
||||
;Sub "%ScriptPath%\check_nullsoft-exitcode.opsiscript"
|
||||
;Sub "%ScriptPath%\check_msi-exitcode.opsiscript"
|
||||
Sub_check_exitcode
|
||||
;comment "Kill Web Browser"
|
||||
;ExecWith_BrowserKill %System%\cscript.exe //b //nologo
|
||||
comment "Disable Update check"
|
||||
DosInAnIcon_DisableUpdate_32
|
||||
comment "Copy files"
|
||||
Files_install_32 /32Bit
|
||||
comment "Patch Registry"
|
||||
@@ -130,9 +136,15 @@ else
|
||||
comment "Start setup program"
|
||||
ChangeDirectory "%SCRIPTPATH%"
|
||||
Winbatch_install_64
|
||||
;Sub "%ScriptPath%\check_innosetup-exitcode.opsiscript"
|
||||
;Sub "%ScriptPath%\check_installshield-exitcode.opsiscript"
|
||||
;Sub "%ScriptPath%\check_nullsoft-exitcode.opsiscript"
|
||||
;Sub "%ScriptPath%\check_msi-exitcode.opsiscript"
|
||||
Sub_check_exitcode
|
||||
;comment "Kill Web Browser"
|
||||
;ExecWith_BrowserKill %System%\cscript.exe //b //nologo
|
||||
comment "Disable Update check"
|
||||
DosInAnIcon_DisableUpdate_64
|
||||
comment "Copy files"
|
||||
Files_install_64 /64Bit
|
||||
comment "Patch Registry"
|
||||
@@ -180,6 +192,18 @@ copy "$IniCfgFile$" "$InstallDir32$"
|
||||
;
|
||||
; copy -s "%ScriptPath%\files\*.*" "$InstallDir32$"
|
||||
|
||||
[DosInAnIcon_DisbaleUpdate_32]
|
||||
; Requires horstmuc.inifile
|
||||
;
|
||||
; inifile "$InstallDir32$\custom.ini" [Updater] AutoUpdate=0
|
||||
|
||||
; Requires sourceforge.xmlstarlet
|
||||
;
|
||||
; Update value of an attribute
|
||||
; xml ed -u "/xml/table/rec[@id=3]/@id" -v 5 "$InstallDir32$\config.xml"> "$InstallDir32$\config.model.xml"
|
||||
; Update value of an element
|
||||
; xml ed -u "/xml/table/rec[@id=1]/numField" -v 0 "$InstallDir32$\config.xml"> "$InstallDir32$\config.model.xml"
|
||||
|
||||
[Winbatch_install_64]
|
||||
; Choose one of the following examples as basis for your installation
|
||||
; You can use $LicenseKey$ var to pass a license key to the installer
|
||||
@@ -215,6 +239,18 @@ copy "$IniCfgFile$" "$InstallDir64$"
|
||||
;
|
||||
; copy -s "%ScriptPath%\files\*.*" "$InstallDir64$"
|
||||
|
||||
[DosInAnIcon_DisbaleUpdate_64]
|
||||
; Requires horstmuc.inifile
|
||||
;
|
||||
; inifile "$InstallDir64$\custom.ini" [Updater] AutoUpdate=0
|
||||
|
||||
; Requires sourceforge.xmlstarlet
|
||||
;
|
||||
; Update value of an attribute
|
||||
; xml ed -u "/xml/table/rec[@id=3]/@id" -v 5 "$InstallDir64$\config.xml"> "$InstallDir64$\config.model.xml"
|
||||
; Update value of an element
|
||||
; xml ed -u "/xml/table/rec[@id=1]/numField" -v 0 "$InstallDir64$\config.xml"> "$InstallDir64$\config.model.xml"
|
||||
|
||||
[Registry_install]
|
||||
; Example of setting some values of an registry key:
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user