This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
userspace:java [2012/04/18 07:38] Stone |
userspace:java [2012/04/20 11:19] DaWo [install.ins] |
||
---|---|---|---|
Line 14: | Line 14: | ||
===== install.ins ===== | ===== install.ins ===== | ||
+ | <code winst> | ||
+ | [Initial] | ||
+ | ;Standard Text, der während der Installation angezeigt wird | ||
+ | Message = Bitte warten, das Produkt wird installiert | ||
+ | ;Loglevel einstellen | ||
+ | setLogLevel = 6 | ||
+ | ;Bei Fehlern abbrechen | ||
+ | ExitOnError = false | ||
+ | ;Syntax Fehler werden in einem separaten Fenster angezeigt | ||
+ | ScriptErrorMessages = on | ||
+ | ; | ||
+ | TraceMode = off | ||
+ | ;Im Batchmode das Winst-Fenster nicht im Vordergrund anzeigen | ||
+ | StayOnTop = false | ||
+ | |||
+ | [Actions] | ||
+ | ;Variable für die Ermittlung des Betriebssystems | ||
+ | DefVar $OS$ | ||
+ | set $OS$ = GetOS | ||
+ | |||
+ | ;Variable für die Ermittlung der Betriebssystem Unterversion | ||
+ | DefVar $NTVersion$ | ||
+ | set $NTVersion$ = GetNTVersion | ||
+ | |||
+ | ;Variable zur Ermittlung der Systemarchitektur | ||
+ | DefVar $SystemType$ | ||
+ | Set $SystemType$ = GetSystemType | ||
+ | |||
+ | ;Name des Produkts (max. 12 Zeichen) | ||
+ | DefVar $ProductName$ | ||
+ | Set $ProductName$ = " | ||
+ | |||
+ | ; | ||
+ | |||
+ | DefVar $ProductNameFull1$ | ||
+ | set $ProductNameFull1$ = "Java 1.6 Update 31" | ||
+ | |||
+ | ;Dateiname des Produktbildes mit Erweiterung | ||
+ | DefVar $ProductPicture$ | ||
+ | Set $ProductPicture$ = " | ||
+ | |||
+ | DefVar $Executable32$ | ||
+ | DefVar $Executable64$ | ||
+ | Set $Executable32$ = " | ||
+ | Set $Executable64$ = " | ||
+ | |||
+ | ;Die Variable zur Auswertung des ExitCodes | ||
+ | DefVar $ExitCode$ | ||
+ | |||
+ | ;Prüfen der Winst Version | ||
+ | requiredWinstVersion >= " | ||
+ | |||
+ | ; | ||
+ | ShowBitmap /3 " | ||
+ | |||
+ | ;Anzeigen der Installationsbenachrichtigung incl. des vollen Produktnamens | ||
+ | Message " | ||
+ | |||
+ | ;Freien Speicherplatz ermitteln | ||
+ | if not (HasMinimumSpace (" | ||
+ | | ||
+ | | ||
+ | endif | ||
+ | |||
+ | ;OS-Version ermitteln | ||
+ | if ( $NTVersion$ = " | ||
+ | if $SystemType$ = "x86 System" | ||
+ | Winbatch_Install_32-Bit | ||
+ | endif | ||
+ | if $SystemType$ = "64 Bit System" | ||
+ | Winbatch_Install_64-Bit | ||
+ | endif | ||
+ | else | ||
+ | LogError "Kein kompatibles Betriebssystem installiert" | ||
+ | isFatalError | ||
+ | endif | ||
+ | |||
+ | [Winbatch_Install_32-Bit] | ||
+ | msiexec /i " | ||
+ | |||
+ | [Winbatch_Install_64-Bit] | ||
+ | msiexec /i " | ||
+ | </ | ||
===== uninstall.ins ===== | ===== uninstall.ins ===== | ||