Seite 1 von 1

Java 8_31 verteilen. Install Script

Verfasst: 10 Feb 2015, 13:45
von Tuborg
Hallo, irgendwie scheitert es momentan daran das ich ein Install Script für das neue Java 8_31 hinbekomme. Java liegt zuallem auch noch im *.com Format auf meinem Rechner und so habe ich es von der Offiziellen Seite runtergeladen.
Kann sich bitte jemand mal meine Install.ins anschauen ?

[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_8u31"

;Vollständiger Produktname incl. Versionsnummer

DefVar $ProductNameFull1$
set $ProductNameFull1$ = "Java 1.8 Update 31"

;Dateiname des Produktbildes mit Erweiterung
DefVar $ProductPicture$
Set $ProductPicture$ = "Java.png"

DefVar $Executable32$
DefVar $Executable64$
Set $Executable32$ = "jre-8u31-windows-i586.com"
Set $Executable64$ = "jre-8u31-windows-x64.com"

;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 JAVAUPDATE=0

[Winbatch_Install_64-Bit]
msiexec /i "%SCRIPTPATH%\$Executable64$ " /qb-! reboot=reallysuppress JAVAUPDATE=0

Re: Java 8_31 verteilen. Install Script

Verfasst: 10 Feb 2015, 14:28
von GEI
Tuborg hat geschrieben: Hallo, irgendwie scheitert es momentan daran das ich ein Install Script für das neue Java 8_31 hinbekomme. Java liegt zuallem auch noch im *.com Format auf meinem Rechner und so habe ich es von der Offiziellen Seite runtergeladen.
hmm, auf der manuellen Downloadseite liegen *.exe
http://www.java.com/de/download/manual.jsp

und ob man diese dann mit "msiecex /i " installieren kann ? Ich glaube nicht, der einfache Test unter cmd.exe wirft verständlicherweise einen Fehler aus, auch ein Auspacken als ZIP bringt nichts.
Schau bitte mal hier nach .... wiki/userspace:java-ng

Re: Java 8_31 verteilen. Install Script

Verfasst: 10 Feb 2015, 17:21
von SisterOfMercy
Just run the .exe from the java site once, but do not install it. Grab the msi file from the local drive. Maybe temp, or somewhere else. It's there. Since java 8 it creates one file, no external .cab any more.
Do this for both the x64 and x86 versions, and you have two msi files which can be installed just like any other msi.

Re: Java 8_31 verteilen. Install Script

Verfasst: 16 Feb 2015, 11:02
von hadro
%USERPROFILE%\AppData\LocalLow\Sun\Java

Dort legt er die MSI Dateien ab.