[Initial] setLogLevel=9 ; Log Errors in Logfile but don't abort: ExitOnError=false ; Show syntax errors in the script: ScriptErrorMessages=on ; Dont trace step by step through the script: TraceMode=off ; let started programs run in front of the winst window StayOnTop=false [Actions] requiredWinstVersion >= "4.10.8.6" DefVar $ProductId$ DefVar $Version$ DefVar $LogDir$ DefVar $Inst_Cmd32$ DefVar $Inst_Prg$ DefVar $MinimumSpace$ DefVar $INST_architecture$ DefVar $INST_SystemType$ DefVar $LicenseRequired$ DefVar $LicensePool$ DefVar $Uninst_Prg$ Set $INST_SystemType$ = GetSystemType set $INST_architecture$ = GetProductProperty("install_architecture","system specific") Set $LogDir$ = "%SystemDrive%\tmp" ; ---------------------------------------------------------------- ; - Please edit the following values - ; ---------------------------------------------------------------- ;$ProductId$ should be the name of the product in opsi ; therefore please: only lower letters, no umlauts, ; no white space use '-' as a seperator Set $ProductId$ = "Windows Updates - WSUS" Set $Version$ = "1.0" Set $MinimumSpace$ = "500 MB" Set $LicenseRequired$ = "false" Set $LicensePool$ = "p_" + $ProductId$ Set $Inst_Prg$ = "script.cmd" Set $Uninst_Prg$ = "" Set $Inst_Cmd32$ = "" ; ---------------------------------------------------------------- if not(HasMinimumSpace ("%SystemDrive%", $MinimumSpace$)) LogError "Not enough space on %SystemDrive%, " + $MinimumSpace$ + " on drive %SystemDrive% needed for " + $ProductId$ isFatalError ; Stop process and set installation status to failed else comment "Show product picture" ShowBitmap "%ScriptPath%\" + $ProductId$ + ".png" $ProductId$ if $LicenseRequired$ = "true" comment "Licensing required, reserve license and get license key" Sub_get_licensekey endif comment "installing" if (($INST_SystemType$ = "x86 System") and ($INST_architecture$ = "system specific")) or ($INST_architecture$ = "both") or ($INST_architecture$ = "32 only") Message "Installing " + "Windows Updates" + " - This may take a lot of time..." comment "Start setup program. This may take a lot of time ..." Winbatch_install_32 endif endif [Winbatch_install_32] %ScriptPath%\$Inst_Prg$ ExitWindows /Reboot