Changes

Jump to: navigation, search

Java

183 bytes added, 10:26, 7 February 2008
m
Add source XML tags
Automatic updates can be disabled with JAVAUPDATE=0 JU=0 AUTOUPDATECHECK=0, but I'm not sure if it works at all.
<presource lang="xml">
<package id="java6" name="Java Runtime Environment 6 Update 3" revision="5" reboot="false" priority="100">
<check type="uninstall" condition="exists" path="Java(TM) 6 Update 4" />
<remove cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0160040}' />
</package>
</presource>
http://java.sun.com/javase/6/docs/technotes/guides/deployment/deployment-guide/silent.html
Automatic updates can be disabled with JAVAUPDATE=0 JU=0 AUTOUPDATECHECK=0, but I'm not sure if it works at all.
<presource lang="xml">
<package id="java6" name="Java Runtime Environment 6 Update 3" revision="4" reboot="false" priority="100">
<check type="uninstall" condition="exists" path="Java(TM) 6 Update 3" />
<remove cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0160030}' />
</package>
</presource>
http://java.sun.com/javase/6/docs/technotes/guides/deployment/deployment-guide/silent.html
Automatic updates can be disabled with JAVAUPDATE=0 JU=0 AUTOUPDATECHECK=0, but I'm not sure if it works at all.
<presource lang="xml">
<package id="java6" name="Java Runtime Environment 6 Update 2" revision="3" reboot="false" priority="100">
<check type="uninstall" condition="exists" path="Java(TM) 6 Update 2" />
<remove cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0160020}' />
</package>
</presource>
http://java.sun.com/javase/6/docs/technotes/guides/deployment/deployment-guide/silent.html
Automatic updates can be disabled with JAVAUPDATE=0 JU=0 AUTOUPDATECHECK=0, but I'm not sure if it works at all.
<presource lang="xml">
<package id="java6" name="Java Runtime Environment 6 Update 1" revision="2" reboot="false" priority="100">
<check type="uninstall" condition="exists" path="Java(TM) SE Runtime Environment 6 Update 1" />
<remove cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0160010}' />
</package>
</presource>
http://java.sun.com/javase/6/docs/technotes/guides/deployment/deployment-guide/silent.html
Automatic updates can be disabled with JAVAUPDATE=0 JU=0 AUTOUPDATECHECK=0, but I'm not sure if it works at all.
<presource lang="xml">
<package id="java6" name="Java Runtime Environment 6" revision="1" reboot="false" priority="100">
<check type="uninstall" condition="exists" path="Java(TM) SE Runtime Environment 6" />
<remove cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0160000}' />
</package>
</presource>
This requires the Windows Offfline installation package available from Sun. Note that the java install package does not replace old versions, so to accomplish a true upgrade, remove commands are required for the install/upgrade process.
<presource lang="xml">
<package id="java" name="Java Runtime Environment 1.5.0_11" revision="4" reboot="false" priority="0">
<check type="uninstall" condition="exists" path="J2SE Runtime Environment 5.0 Update 11" />
<remove cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150110}' />
</package>
</presource>
==J2SE Runtime Environment 5.0 Update 10==
Note that the class id of the remove section was incorrect in an early edition of this page - the last 3 digits should be 100, not 010.
<presource lang="xml">
<package id="java" name="Java Runtime Environment 1.5.0_10" revision="3" reboot="false" priority="0">
<check type="uninstall" condition="exists" path="J2SE Runtime Environment 5.0 Update 10" />
<remove cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150100}' />
</package>
</presource>
==J2SE Runtime Environment 5.0 Update 9==
<presource lang="xml">
<package id="jre" name="Java Runtime Environment 1.5.0_9" revision="2" reboot="false" priority="0">
<check type="uninstall" condition="exists" path="J2SE Runtime Environment 5.0 Update 9" />
<remove cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150090}' />
</package>
</presource>
==J2SE Runtime Environment 5.0 Update 6==
This requires the Windows Offline installation package available from Sun.
<presource lang="xml">
<package id="jre" name="Java Runtime Environment 1.5.0_6" revision="1" reboot="true" priority="0">
<check type="uninstall" condition="exists" path="J2SE Runtime Environment 5.0 Update 6" />
<remove cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150060}' />
</package>
</presource>
Other Useful MSI Properties
Note that "install cmd" should be in one line; it was wrapped because it was too long to fit here!
<source lang="xml">
<package
id="jre"
<remove cmd='MsiExec.exe /q /x{32A3A4F4-B792-11D6-A78A-00B0D0150050}' />
</package>
</source>
See also [[Sun Java]]
[[category:Silent Installers]]
152
edits

Navigation menu