Changes

Jump to: navigation, search

Java

12 bytes added, 00:53, 26 November 2015
Removal with WMIC: warning against using 'wmic product' was apparently not emphatic enough
These fragments can be used to alter the XML in [[##Install 32- and 64-bit JRE, remove the previous version|the next example]] to use <code>wmic product</code> to remove all other versions of Java before installing the new update. This method is simple and does not have any dependencies on other software for any supported version of Windows.
The drawback to this method is that '''an intrinsic defect in the Win32_Product WMI class ''' (see [https://support.microsoft.com/en-us/kb/974524 KB974524] and [http://blogs.technet.com/b/jchalfant/archive/2014/05/13/uninstalling-all-previous-versions-of-java-runtime-environment-using-application-supersedence-in-configuration-manager.aspx this TechNet blog post about the JRE]) '''causes Windows to perform a repair installation of every installed package on the system when you run this query. This is extremely slow and can break software, including some versions of Java, that doesn't correctly implement it.'''
Use this to remove all versions of Java 7:
91
edits

Navigation menu