117
edits
Changes
Java
,Update for 6u26 and a little clean up
<source lang="xml">
<package id="java6" name="Java Runtime Environment 6" revision="%version%" reboot="false" priority="100"> <variable name="version" value="2526" />
<check type="uninstall" condition="exists" path="Java(TM) 6 Update %version%" />
<install cmd='taskkill /f /im jqs.exe /im iexplore.exe /im firefox.exe'> <exit code='0' /> <exit code='1' /> <exit code='128' /> </install>
<install cmd='%SOFTWARE%\jre\jre-6u%version%-windows-i586.exe /s REBOOT=Suppress' />
<install cmd='%COMSPEC% /C if exist "%PROGRAMFILES%\Java\jre6\bin\jqs.exe" "%PROGRAMFILES%\Java\jre6\bin\jqs.exe" -unregister'>
<install cmd='msiexec /qn /x {4A03706F-666A-4037-7777-5F2748764D10}' />
<upgrade cmd='taskkill /f /im jqs.exe /im iexplore.exe /im firefox.exe' > <exit code='0' /> <exit code='1' /> <exit code='128' /> </upgrade>
<upgrade cmd='%SOFTWARE%\jre\jre-6u%version%-windows-i586.exe /s REBOOT=Suppress' />
<upgrade cmd='%COMSPEC% /C if exist "%PROGRAMFILES%\Java\jre6\bin\jqs.exe" "%PROGRAMFILES%\Java\jre6\bin\jqs.exe" -unregister'>
<remove cmd='msiexec /qn /x {26A24AE4-039D-4CA4-87B4-2F832160%version%FF}' />
</package>
</source>
Options that work correctly are /q, /qn (no UI), /qr (reduced UI), and /quiet (quiet mode, no user interaction).
See [http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6764967 6764967] for details."
=Older Versions=
==Java Runtime Environment (JRE) 6 Update 10==
</source>
This is my personal solution. Works properly for me starting from Java 6 Update 11.
It works on Windows XP and Vista. 64-bit OS is supported as well as 32-bit OS.