Well, those MSI options aren't very useful any more, anyway. The only thing in the msi is a really large file 'installer.exe', which is supposed to do everything. When using the extracted msi file, it hangs on the silent parameter. Using the .exe install files it works, and does not hang.
An extract from logfiles:
Code: Alles auswählen
.msi with normal options (hangs):
MSI (s) (8C:D8) [11:12:59:120]: Executing op: CustomActionSchedule(Action=installexe,ActionType=1042,Source=C:\Program Files\Java\jre8\installer.exe,Target= INSTALLDIR="C:\Program Files\Java\jre8\\" WEB_ANALYTICS=0 NOSTARTMENU=1 AUTO_UPDATE=0 REPAIRMODE=0,)
.msi with SILENT=1 (hangs):
MSI (s) (A0:FC) [16:32:12:379]: Executing op: CustomActionSchedule(Action=installexe,ActionType=1042,Source=C:\Program Files\Java\jre8\installer.exe,Target=1 INSTALLDIR="C:\Program Files\Java\jre8\\" WEB_ANALYTICS=0 NOSTARTMENU=1 AUTO_UPDATE=0 SPONSORS=0 REPAIRMODE=0,)
.exe with /s and normal options (does not hang):
MSI (s) (A8:64) [16:09:31:048]: Executing op: CustomActionSchedule(Action=installexe,ActionType=1042,Source=C:\Program Files\Java\jre8\installer.exe,Target=/s INSTALLDIR="C:\Program Files\Java\jre8\\" WEB_ANALYTICS=0 NOSTARTMENU=1 AUTO_UPDATE=0 SPONSORS=0 REPAIRMODE=0,)
But I got tired of this shite, so I downloaded the .tar.gz files and installed java runtime by hand. Get f****d, obstacle!
(.tar.gz files from here:
http://www.oracle.com/technetwork/java/ ... 33155.html )
Code: Alles auswählen
; Copyright (c) uib gmbh (www.uib.de)
; This sourcecode is owned by uib
; and published under the Terms of the General Public License.
; credits: http://www.opsi.org/en/credits/
[Actions]
requiredWinstVersion >= "4.10.8.6"
DefVar $LogDir$
DefVar $ProductId$
DefVar $MinimumSpace$
DefVar $RebootStatus$
DefVar $InstallDir32$
DefVar $InstallDir64$
DefVar $ExitCode$
DefVar $INST_SystemType$
DefVar $INST_MsVersion$
DefStringList $result$
DefVar $RegistryKey$
DefVar $RegistryKey2$
DefVar $testvalue$
DefVar $ProgramData$
DefVar $AllUsersProfile$
DefVar $RemoveDir$
DefVar $Path$
DefVar $BrowserJavaVersion$
DefVar $CurrentJavaVersion$
DefVar $JavaUpdateVersion$
Set $BrowserJavaVersion$ = "11.45.2"
Set $CurrentJavaVersion$ = "1.8"
Set $JavaUpdateVersion$ = "45"
set $INST_MsVersion$ = GetMsVersionInfo
Set $INST_SystemType$ = GetSystemType
;set $INST_architecture$ = GetProductProperty("install_architecture","system specific")
Set $LogDir$ = "%SystemDrive%\tmp"
set $RebootStatus$ = "0"
; ----------------------------------------------------------------
; - 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$ = "java-runtime"
Set $MinimumSpace$ = "500 MB"
; the path were we find the product after the installation
Set $InstallDir32$ = "%ProgramFiles32Dir%\Java\jre8"
Set $InstallDir64$ = "%ProgramFiles64Dir%\Java\jre8"
; ----------------------------------------------------------------
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
endif
if $INST_MsVersion$ < "5.1"
LogError "Windows XP or newer is required for " + $ProductId$
isFatalError
endif
comment "Show product picture"
ShowBitmap "%ScriptPath%\" + $ProductId$ + ".png" $ProductId$
if FileExists("%ScriptPath%\delsub3264.ins")
comment "Start uninstall sub section"
Sub "%ScriptPath%\delsub3264.ins"
comment "Check if any part of sub exited with exitcode 3010"
if ($RebootStatus$ = "1")
ExitWindows /ImmediateReboot
endif
endif
if $INST_MsVersion$ < "6"
Set $AllUsersProfile$ = EnvVar("AllUsersProfile")
Set $RemoveDir$ = $AllUsersProfile$ + "\Application Data\Oracle\Java\javapath"
else
Set $ProgramData$ = EnvVar("ProgramData")
Set $RemoveDir$ = $ProgramData$ + "\Oracle\Java\javapath"
endif
comment "installing"
if ($INST_SystemType$ = "x86 System")
Message "Installing " + $ProductId$ + "..."
comment "Copy files"
Files_install_32 /32Bit
comment "Insert CACert.org Certificate"
Winbatch_install_cert_32 /32Bit
comment "Patch Registry"
Set $Path$ = GetRegistryStringValueSysNative("[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment] Path")
set $Path$ = stringReplace($Path$, $RemoveDir$, "")
set $Path$ = stringReplace($Path$, ";;", ";")
set $Path$ = $Path$ + ";" + $InstallDir32$ + "\bin"
Registry_install_32 /32Bit
Registry_install_AllProfiles /AllNTUserDats
comment "Create shortcuts"
LinkFolder_install
endif
if ($INST_SystemType$ = "64 Bit System")
;and (($INST_architecture$ = "system specific") or ($INST_architecture$ = "both") or ($INST_architecture$ = "64 only"))
Message "Installing " + $ProductId$ + "..."
comment "Copy files"
Files_install_64 /64Bit
Files_install_32 /64Bit
comment "Insert CACert.org Certificate"
Winbatch_install_cert_64 /64Bit
Winbatch_install_cert_32 /64Bit
comment "Patch Registry"
Set $Path$ = GetRegistryStringValueSysNative("[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment] Path")
set $Path$ = stringReplace($Path$, $RemoveDir$, "")
set $Path$ = stringReplace($Path$, ";;", ";")
set $Path$ = $Path$ + ";" + $InstallDir64$ + "\bin"
Registry_install_64 /64Bit
Registry_install_32 /32Bit
Registry_install_AllProfiles /AllNTUserDats
comment "Create shortcuts"
LinkFolder_install
endif
[Winbatch_install_cert_32]
; Install cacert.org root certificates in java keystore
"$InstallDir32$\bin\keytool.exe" -noprompt -import -alias cacert-root -keystore "$InstallDir32$\lib\security\cacerts" -trustcacerts -file "%ScriptPath%\files\cacert.org-root.der" -storepass "changeit"
"$InstallDir32$\bin\keytool.exe" -noprompt -import -alias cacert-class3 -keystore "$InstallDir32$\lib\security\cacerts" -trustcacerts -file "%ScriptPath%\files\cacert.org-class3.der" -storepass "changeit"
[Winbatch_install_cert_64]
; Install cacert.org root certificates in java keystore
"$InstallDir64$\bin\keytool.exe" -noprompt -import -alias cacert-root -keystore "$InstallDir64$\lib\security\cacerts" -trustcacerts -file "%ScriptPath%\files\cacert.org-root.der" -storepass "changeit"
"$InstallDir64$\bin\keytool.exe" -noprompt -import -alias cacert-class3 -keystore "$InstallDir64$\lib\security\cacerts" -trustcacerts -file "%ScriptPath%\files\cacert.org-class3.der" -storepass "changeit"
[Files_install_32]
; Copy Java files
copy -s "%ScriptPath%\files\x86\*" "$InstallDir32$"
; Copy JCE Unlimited policy files
copy "%ScriptPath%\files\JCE\local_policy.jar" "$InstallDir32$\lib\security"
copy "%ScriptPath%\files\JCE\US_export_policy.jar" "$InstallDir32$\lib\security"
[Files_install_64]
; Copy Java files
copy -s "%ScriptPath%\files\x64\*" "$InstallDir64$"
; Copy JCE Unlimited policy files
copy "%ScriptPath%\files\JCE\local_policy.jar" "$InstallDir64$\lib\security"
copy "%ScriptPath%\files\JCE\US_export_policy.jar" "$InstallDir64$\lib\security"
[Registry_install_32]
; Set system variable
openkey [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment]
set "JAVA_HOME_x86" = "$InstallDir32$\bin"
set "Path" = REG_EXPAND_SZ:"$Path$"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Plug-in\$BrowserJavaVersion$]
set "JavaHome"= "$InstallDir32$"
set "UseJava2IExplorer" = REG_DWORD:00000001
set "UseNewJavaPlugin" = REG_DWORD:00000001
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment]
set "CurrentVersion" = "$CurrentJavaVersion$"
set "BrowserJavaVersion" = "$BrowserJavaVersion$"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\$CurrentJavaVersion$]
set "JavaHome" = "$InstallDir32$"
set "RuntimeLib" = "$InstallDir32$\bin\server\jvm.dll"
set "MicroVersion" = "0"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\$CurrentJavaVersion$.0_$JavaUpdateVersion$]
set "JavaHome" = "$InstallDir32$"
set "RuntimeLib" = "$InstallDir32$\bin\server\jvm.dll"
set "MicroVersion" = "0"
set "BuildNumber" = "14"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\$CurrentJavaVersion$.0_$JavaUpdateVersion$\MSI]
set "JU" = "0"
set "OEMUPDATE" = ""
set "FROMVERSION" = "NA"
set "FROMVERSIONFULL"= ""
set "PRODUCTVERSION" = "8.0.$JavaUpdateVersion$0"
set "INSTALLDIR" = "$InstallDir32$\"
set "EULA" = ""
set "JAVAUPDATE" = "0"
set "AUTOUPDATECHECK" = "0"
set "AUTOUPDATEDELAY" = ""
set "FullVersion" = "$CurrentJavaVersion$.0_$JavaUpdateVersion$-b14"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start]
set "CurrentVersion" = "$BrowserJavaVersion$"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.0.1]
set "Home" = "$InstallDir32$\bin"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.0.1_02]
set "Home" = "$InstallDir32$\bin"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.0.1_03]
set "Home" = "$InstallDir32$\bin"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.0.1_04]
set "Home" = "$InstallDir32$\bin"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.2]
set "Home" = "$InstallDir32$\bin"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.2.0_01]
set "Home" = "$InstallDir32$\bin"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\$BrowserJavaVersion$]
set "Home" = "$InstallDir32$\bin"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins\@java.com/JavaPlugin,version=$BrowserJavaVersion$]
set "Description" = "Oracle® Next Generation Java™ Plug-In"
set "GeckoVersion" = "1.9"
set "Path" = "$InstallDir32$\bin\plugin2\npjp2.dll"
set "ProductName" = "Oracle® Java™ Plug-In"
set "Vendor" = "Oracle Corp."
set "Version" = "$CurrentJavaVersion$.0_$JavaUpdateVersion$"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins\@java.com/JavaPlugin,version=$BrowserJavaVersion$\MimeTypes\application/x-java-applet]
set "Description" = "Java™ Applet"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins\@java.com/JavaPlugin,version=$BrowserJavaVersion$\MimeTypes\application/x-java-applet;jpi-version=$CurrentJavaVersion$.0_$JavaUpdateVersion$]
set "Description" = "Java™ Applet"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins\@java.com/JavaPlugin,version=$BrowserJavaVersion$\MimeTypes\application/x-java-applet;version=1.1]
set "Description" = "Java™ Applet"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins\@java.com/JavaPlugin,version=$BrowserJavaVersion$\MimeTypes\application/x-java-applet;version=1.1.1]
set "Description" = "Java™ Applet"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins\@java.com/JavaPlugin,version=$BrowserJavaVersion$\MimeTypes\application/x-java-applet;version=1.1.2]
set "Description" = "Java™ Applet"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins\@java.com/JavaPlugin,version=$BrowserJavaVersion$\MimeTypes\application/x-java-applet;version=1.1.3]
set "Description" = "Java™ Applet"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins\@java.com/JavaPlugin,version=$BrowserJavaVersion$\MimeTypes\application/x-java-applet;version=1.2]
set "Description" = "Java™ Applet"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins\@java.com/JavaPlugin,version=$BrowserJavaVersion$\MimeTypes\application/x-java-applet;version=1.2.1]
set "Description" = "Java™ Applet"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins\@java.com/JavaPlugin,version=$BrowserJavaVersion$\MimeTypes\application/x-java-applet;version=1.3]
set "Description" = "Java™ Applet"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins\@java.com/JavaPlugin,version=$BrowserJavaVersion$\MimeTypes\application/x-java-applet;version=1.3.1]
set "Description" = "Java™ Applet"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins\@java.com/JavaPlugin,version=$BrowserJavaVersion$\MimeTypes\application/x-java-applet;version=1.4]
set "Description" = "Java™ Applet"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins\@java.com/JavaPlugin,version=$BrowserJavaVersion$\MimeTypes\application/x-java-applet;version=1.4.1]
set "Description" = "Java™ Applet"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins\@java.com/JavaPlugin,version=$BrowserJavaVersion$\MimeTypes\application/x-java-applet;version=1.4.2]
set "Description" = "Java™ Applet"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins\@java.com/JavaPlugin,version=$BrowserJavaVersion$\MimeTypes\application/x-java-applet;version=1.5]
set "Description" = "Java™ Applet"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins\@java.com/JavaPlugin,version=$BrowserJavaVersion$\MimeTypes\application/x-java-applet;version=1.6]
set "Description" = "Java™ Applet"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins\@java.com/JavaPlugin,version=$BrowserJavaVersion$\MimeTypes\application/x-java-applet;version=1.7]
set "Description" = "Java™ Applet"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins\@java.com/JavaPlugin,version=$BrowserJavaVersion$\MimeTypes\application/x-java-applet;version=1.8]
set "Description" = "Java™ Applet"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins\@java.com/JavaPlugin,version=$BrowserJavaVersion$\MimeTypes\application/x-java-vm]
set "Description" = "Java™ Virtual Machine"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins\@java.com/JavaPlugin,version=$BrowserJavaVersion$\MimeTypes\application/x-java-vm-npruntime]
set "Description" = "Java™ Applet"
;Firefox prefs:
;java always activate
;user_pref("plugin.state.java", 2);
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\jre8]
set "DisplayIcon" = "$InstallDir32$\bin\javaws.exe"
set "DisplayVersion" = "8.0.$JavaUpdateVersion$0"
set "NoModify" = REG_DWORD:00000001
set "NoRepair" = REG_DWORD:00000001
set "NoRemove" = REG_DWORD:00000001
set "UninstallString" = ""
set "Publisher" = "Oracle Corporation"
set "EstimatedSize" = REG_DWORD:0x00026A45
set "DisplayName" = "Java 8 Update $JavaUpdateVersion$"
[Registry_install_64]
; Set system variable
openkey [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment]
set "JAVA_HOME_x64" = "$InstallDir64$\bin"
;set "JAVA_HOME_x86" = "$InstallDir32$\bin"
set "Path" = REG_EXPAND_SZ:"$Path$"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Plug-in\$BrowserJavaVersion$]
set "JavaHome"= "$InstallDir64$"
set "UseJava2IExplorer" = REG_DWORD:00000001
set "UseNewJavaPlugin" = REG_DWORD:00000001
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment]
set "CurrentVersion" = "$CurrentJavaVersion$"
set "BrowserJavaVersion" = "$BrowserJavaVersion$"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\$CurrentJavaVersion$]
set "JavaHome" = "$InstallDir64$"
set "RuntimeLib" = "$InstallDir64$\bin\server\jvm.dll"
set "MicroVersion" = "0"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\$CurrentJavaVersion$.0_$JavaUpdateVersion$]
set "JavaHome" = "$InstallDir64$"
set "RuntimeLib" = "$InstallDir64$\bin\server\jvm.dll"
set "MicroVersion" = "0"
set "BuildNumber" = "14"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\$CurrentJavaVersion$.0_$JavaUpdateVersion$\MSI]
set "JU" = "0"
set "OEMUPDATE" = ""
set "FROMVERSION" = "NA"
set "FROMVERSIONFULL"= ""
set "PRODUCTVERSION" = "8.0.$JavaUpdateVersion$0"
set "INSTALLDIR" = "$InstallDir64$\"
set "EULA" = ""
set "JAVAUPDATE" = "0"
set "AUTOUPDATECHECK" = "0"
set "AUTOUPDATEDELAY" = ""
set "FullVersion" = "$CurrentJavaVersion$.0_$JavaUpdateVersion$-b14"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start]
set "CurrentVersion" = "$BrowserJavaVersion$"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.0.1]
set "Home" = "$InstallDir64$\bin"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.0.1_02]
set "Home" = "$InstallDir64$\bin"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.0.1_03]
set "Home" = "$InstallDir64$\bin"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.0.1_04]
set "Home" = "$InstallDir64$\bin"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.2]
set "Home" = "$InstallDir64$\bin"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.2.0_01]
set "Home" = "$InstallDir64$\bin"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\$BrowserJavaVersion$]
set "Home" = "$InstallDir64$\bin"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins\@java.com/JavaPlugin,version=$BrowserJavaVersion$]
set "Description" = "Oracle® Next Generation Java™ Plug-In"
set "GeckoVersion" = "1.9"
set "Path" = "$InstallDir64$\bin\plugin2\npjp2.dll"
set "ProductName" = "Oracle® Java™ Plug-In"
set "Vendor" = "Oracle Corp."
set "Version" = "$CurrentJavaVersion$.0_$JavaUpdateVersion$"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins\@java.com/JavaPlugin,version=$BrowserJavaVersion$\MimeTypes\application/x-java-applet]
set "Description" = "Java™ Applet"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins\@java.com/JavaPlugin,version=$BrowserJavaVersion$\MimeTypes\application/x-java-applet;jpi-version=$CurrentJavaVersion$.0_$JavaUpdateVersion$]
set "Description" = "Java™ Applet"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins\@java.com/JavaPlugin,version=$BrowserJavaVersion$\MimeTypes\application/x-java-applet;version=1.1]
set "Description" = "Java™ Applet"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins\@java.com/JavaPlugin,version=$BrowserJavaVersion$\MimeTypes\application/x-java-applet;version=1.1.1]
set "Description" = "Java™ Applet"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins\@java.com/JavaPlugin,version=$BrowserJavaVersion$\MimeTypes\application/x-java-applet;version=1.1.2]
set "Description" = "Java™ Applet"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins\@java.com/JavaPlugin,version=$BrowserJavaVersion$\MimeTypes\application/x-java-applet;version=1.1.3]
set "Description" = "Java™ Applet"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins\@java.com/JavaPlugin,version=$BrowserJavaVersion$\MimeTypes\application/x-java-applet;version=1.2]
set "Description" = "Java™ Applet"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins\@java.com/JavaPlugin,version=$BrowserJavaVersion$\MimeTypes\application/x-java-applet;version=1.2.1]
set "Description" = "Java™ Applet"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins\@java.com/JavaPlugin,version=$BrowserJavaVersion$\MimeTypes\application/x-java-applet;version=1.3]
set "Description" = "Java™ Applet"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins\@java.com/JavaPlugin,version=$BrowserJavaVersion$\MimeTypes\application/x-java-applet;version=1.3.1]
set "Description" = "Java™ Applet"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins\@java.com/JavaPlugin,version=$BrowserJavaVersion$\MimeTypes\application/x-java-applet;version=1.4]
set "Description" = "Java™ Applet"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins\@java.com/JavaPlugin,version=$BrowserJavaVersion$\MimeTypes\application/x-java-applet;version=1.4.1]
set "Description" = "Java™ Applet"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins\@java.com/JavaPlugin,version=$BrowserJavaVersion$\MimeTypes\application/x-java-applet;version=1.4.2]
set "Description" = "Java™ Applet"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins\@java.com/JavaPlugin,version=$BrowserJavaVersion$\MimeTypes\application/x-java-applet;version=1.5]
set "Description" = "Java™ Applet"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins\@java.com/JavaPlugin,version=$BrowserJavaVersion$\MimeTypes\application/x-java-applet;version=1.6]
set "Description" = "Java™ Applet"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins\@java.com/JavaPlugin,version=$BrowserJavaVersion$\MimeTypes\application/x-java-applet;version=1.7]
set "Description" = "Java™ Applet"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins\@java.com/JavaPlugin,version=$BrowserJavaVersion$\MimeTypes\application/x-java-applet;version=1.8]
set "Description" = "Java™ Applet"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins\@java.com/JavaPlugin,version=$BrowserJavaVersion$\MimeTypes\application/x-java-vm]
set "Description" = "Java™ Virtual Machine"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins\@java.com/JavaPlugin,version=$BrowserJavaVersion$\MimeTypes\application/x-java-vm-npruntime]
set "Description" = "Java™ Applet"
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\jre8]
set "DisplayIcon" = "$InstallDir64$\bin\javaws.exe"
set "DisplayVersion" = "8.0.$JavaUpdateVersion$0"
set "NoModify" = REG_DWORD:00000001
set "NoRepair" = REG_DWORD:00000001
set "NoRemove" = REG_DWORD:00000001
set "UninstallString" = ""
set "Publisher" = "Oracle Corporation"
set "EstimatedSize" = REG_DWORD:0x00026A45
set "DisplayName" = "Java 8 Update $JavaUpdateVersion$ (64-bit)"
[Registry_install_AllProfiles]
openkey [HKEY_CURRENT_USER\Software\JavaSoft\DeploymentProperties]
set "install.disable.sponsor.offers" = "true"
; Remove stored start menu order
deletekey [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Start Menu]
[LinkFolder_install]
; Remove Java from start menu
;set_basefolder common_programs
;delete_subfolder Java
[Sub_check_exitcode]
comment "Test for installation success via exit code"
set $ExitCode$ = getLastExitCode
; informations to exit codes see
; http://msdn.microsoft.com/en-us/library/aa372835(VS.85).aspx
; http://msdn.microsoft.com/en-us/library/aa368542.aspx
if ($ExitCode$ = "0")
comment "Looks good: setup program gives exitcode zero"
else
comment "Setup program gives a exitcode unequal zero: " + $ExitCode$
if ($ExitCode$ = "1605")
comment "ERROR_UNKNOWN_PRODUCT 1605 This action is only valid for products that are currently installed."
comment "Uninstall of a not installed product failed - no problem"
else
if ($ExitCode$ = "1641")
comment "looks good: setup program gives exitcode 1641"
comment "ERROR_SUCCESS_REBOOT_INITIATED 1641 The installer has initiated a restart. This message is indicative of a success."
else
if ($ExitCode$ = "3010")
comment "looks good: setup program gives exitcode 3010"
comment "ERROR_SUCCESS_REBOOT_REQUIRED 3010 A restart is required to complete the install. This message is indicative of a success."
else
logError "Fatal: Setup program gives an unknown exitcode unequal zero: " + $ExitCode$
isFatalError
endif
endif
endif
endif
[Sub_remove_plugin_32]
Set $RegistryKey2$ = "[" + $RegistryKey$ + "\" + "$value$" + "]"
if contains("$value$","@java.com/DTPlugin,version")
Registry_uninstall_plugin /32Bit
endif
[Sub_remove_plugin_64]
Set $RegistryKey2$ = "[" + $RegistryKey$ + "\" + "$value$" + "]"
if contains("$value$","@java.com/DTPlugin,version")
Registry_uninstall_plugin /64Bit
endif
[Registry_uninstall_plugin]
deletekey $RegistryKey2$
Why?
- No need to run ShellExView to remove unneeded shell extensions
- No need to remove the Java Deployment plugin from firefox
- No need to remove the installer.exe from somewhere in programdata
- No need to remove that automatic updater
- No need to remove the $ProgramData$\Oracle\Java\javapath directory from path (although I had already built that so kept it in)
- Previously I did not know about the NOSTARTMENU=1 msi option, so had to remove those unneeded shortcuts
- Previously you had to get rid of jqs.exe (java quick starter)
Another weird thing: the java installer changed the path to the most recent java runtime version. So if you had installed the x64 version after the x86 version the path would only point to the x64 version. This script creates the JAVA_HOME_x86 and JAVA_HOME_x64 environment variables, so other my other opsi scripts will look for those values.