Difference between revisions of "Java"
(Updated with: Java Runtime Environment (JRE) 6 Update 4) |
m (Add source XML tags) |
||
Line 5: | Line 5: | ||
Automatic updates can be disabled with JAVAUPDATE=0 JU=0 AUTOUPDATECHECK=0, but I'm not sure if it works at all. | Automatic updates can be disabled with JAVAUPDATE=0 JU=0 AUTOUPDATECHECK=0, but I'm not sure if it works at all. | ||
− | < | + | <source lang="xml"> |
<package id="java6" name="Java Runtime Environment 6 Update 3" revision="5" reboot="false" priority="100"> | <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" /> | <check type="uninstall" condition="exists" path="Java(TM) 6 Update 4" /> | ||
Line 20: | Line 20: | ||
<remove cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0160040}' /> | <remove cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0160040}' /> | ||
</package> | </package> | ||
− | </ | + | </source> |
http://java.sun.com/javase/6/docs/technotes/guides/deployment/deployment-guide/silent.html | http://java.sun.com/javase/6/docs/technotes/guides/deployment/deployment-guide/silent.html | ||
Line 30: | Line 30: | ||
Automatic updates can be disabled with JAVAUPDATE=0 JU=0 AUTOUPDATECHECK=0, but I'm not sure if it works at all. | Automatic updates can be disabled with JAVAUPDATE=0 JU=0 AUTOUPDATECHECK=0, but I'm not sure if it works at all. | ||
− | < | + | <source lang="xml"> |
<package id="java6" name="Java Runtime Environment 6 Update 3" revision="4" reboot="false" priority="100"> | <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" /> | <check type="uninstall" condition="exists" path="Java(TM) 6 Update 3" /> | ||
Line 43: | Line 43: | ||
<remove cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0160030}' /> | <remove cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0160030}' /> | ||
</package> | </package> | ||
− | </ | + | </source> |
http://java.sun.com/javase/6/docs/technotes/guides/deployment/deployment-guide/silent.html | http://java.sun.com/javase/6/docs/technotes/guides/deployment/deployment-guide/silent.html | ||
Line 53: | Line 53: | ||
Automatic updates can be disabled with JAVAUPDATE=0 JU=0 AUTOUPDATECHECK=0, but I'm not sure if it works at all. | Automatic updates can be disabled with JAVAUPDATE=0 JU=0 AUTOUPDATECHECK=0, but I'm not sure if it works at all. | ||
− | < | + | <source lang="xml"> |
<package id="java6" name="Java Runtime Environment 6 Update 2" revision="3" reboot="false" priority="100"> | <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" /> | <check type="uninstall" condition="exists" path="Java(TM) 6 Update 2" /> | ||
Line 64: | Line 64: | ||
<remove cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0160020}' /> | <remove cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0160020}' /> | ||
</package> | </package> | ||
− | </ | + | </source> |
http://java.sun.com/javase/6/docs/technotes/guides/deployment/deployment-guide/silent.html | http://java.sun.com/javase/6/docs/technotes/guides/deployment/deployment-guide/silent.html | ||
Line 73: | Line 73: | ||
Automatic updates can be disabled with JAVAUPDATE=0 JU=0 AUTOUPDATECHECK=0, but I'm not sure if it works at all. | Automatic updates can be disabled with JAVAUPDATE=0 JU=0 AUTOUPDATECHECK=0, but I'm not sure if it works at all. | ||
− | < | + | <source lang="xml"> |
<package id="java6" name="Java Runtime Environment 6 Update 1" revision="2" reboot="false" priority="100"> | <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" /> | <check type="uninstall" condition="exists" path="Java(TM) SE Runtime Environment 6 Update 1" /> | ||
Line 82: | Line 82: | ||
<remove cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0160010}' /> | <remove cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0160010}' /> | ||
</package> | </package> | ||
− | </ | + | </source> |
http://java.sun.com/javase/6/docs/technotes/guides/deployment/deployment-guide/silent.html | http://java.sun.com/javase/6/docs/technotes/guides/deployment/deployment-guide/silent.html | ||
Line 91: | Line 91: | ||
Automatic updates can be disabled with JAVAUPDATE=0 JU=0 AUTOUPDATECHECK=0, but I'm not sure if it works at all. | Automatic updates can be disabled with JAVAUPDATE=0 JU=0 AUTOUPDATECHECK=0, but I'm not sure if it works at all. | ||
− | < | + | <source lang="xml"> |
<package id="java6" name="Java Runtime Environment 6" revision="1" reboot="false" priority="100"> | <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" /> | <check type="uninstall" condition="exists" path="Java(TM) SE Runtime Environment 6" /> | ||
Line 98: | Line 98: | ||
<remove cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0160000}' /> | <remove cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0160000}' /> | ||
</package> | </package> | ||
− | </ | + | </source> |
Line 105: | Line 105: | ||
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. | 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. | ||
− | < | + | <source lang="xml"> |
<package id="java" name="Java Runtime Environment 1.5.0_11" revision="4" reboot="false" priority="0"> | <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" /> | <check type="uninstall" condition="exists" path="J2SE Runtime Environment 5.0 Update 11" /> | ||
Line 134: | Line 134: | ||
<remove cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150110}' /> | <remove cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150110}' /> | ||
</package> | </package> | ||
− | </ | + | </source> |
==J2SE Runtime Environment 5.0 Update 10== | ==J2SE Runtime Environment 5.0 Update 10== | ||
Line 142: | Line 142: | ||
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. | 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. | ||
− | < | + | <source lang="xml"> |
<package id="java" name="Java Runtime Environment 1.5.0_10" revision="3" reboot="false" priority="0"> | <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" /> | <check type="uninstall" condition="exists" path="J2SE Runtime Environment 5.0 Update 10" /> | ||
Line 169: | Line 169: | ||
<remove cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150100}' /> | <remove cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150100}' /> | ||
</package> | </package> | ||
− | </ | + | </source> |
==J2SE Runtime Environment 5.0 Update 9== | ==J2SE Runtime Environment 5.0 Update 9== | ||
Line 176: | Line 176: | ||
− | < | + | <source lang="xml"> |
<package id="jre" name="Java Runtime Environment 1.5.0_9" revision="2" reboot="false" priority="0"> | <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" /> | <check type="uninstall" condition="exists" path="J2SE Runtime Environment 5.0 Update 9" /> | ||
Line 201: | Line 201: | ||
<remove cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150090}' /> | <remove cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150090}' /> | ||
</package> | </package> | ||
− | </ | + | </source> |
==J2SE Runtime Environment 5.0 Update 6== | ==J2SE Runtime Environment 5.0 Update 6== | ||
Line 207: | Line 207: | ||
This requires the Windows Offline installation package available from Sun. | This requires the Windows Offline installation package available from Sun. | ||
− | < | + | <source lang="xml"> |
<package id="jre" name="Java Runtime Environment 1.5.0_6" revision="1" reboot="true" priority="0"> | <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" /> | <check type="uninstall" condition="exists" path="J2SE Runtime Environment 5.0 Update 6" /> | ||
Line 213: | Line 213: | ||
<remove cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150060}' /> | <remove cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150060}' /> | ||
</package> | </package> | ||
− | </ | + | </source> |
Other Useful MSI Properties | Other Useful MSI Properties | ||
Line 232: | Line 232: | ||
Note that "install cmd" should be in one line; it was wrapped because it was too long to fit here! | Note that "install cmd" should be in one line; it was wrapped because it was too long to fit here! | ||
+ | <source lang="xml"> | ||
<package | <package | ||
id="jre" | id="jre" | ||
Line 253: | Line 254: | ||
<remove cmd='MsiExec.exe /q /x{32A3A4F4-B792-11D6-A78A-00B0D0150050}' /> | <remove cmd='MsiExec.exe /q /x{32A3A4F4-B792-11D6-A78A-00B0D0150050}' /> | ||
</package> | </package> | ||
+ | </source> | ||
See also [[Sun Java]] | See also [[Sun Java]] | ||
[[category:Silent Installers]] | [[category:Silent Installers]] |
Revision as of 10:26, 7 February 2008
Contents
- 1 Java Runtime Environment (JRE) 6 Update 4
- 2 Java Runtime Environment (JRE) 6 Update 3
- 3 Java Runtime Environment (JRE) 6 Update 2
- 4 Java Runtime Environment (JRE) 6 Update 1
- 5 Java Runtime Environment (JRE) 6
- 6 J2SE Runtime Environment 5.0 Update 11
- 7 J2SE Runtime Environment 5.0 Update 10
- 8 J2SE Runtime Environment 5.0 Update 9
- 9 J2SE Runtime Environment 5.0 Update 6
- 10 J2SE Runtime Environment 5.0 Update 5
Java Runtime Environment (JRE) 6 Update 4
This requires the Windows Offline installation package available from Sun. Note that the java install package does not replace old versions, so JRE 1.5 and JRE 1.6 can coexist; all older 1.6 update versions (1.6.0, 1.6.0 Update 1, 1.6.0 Update 2, and 1.6.0 Update 3) are tried to be removed. Notice how the path string in the uninstall check has changed from previous version. Automatic updates can be disabled with JAVAUPDATE=0 JU=0 AUTOUPDATECHECK=0, but I'm not sure if it works at all.
<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" />
<install cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0160000}'><exit code='0' /><exit code='1605' /></install>
<install cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0160010}'><exit code='0' /><exit code='1605' /></install>
<install cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0160020}'><exit code='0' /><exit code='1605' /></install>
<install cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0160030}'><exit code='0' /><exit code='1605' /></install>
<install cmd='%SOFTWARE%\jre\jre-6u4-windows-i586-p.exe /s IEXPLORER=1 MOZILLA=1 ADDLOCAL=ALL REBOOT=Suppress JAVAUPDATE=0 JU=0 AUTOUPDATECHECK=0' />
<upgrade cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0160000}'><exit code='0' /><exit code='1605' /></upgrade>
<upgrade cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0160010}'><exit code='0' /><exit code='1605' /></upgrade>
<upgrade cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0160020}'><exit code='0' /><exit code='1605' /></upgrade>
<upgrade cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0160030}'><exit code='0' /><exit code='1605' /></upgrade>
<upgrade cmd='%SOFTWARE%\jre\jre-6u4-windows-i586-p.exe /s IEXPLORER=1 MOZILLA=1 ADDLOCAL=ALL REBOOT=Suppress JAVAUPDATE=0 JU=0 AUTOUPDATECHECK=0' />
<remove cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0160040}' />
</package>
http://java.sun.com/javase/6/docs/technotes/guides/deployment/deployment-guide/silent.html
Java Runtime Environment (JRE) 6 Update 3
This requires the Windows Offline installation package available from Sun. Note that the java install package does not replace old versions, so JRE 1.5 and JRE 1.6 can coexist; all older 1.6 update versions (1.6.0, 1.6.0 Update 1 and 1.6.0 Update 2) are tried to be removed. Notice how the path string in the uninstall check has changed from previous version. Automatic updates can be disabled with JAVAUPDATE=0 JU=0 AUTOUPDATECHECK=0, but I'm not sure if it works at all.
<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" />
<install cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0160000}'><exit code='0' /><exit code='1605' /></install>
<install cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0160010}'><exit code='0' /><exit code='1605' /></install>
<install cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0160020}'><exit code='0' /><exit code='1605' /></install>
<install cmd='%SOFTWARE%\jre\jre-6u3-windows-i586-p.exe /s IEXPLORER=1 MOZILLA=1 ADDLOCAL=ALL REBOOT=Suppress JAVAUPDATE=0 JU=0 AUTOUPDATECHECK=0' />
<upgrade cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0160000}'><exit code='0' /><exit code='1605' /></upgrade>
<upgrade cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0160010}'><exit code='0' /><exit code='1605' /></upgrade>
<upgrade cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0160020}'><exit code='0' /><exit code='1605' /></upgrade>
<upgrade cmd='%SOFTWARE%\jre\jre-6u3-windows-i586-p.exe /s IEXPLORER=1 MOZILLA=1 ADDLOCAL=ALL REBOOT=Suppress JAVAUPDATE=0 JU=0 AUTOUPDATECHECK=0' />
<remove cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0160030}' />
</package>
http://java.sun.com/javase/6/docs/technotes/guides/deployment/deployment-guide/silent.html
Java Runtime Environment (JRE) 6 Update 2
This requires the Windows Offline installation package available from Sun. Note that the java install package does not replace old versions, so JRE 1.5 and JRE 1.6 can coexist; all older 1.6 update versions (1.6.0 and 1.6.0 Update 1) are tried to be removed. Notice how the path string in the uninstall check has changed from previous version. Automatic updates can be disabled with JAVAUPDATE=0 JU=0 AUTOUPDATECHECK=0, but I'm not sure if it works at all.
<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" />
<install cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0160000}'><exit code='0' /><exit code='1605' /></install>
<install cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0160010}'><exit code='0' /><exit code='1605' /></install>
<install cmd='%SOFTWARE%\jre\jre-6u2-windows-i586-p.exe /s IEXPLORER=1 MOZILLA=1 ADDLOCAL=ALL REBOOT=Suppress JAVAUPDATE=0 JU=0 AUTOUPDATECHECK=0' />
<upgrade cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0160000}'><exit code='0' /><exit code='1605' /></upgrade>
<upgrade cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0160010}'><exit code='0' /><exit code='1605' /></upgrade>
<upgrade cmd='%SOFTWARE%\jre\jre-6u2-windows-i586-p.exe /s IEXPLORER=1 MOZILLA=1 ADDLOCAL=ALL REBOOT=Suppress JAVAUPDATE=0 JU=0 AUTOUPDATECHECK=0' />
<remove cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0160020}' />
</package>
http://java.sun.com/javase/6/docs/technotes/guides/deployment/deployment-guide/silent.html
Java Runtime Environment (JRE) 6 Update 1
This requires the Windows Offline installation package available from Sun. Note that the java install package does not replace old versions, so JRE 1.5 and JRE 1.6 can coexist; older 1.6 update versions are tried to be removed. Automatic updates can be disabled with JAVAUPDATE=0 JU=0 AUTOUPDATECHECK=0, but I'm not sure if it works at all.
<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" />
<install cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0160000}'><exit code='0' /><exit code='1605' /></install>
<install cmd='%SOFTWARE%\jre\jre-6u1-windows-i586-p.exe /s IEXPLORER=1 MOZILLA=1 ADDLOCAL=ALL REBOOT=Suppress JAVAUPDATE=0 JU=0 AUTOUPDATECHECK=0' />
<upgrade cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0160000}'><exit code='0' /><exit code='1605' /></upgrade>
<upgrade cmd='%SOFTWARE%\jre\jre-6u1-windows-i586-p.exe /s IEXPLORER=1 MOZILLA=1 ADDLOCAL=ALL REBOOT=Suppress JAVAUPDATE=0 JU=0 AUTOUPDATECHECK=0' />
<remove cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0160010}' />
</package>
http://java.sun.com/javase/6/docs/technotes/guides/deployment/deployment-guide/silent.html
Java Runtime Environment (JRE) 6
This requires the Windows Offline installation package available from Sun. Note that the java install package does not replace old versions, so JRE 1.5 and JRE 1.6 can coexist. Automatic updates can be disabled with JAVAUPDATE=0 JU=0 AUTOUPDATECHECK=0, but I'm not sure if it works at all.
<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" />
<install cmd='%SOFTWARE%\jre\jre-6-windows-i586.exe /s IEXPLORER=1 MOZILLA=1 ADDLOCAL=ALL REBOOT=Suppress JAVAUPDATE=0 JU=0 AUTOUPDATECHECK=0' />
<upgrade cmd='%SOFTWARE%\jre\jre-6-windows-i586.exe /s IEXPLORER=1 MOZILLA=1 ADDLOCAL=ALL REBOOT=Suppress JAVAUPDATE=0 JU=0 AUTOUPDATECHECK=0' />
<remove cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0160000}' />
</package>
J2SE Runtime Environment 5.0 Update 11
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.
<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" />
<install cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150000}'><exit code='0' /><exit code='1605' /></install>
<install cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150010}'><exit code='0' /><exit code='1605' /></install>
<install cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150020}'><exit code='0' /><exit code='1605' /></install>
<install cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150030}'><exit code='0' /><exit code='1605' /></install>
<install cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150040}'><exit code='0' /><exit code='1605' /></install>
<install cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150050}'><exit code='0' /><exit code='1605' /></install>
<install cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150060}'><exit code='0' /><exit code='1605' /></install>
<install cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150070}'><exit code='0' /><exit code='1605' /></install>
<install cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150080}'><exit code='0' /><exit code='1605' /></install>
<install cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150090}'><exit code='0' /><exit code='1605' /></install>
<install cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150100}'><exit code='0' /><exit code='1605' /></install>
<install cmd='%SOFTWARE%\jre\jre-1_5_0_11-windows-i586-p-s.exe /s /v" /qn IEXPLORER=1 MOZILLA=1 ADDLOCAL=ALL REBOOT=Supress JAVAUPDATE=0' />
<upgrade cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150000}'><exit code='0' /><exit code='1605' /></upgrade>
<upgrade cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150010}'><exit code='0' /><exit code='1605' /></upgrade>
<upgrade cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150020}'><exit code='0' /><exit code='1605' /></upgrade>
<upgrade cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150030}'><exit code='0' /><exit code='1605' /></upgrade>
<upgrade cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150040}'><exit code='0' /><exit code='1605' /></upgrade>
<upgrade cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150050}'><exit code='0' /><exit code='1605' /></upgrade>
<upgrade cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150060}'><exit code='0' /><exit code='1605' /></upgrade>
<upgrade cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150070}'><exit code='0' /><exit code='1605' /></upgrade>
<upgrade cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150080}'><exit code='0' /><exit code='1605' /></upgrade>
<upgrade cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150090}'><exit code='0' /><exit code='1605' /></upgrade>
<upgrade cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150100}'><exit code='0' /><exit code='1605' /></upgrade>
<upgrade cmd='%SOFTWARE%\jre\jre-1_5_0_11-windows-i586-p-s.exe /s /v" /qn IEXPLORER=1 MOZILLA=1 ADDLOCAL=ALL REBOOT=Supress JAVAUPDATE=0' />
<remove cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150110}' />
</package>
J2SE Runtime Environment 5.0 Update 10
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.
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.
<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" />
<install cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150000}'><exit code='0' /><exit code='1605' /></install>
<install cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150010}'><exit code='0' /><exit code='1605' /></install>
<install cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150020}'><exit code='0' /><exit code='1605' /></install>
<install cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150030}'><exit code='0' /><exit code='1605' /></install>
<install cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150040}'><exit code='0' /><exit code='1605' /></install>
<install cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150050}'><exit code='0' /><exit code='1605' /></install>
<install cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150060}'><exit code='0' /><exit code='1605' /></install>
<install cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150070}'><exit code='0' /><exit code='1605' /></install>
<install cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150080}'><exit code='0' /><exit code='1605' /></install>
<install cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150090}'><exit code='0' /><exit code='1605' /></install>
<install cmd='%SOFTWARE%\jre\jre-1_5_0_10-windows-i586-p-s.exe /s /v" /qn IEXPLORER=1 MOZILLA=1 ADDLOCAL=ALL REBOOT=Supress JAVAUPDATE=0' />
<upgrade cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150000}'><exit code='0' /><exit code='1605' /></upgrade>
<upgrade cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150010}'><exit code='0' /><exit code='1605' /></upgrade>
<upgrade cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150020}'><exit code='0' /><exit code='1605' /></upgrade>
<upgrade cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150030}'><exit code='0' /><exit code='1605' /></upgrade>
<upgrade cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150040}'><exit code='0' /><exit code='1605' /></upgrade>
<upgrade cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150050}'><exit code='0' /><exit code='1605' /></upgrade>
<upgrade cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150060}'><exit code='0' /><exit code='1605' /></upgrade>
<upgrade cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150070}'><exit code='0' /><exit code='1605' /></upgrade>
<upgrade cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150080}'><exit code='0' /><exit code='1605' /></upgrade>
<upgrade cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150090}'><exit code='0' /><exit code='1605' /></upgrade>
<upgrade cmd='%SOFTWARE%\jre\jre-1_5_0_10-windows-i586-p-s.exe /s /v" /qn IEXPLORER=1 MOZILLA=1 ADDLOCAL=ALL REBOOT=Supress JAVAUPDATE=0' />
<remove cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150100}' />
</package>
J2SE Runtime Environment 5.0 Update 9
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.
<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" />
<install cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150000}'><exit code='0' /><exit code='1605' /></install>
<install cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150010}'><exit code='0' /><exit code='1605' /></install>
<install cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150020}'><exit code='0' /><exit code='1605' /></install>
<install cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150030}'><exit code='0' /><exit code='1605' /></install>
<install cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150040}'><exit code='0' /><exit code='1605' /></install>
<install cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150050}'><exit code='0' /><exit code='1605' /></install>
<install cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150060}'><exit code='0' /><exit code='1605' /></install>
<install cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150070}'><exit code='0' /><exit code='1605' /></install>
<install cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150080}'><exit code='0' /><exit code='1605' /></install>
<install cmd='%SOFTWARE%\java\jre-1_5_0_09-windows-i586-p.exe /s /v" /qn IEXPLORER=1 MOZILLA=1 ADDLOCAL=ALL REBOOT=Supress JAVAUPDATE=0' />
<upgrade cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150000}'><exit code='0' /><exit code='1605' /></upgrade>
<upgrade cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150010}'><exit code='0' /><exit code='1605' /></upgrade>
<upgrade cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150020}'><exit code='0' /><exit code='1605' /></upgrade>
<upgrade cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150030}'><exit code='0' /><exit code='1605' /></upgrade>
<upgrade cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150040}'><exit code='0' /><exit code='1605' /></upgrade>
<upgrade cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150050}'><exit code='0' /><exit code='1605' /></upgrade>
<upgrade cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150060}'><exit code='0' /><exit code='1605' /></upgrade>
<upgrade cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150070}'><exit code='0' /><exit code='1605' /></upgrade>
<upgrade cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150080}'><exit code='0' /><exit code='1605' /></upgrade>
<upgrade cmd='%SOFTWARE%\java\jre-1_5_0_09-windows-i586-p.exe /s /v" /qn IEXPLORER=1 MOZILLA=1 ADDLOCAL=ALL REBOOT=Supress JAVAUPDATE=0' />
<remove cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150090}' />
</package>
J2SE Runtime Environment 5.0 Update 6
This requires the Windows Offline installation package available from Sun.
<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" />
<install cmd='%WINDIR%\system32\cmd /c start /wait /d %SOFTWARE%\java %SOFTWARE%\java\jre-1_5_0_06-windows-i586-p.exe /s /v" /qn IEXPLORER=1 MOZILLA=1 ADDLOCAL=ALL REBOOT=Supress JAVAUPDATE=0' />
<remove cmd='msiexec /qn /x {3248F0A8-6813-11D6-A77B-00B0D0150060}' />
</package>
Other Useful MSI Properties
This will install java with no updating and no icons:
jre-1_5_0_10-windows-i586-p-s.exe /s /v"/qn ADDLOCAL=ALL AUTOUPDATECHECK=0 JU=0 IEXPLORER=1 MOZILLA=1 WEBSTARTICON=0 SYSTRAY=0 REBOOT=Suppress JAVAUPDATE=0 EULA=1"
J2SE Runtime Environment 5.0 Update 5
First download the EXE package from java.sun.com, install it, and find an MSI package on your drive. Then use this MSI to distribute Java to other machines.
Note: When you use the *.exe file directly with command line switches as proposed by sun the installer waits forever for someone accepting the licence agreement.
Note that "install cmd" should be in one line; it was wrapped because it was too long to fit here!
<package
id="jre"
name="Java Runtime Environment 1.5.0_05"
revision="1"
reboot="true"
priority="9">
<check type="uninstall" condition="exists" path="J2SE Runtime Environment 5.0 Update 5" />
<install cmd='msiexec /q /i %SOFTWARE%\Java\jre1.5.0_05.msi allusers=1 REBOOT=Suppress CUSTOM=1 IEXPLORER=1 MOZILLA=1 NETSCAPE6=1 JAVAUPDATE=0 ADDLOCAL=ALL' />
<remove cmd='MsiExec.exe /q /x{3248F0A8-6813-11D6-A77B-00B0D0150050}' />
</package>
<package
id="jdk"
name="Java Development Kit 1.5.0_05"
revision="1"
reboot="true"
priority="9">
<check type="uninstall" condition="exists" path="J2SE Development Kit 5.0 Update 5" />
<install cmd='msiexec /q /i %SOFTWARE%\Java\jdk1.5.0_05.msi allusers=1 REBOOT=Suppress CUSTOM=1 IEXPLORER=1 MOZILLA=1 NETSCAPE6=1 JAVAUPDATE=0 ADDLOCAL=ALL' />
<remove cmd='MsiExec.exe /q /x{32A3A4F4-B792-11D6-A78A-00B0D0150050}' />
</package>
See also Sun Java