Changes

Jump to: navigation, search

Java

1,191 bytes added, 14:30, 8 October 2015
JRE 7 Installer Command-line Switches
The product code for Java 7u65 and later has been changed from {26A24AE4-039D-4CA4-87B4-2F'''8'''32170%version%FF} (32-bit) and {26A24AE4-039D-4CA4-87B4-2F'''8'''64170%version%FF} (64-bit) to {26A24AE4-039D-4CA4-87B4-2F'''0'''32170%version%FF} and {26A24AE4-039D-4CA4-87B4-2F'''0'''64170%version%FF}. This is especially important if you use the .msi for the installation/upgrade to Java 8.
 
=== JRE 7 Uninstall Options ===
The options most people use will involve pulling out the MSI file from the exe, leveraging the msiexec command flags to remove... This is fine, but who wants to do all that work at the beginning, then have to repeat it every time you want to update Java? There's also a way to do it using msiexec and uninstall strings from the registry. This is fine, too, but it is a script, and it assumes the file name doesn't change as the iterations go along... If we use WMI, however, we can just use the name of what we want to remove... This works like a champ on most windows machines (Vista and beyond, I would assume, are safe bets) and does the job quickly and properly...
 
If you want to remove all Java-related software use the following line:
<install cmd="wmic product where 'name like 'Java%%'' call uninstall /nointeractive"/>
 
If you would like to uninstall releases before version 7 (they previously added (TM) in the name) use:
<install cmd="wmic product where 'name like 'Java(TM)%%'' call uninstall /nointeractive"/>
 
For only version 7 and its sub-releases:
<install cmd="wmic product where 'name like 'Java 7%%'' call uninstall /nointeractive"/>
 
=== JRE 7 on 32-bit Hosts ===
11
edits

Navigation menu