Archive: uninstall Java Runtime Env. (JRE)


uninstall Java Runtime Env. (JRE)
I want to be able to silently uninstall the JRE. I've followed Sun's instructions on http://java.sun.com/j2se/1.5.0/docs/...l#uninstalling
but have been unsuccessful. :( My code, which works to install the JRE, is attached.

Thank you


Based on the name of the package j2re-1_4_2_11-windows-i586-p-iftw.exe it would seem that you are trying to remove version 1.4.2_11, in which case the GUID you are passing to msiexec /x is incorrect and should be {3248F0A8-6813-11D6-A77B-00B0D0142110}. I've not actually tried this though, YMMV.


Thanks, nandhp. I tried the new GUID, but, unfortunately, the script still doesn't work. The uninstaller runs, but it completes way too fast to be actually uninstalling something the size of the jre, and afterwards the jre is still installed.


As nandhp points out, your GUID is likely to apply to older versions of JRE.
You should either find the newest GUID or execute the uninstaller yourself if you know where it resides.

-Stu