8
edits
Changes
no edit summary
The following package will uninstall all old Java versions from 7.00 through 7.76 and 8.00 through 8.2551. 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">
<?xml version="1.0" encoding="UTF-8"?>
<packages>
<package
id="removejavafinal"
revision="23"
reboot="false"
priority="199">
<!--Variables old java 8 versions-->
<variable name="shortupdatever825" value="51" />
<variable name="shortupdatever825" value="45" />
<variable name="shortupdatever825" value="40" />
<variable name="shortupdatever825" value="31" />
<variable name="shortupdatever825" value="25" />
<variable name="shortupdatever820" value="20" />
<exit code='128' />
</install>
<!--8 51-->
<install cmd='msiexec /qn /x {26A24AE4-039D-4CA4-87B4-2F864180%shortupdatever851%F0}'>
<condition>
<check type="logical" condition="or">
<check type="uninstall" condition="exists" path="Java(\(TM\))* 8 Update 51 (64-bit)" />
<check type="uninstall" condition="exists" path="Java 8 Update 51 (64-bit)" />
<check type="uninstall" condition="exists" path="Java* 8 Update 51 (64-bit)" />
</check>
</condition>
</install>
<install cmd='msiexec /qn /x {26A24AE4-039D-4CA4-87B4-2F832180%shortupdatever851%F0}'>
<condition>
<check type="logical" condition="or">
<check type="uninstall" condition="exists" path="Java(\(TM\))* 8 Update 51" />
<check type="uninstall" condition="exists" path="Java 8 Update 51" />
<check type="uninstall" condition="exists" path="Java* 8 Update 51" />
</check>
</condition>
</install>
<!--8 45-->
<install cmd='msiexec /qn /x {26A24AE4-039D-4CA4-87B4-2F864180%shortupdatever845%F0}'>
<condition>
<check type="logical" condition="or">
<check type="uninstall" condition="exists" path="Java(\(TM\))* 8 Update 45 (64-bit)" />
<check type="uninstall" condition="exists" path="Java 8 Update 45 (64-bit)" />
<check type="uninstall" condition="exists" path="Java* 8 Update 45 (64-bit)" />
</check>
</condition>
</install>
<install cmd='msiexec /qn /x {26A24AE4-039D-4CA4-87B4-2F832180%shortupdatever845%F0}'>
<condition>
<check type="logical" condition="or">
<check type="uninstall" condition="exists" path="Java(\(TM\))* 8 Update 45" />
<check type="uninstall" condition="exists" path="Java 8 Update 45" />
<check type="uninstall" condition="exists" path="Java* 8 Update 45" />
</check>
</condition>
</install>
<!--8 40-->
<install cmd='msiexec /qn /x {26A24AE4-039D-4CA4-87B4-2F864180%shortupdatever840%F0}'>
<condition>
<check type="logical" condition="or">
<check type="uninstall" condition="exists" path="Java(\(TM\))* 8 Update 40 (64-bit)" />
<check type="uninstall" condition="exists" path="Java 8 Update 40 (64-bit)" />
<check type="uninstall" condition="exists" path="Java* 8 Update 40 (64-bit)" />
</check>
</condition>
</install>
<install cmd='msiexec /qn /x {26A24AE4-039D-4CA4-87B4-2F832180%shortupdatever840%F0}'>
<condition>
<check type="logical" condition="or">
<check type="uninstall" condition="exists" path="Java(\(TM\))* 8 Update 40" />
<check type="uninstall" condition="exists" path="Java 8 Update 40" />
<check type="uninstall" condition="exists" path="Java* 8 Update 40" />
</check>
</condition>
</install>
<!--8 31-->
<install cmd='msiexec /qn /x {26A24AE4-039D-4CA4-87B4-2F864180%shortupdatever831%F0}'>
<condition>
<check type="logical" condition="or">
<check type="uninstall" condition="exists" path="Java(\(TM\))* 8 Update 31 (64-bit)" />
<check type="uninstall" condition="exists" path="Java 8 Update 31 (64-bit)" />
<check type="uninstall" condition="exists" path="Java* 8 Update 31 (64-bit)" />
</check>
</condition>
</install>
<install cmd='msiexec /qn /x {26A24AE4-039D-4CA4-87B4-2F832180%shortupdatever831%F0}'>
<condition>
<check type="logical" condition="or">
<check type="uninstall" condition="exists" path="Java(\(TM\))* 8 Update 31" />
<check type="uninstall" condition="exists" path="Java 8 Update 31" />
<check type="uninstall" condition="exists" path="Java* 8 Update 31" />
</check>
</condition>
</install>
<!--8 25-->
</package>
</packages>
</source>
[[Category:Silent Installers]][[Category:Java]]