Changes

Jump to: navigation, search

Remove Java

2,134 bytes added, 17:46, 26 October 2015
no edit summary
The following package will uninstall all old Java versions from 7.00 through 7.76 and 8.00 through 8.5165. It checks if one of these Java versions is installed and only tries to remove the versions which are actually really there.
<source lang="xml">
<package
id="removejavafinal"
revision="32"
reboot="false"
priority="199">
<!--Variables old java 8 versions-->
<variable name="shortupdatever825shortupdatever865" value="65" /> <variable name="shortupdatever860" value="60" /> <variable name="shortupdatever851" value="51" /> <variable name="shortupdatever825shortupdatever845" value="45" /> <variable name="shortupdatever825shortupdatever840" value="40" /> <variable name="shortupdatever825shortupdatever831" value="31" />
<variable name="shortupdatever825" value="25" />
<variable name="shortupdatever820" value="20" />
<exit code='128' />
</install>
 
 
<!--8 65-->
 
<install cmd='msiexec /qn /x {26A24AE4-039D-4CA4-87B4-2F864180%shortupdatever865%F0}'>
<condition>
<check type="logical" condition="or">
<check type="uninstall" condition="exists" path="Java(\(TM\))* 8 Update 65 (64-bit)" />
<check type="uninstall" condition="exists" path="Java 8 Update 65 (64-bit)" />
<check type="uninstall" condition="exists" path="Java* 8 Update 65 (64-bit)" />
</check>
</condition>
</install>
<install cmd='msiexec /qn /x {26A24AE4-039D-4CA4-87B4-2F832180%shortupdatever865%F0}'>
<condition>
<check type="logical" condition="or">
<check type="uninstall" condition="exists" path="Java(\(TM\))* 8 Update 65" />
<check type="uninstall" condition="exists" path="Java 8 Update 65" />
<check type="uninstall" condition="exists" path="Java* 8 Update 65" />
</check>
</condition>
</install>
 
<!--8 60-->
 
<install cmd='msiexec /qn /x {26A24AE4-039D-4CA4-87B4-2F864180%shortupdatever860%F0}'>
<condition>
<check type="logical" condition="or">
<check type="uninstall" condition="exists" path="Java(\(TM\))* 8 Update 60 (64-bit)" />
<check type="uninstall" condition="exists" path="Java 8 Update 60 (64-bit)" />
<check type="uninstall" condition="exists" path="Java* 8 Update 60 (64-bit)" />
</check>
</condition>
</install>
<install cmd='msiexec /qn /x {26A24AE4-039D-4CA4-87B4-2F832180%shortupdatever860%F0}'>
<condition>
<check type="logical" condition="or">
<check type="uninstall" condition="exists" path="Java(\(TM\))* 8 Update 60" />
<check type="uninstall" condition="exists" path="Java 8 Update 60" />
<check type="uninstall" condition="exists" path="Java* 8 Update 60" />
</check>
</condition>
</install>
8
edits

Navigation menu