opsi Getting Started opsi-Version 4.0.1
opsi Getting Started opsi-Version 4.0.1
opsi Getting Started opsi-Version 4.0.1
Erfolgreiche ePaper selbst erstellen
Machen Sie aus Ihren PDF Publikationen ein blätterbares Flipbook mit unserer einzigartigen Google optimierten e-Paper Software.
<strong>opsi</strong> <strong>Getting</strong> <strong>Started</strong> <strong>opsi</strong>-<strong>Version</strong><br />
<strong>4.0.1</strong><br />
endif<br />
else<br />
endif<br />
LogError "Fatal: license configuration must be corrected"<br />
LogError getLastServiceErrorMessage<br />
isFatalError<br />
if $ServiceErrorClass$ = "LicenseMissingError"<br />
LogError "Fatal: required license is not supplied"<br />
isFatalError<br />
endif<br />
46 / 68<br />
[Sub_check_exitcode]<br />
comment "Test for installation success via exit code"<br />
set $ExitCode$ = getLastExitCode<br />
; informations to exit codes see<br />
; http://msdn.microsoft.com/en-us/library/aa372835(VS.85).aspx<br />
; http://msdn.microsoft.com/en-us/library/aa368542.aspx<br />
if ($ExitCode$ = "0")<br />
comment "Looks good: setup program gives exitcode zero"<br />
else<br />
comment "Setup program gives a exitcode unequal zero: " + $ExitCode$<br />
if ($ExitCode$ = "1605")<br />
comment "ERROR_UNKNOWN_PRODUCT 1605 This action is only valid for products"<br />
comment "that are currently installed."<br />
comment "Uninstall of a not installed product failed - no problem"<br />
else<br />
if ($ExitCode$ = "1641")<br />
comment "looks good: setup program gives exitcode 1641"<br />
comment "ERROR_SUCCESS_REBOOT_INITIATED 1641 The installer has initiated<br />
a restart. This message is indicative of a success."<br />
else<br />
if ($ExitCode$ = "3010")<br />
comment "looks good: setup program gives exitcode 3010"<br />
comment "ERROR_SUCCESS_REBOOT_REQUIRED 3010 A restart is required<br />
to"<br />
comment "complete the install. This message is indicative of a<br />
success."<br />
else<br />
logError "Fatal: Setup program gives an unknown exitcode unequal<br />
zero: "<br />
logError $ExitCode$<br />
isFatalError<br />
endif<br />
endif<br />
endif<br />
endif<br />
delsub.ins: Ausgelagerte Deinstallations-Sub-Sektion<br />
; Copyright (c) uib gmbh (www.uib.de)<br />
; This sourcecode is owned by uib gmbh<br />
; and published under the Terms of the General Public License.<br />
; credits: http://www.<strong>opsi</strong>.org/credits/