10
edits
Changes
Java
,→Java Runtime Environment (JRE) 8: tip about how to use WMIC to remove all Java7 and Java8
To uninstall the old Java 7 and 8 versions you can use a [http://wpkg.org/index.php?title=Remove_Java a removal package].
I suggest use this to remove all Java7 versions:
<install cmd='wmic product where "name like 'Java 7%%'" call uninstall' />
and to remove all Java8 is similar:
<install cmd='wmic product where "name like 'Java 8%%'" call uninstall' />
Indeed you can use the last line to remove Java8, like this:
<remove cmd='wmic product where "name like 'Java 8%%'" call uninstall' />
It´s easier to mantain even if it slower to run.
Java6 also can be removed this way, but it have that ugly TM, so line must includ it:
<install cmd='wmic product where "name like 'Java (TM) 6 %%'" call uninstall' />
<source lang="xml">