User Tools

Site Tools


userspace:java

Differences

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

Link to this comparison view

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 
 +;Single-Step Mode nicht verwenden 
 +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$ = "Java" 
 +  
 +;Vollständiger Produktname incl. Versionsnummer 
 +  
 +DefVar $ProductNameFull1$ 
 +set $ProductNameFull1$ = "Java 1.6 Update 31" 
 +  
 +;Dateiname des Produktbildes mit Erweiterung 
 +DefVar $ProductPicture$ 
 +Set $ProductPicture$ = "Java.png" 
 +  
 +DefVar $Executable32$ 
 +DefVar $Executable64$ 
 +Set $Executable32$ = "jre-6u31-windows-i586-s.exe" 
 +Set $Executable64$ = "jre-6u31-windows-x64.exe" 
 +  
 +;Die Variable zur Auswertung des ExitCodes 
 +DefVar $ExitCode$ 
 +  
 +;Prüfen der Winst Version 
 +requiredWinstVersion >= "4.11" 
 +  
 +;$ProductPicture$ und $ProductName$ anzeigen 
 +ShowBitmap /3 "%scriptpath%\" + $ProductPicture$ $ProductName$ 
 +  
 +;Anzeigen der Installationsbenachrichtigung incl. des vollen Produktnamens 
 +Message "Installiere "+$ProductNameFull1$ 
 +  
 +;Freien Speicherplatz ermitteln 
 +if not (HasMinimumSpace ("%SYSTEMDRIVE%", "100 MB")) 
 +     LogError "Nicht genügend Platz auf %SYSTEMDRIVE%" 
 +     isFatalError 
 +endif 
 +  
 +;OS-Version ermitteln 
 +if ( $NTVersion$ = "Win2K" OR $NTVersion$ = "WinXP" OR $NTVersion$ = "Win NT 5.2" OR $NTVersion$ = "Windows Vista" ) 
 +    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 "%SCRIPTPATH%\$Executable32$" /qb-! reboot=reallysuppress 
 +  
 +[Winbatch_Install_64-Bit] 
 +msiexec /i "%SCRIPTPATH%\$Executable64$" /qb-! reboot=reallysuppress 
 +</code>
 ===== uninstall.ins ===== ===== uninstall.ins =====
  
userspace/java.txt · Last modified: 2021/08/23 08:37 (external edit)