Unistall Java 1.6 using a bat file
Does anyone have a way of uninstalling Java 1.6 and only 1.6, using a .bat or a .exe, we have a program that will only work Via Java 1.5X and I would like to put out on the server a .bat or .exe that people can use to unistall java 1.6 instead of me having to have to walk them through the Start > settings > controll panel stuff... any ideas please help : )
[371 byte] By [
scottl123a] at [2007-11-27 3:44:46]

# 1
>we have a program that will only work Via Java 1.5XReally ?!!See here: http://java.sun.com/j2se/1.5.0/install-windows.html(2. If 5.0 Beta 1, Beta 2 or RC is installed, uninstall it.)
# 2
You might want to check out Bug Id: 6543896.
There is an issue with uninstalling 1.6 and trying to revert back to any 1.5 jre. This is supposed to be fixed in 1.6 update 2, but that of course is not available at this moment.
But as an aside, you might actually want to try setting up your application to run via Webstart were you are able to specify jre families to be used to run your app. Then your application will use the correct jre no matter which is installed on the machine.
Good luck.
# 3
thanks for your replys I did create a bat that works for the unistall of JRE 1.6.... I am going to post it.... it works good but we have had the issue with removing Java 1.6 the issue is even if your revert back you are still always prompted to be updated again....
@echo off
echo Uninstalling Java Runtime Environment 1.6...
IF EXIST "C:\Program Files\Java\jre1.6.0_02" msiexec.exe /qn /x {3248F0A8-6813-11D6-A77B-00B0D0160020}
IF EXIST "C:\Program Files\Java\jre1.6.0_01" msiexec.exe /qn /x {3248F0A8-6813-11D6-A77B-00B0D0160010}
IF EXIST "C:\Program Files\Java\jre1.6.0" msiexec.exe /qn /x {3248F0A8-6813-11D6-A77B-00B0D0160000}