Unistall all incidences of java
Hi guys,
Can you unistall all java version with a script thats easy to put into sccm?
Answers (2)
Not an SCCM shop but we use a simple batch file to remove all of our environment's existing versions of java and then deploy the newest version.
By calling msiexec /x{guid} /queit /norestart. all of Java's MSI uninstall codes are identical except a few bits at the end to identify the version for example:
MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F83216021FF} /quiet /norestart
MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F83217011FF} /quiet /norestart
MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F83217013FF} /quiet /norestart
MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F86417015FF} /quiet /norestart
If you notice the only thing changes is "6021" "7011" 7013" "7015", which is java version 6 update 21, 7 update 11, upate 13, and update 15. And if you have happen to have 64-bit simply change the to two digits right before that to 64 or 32.
If you want some more in depth idea have a look at this article:
http://www.itninja.com/question/silent-uninstall-java-all-versions
The answer by SpellJammer towards the very bottom was something I played with as well that worked ok but if you have a lot of installed programs it can take a little while to parse through all of the Win32_Product entries to uninstall all of the matches.
also see
http://www.itninja.com/question/ultimate-java-uninstaller
the author states
Last note, script had to be run as an Administrator, pushed through SCCM
Comments:
-
http://www.itninja.com/blog/view/java-uninstall-strings-tip-win-7-x64-reg-location-for-uninstall-strings
also this was in another answer
http://singularlabs.com/software/javara/ - SMal.tmcc 11 years ago