/build/static/layout/Breadcrumb_cap_w.png

Unistall all incidences of java

Hi guys,

 

Can you unistall all java version with a script thats easy to put into sccm?

 


0 Comments   [ + ] Show comments

Answers (2)

Posted by: matiasm 11 years ago
Orange Senior Belt
0

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.

Posted by: SMal.tmcc 11 years ago
Red Belt
0

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
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ