/build/static/layout/Breadcrumb_cap_w.png

Uninstall many different Java versions at one time

Hello,

we want to deploy all our 400 client the same java version. Our problem is, that we need to do uninstall all different java version. It is possible to uninstall few java version in one way? Maybe guid?

I hope, you can help me.

Martin


0 Comments   [ + ] Show comments

Answers (4)

Posted by: Nico_K 11 years ago
Red Belt
2

an easy way would this one:

wmic product where "name like 'Java'" call uninstall /nointeractive

it will start a deinstallation of all software pieces with Java inside the name.


Comments:
  • Don't use product.
    http://myitforum.com/cs2/blogs/gramsey/archive/2011/01/25/win32-product-is-evil.aspx

    Make a script in that goes through HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* and the same for the 32bit location if you're on a 64bit OS. This allows you to get the displayname, version and guid. Then uninstall using the GUID based on displayname matches in a filter with wildcards. - Ifan 11 years ago
Posted by: ekgcorp 11 years ago
10th Degree Black Belt
2

Java is a tad different than most software. It has family of products like 1.6, 1.5, or 1.4. If you install version 1.6.0.45 it will uninstall any older version of 1.6, but will not touch 1.5 or 1.4.

However, you have another issue with Java. That is that some vendors will take a version of Java and Tweek it abit to work with their software and anytime you find these, they should be treated than the base Java JRE installs.

So, if you wanted to do some cleanup, and know for sure that version 1.6.0.20 is no longer needed on a pc by any software or company intranet site, then you could create a script of some kind that checks guid, and then runs the msi uninstall command.. for example, uninstalling 1.6.0.20 would be msiexec.exe /x {26A24AE4-039D-4CA4-87B4-2F83216020FF} /qb


Comments:
  • You should look at this: http://www.itninja.com/question/silent-uninstall-java-all-versions Has support for removing 1.3-1.7, and allows you to specify specific versions to keep. - drose23 11 years ago
Posted by: Mako-Wish 10 years ago
White Belt
2

Set objShell = CreateObject("WScript.Shell")

 Versions = Array( _
  "{26A24AE4-039D-4CA4-87B4-2F06418011FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F03218011FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F06418005FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F03218005FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F06418000FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F03218000FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F06417067FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F03217067FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F06417065FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F03217065FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F06417060FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F03217060FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F86417055FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F83217055FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F86417051FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F83217051FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F86417045FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F83217045FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F86417040FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F83217040FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F86417025FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F83217025FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F86417021FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F83217021FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F86417017FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F83217017FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F86417016FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F83217016FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F86417015FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F83217015FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F86417014FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F83217014FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F86417013FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F83217013FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F86417012FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F83217012FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F86417011FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F83217011FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F86417010FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F83217010FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F86417009FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F83217009FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F86417008FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F83217008FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F86417007FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F83217007FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F86417006FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F83217006FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F86417005FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F83217005FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F86417004FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F83217004FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F86417003FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F83217003FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F86417002FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F83217002FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F86417001FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F83217001FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F86416043FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F83216043FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F86416042FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F83216042FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F86416041FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F83216041FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F86416040FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F83216040FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F86416039FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F83216039FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F86416038FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F83216038FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F86416037FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F83216037FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F86416036FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F83216036FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F86416035FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F83216035FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F86416034FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F83216034FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F86416033FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F83216033FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F86416032FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F83216032FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F86416031FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F83216031FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F86416030FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F83216030FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F86416029FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F83216029FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F86416028FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F83216028FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F86416027FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F83216027FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F86416026FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F83216026FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F86416025FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F83216025FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F86416024FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F83216024FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F86416023FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F83216023FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F86416022FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F83216022FF}", _
  "{3248F0A8-6813-11D6-A77B-00B0D0160220}", _
  "{26A24AE4-039D-4CA4-87B4-2F83216021FF}", _
  "{3248F0A8-6813-11D6-A77B-00B0D0160210}", _
  "{26A24AE4-039D-4CA4-87B4-2F83216020FF}", _
  "{3248F0A8-6813-11D6-A77B-00B0D0160200}", _
  "{26A24AE4-039D-4CA4-87B4-2F83216019FF}", _
  "{3248F0A8-6813-11D6-A77B-00B0D0160190}", _
  "{26A24AE4-039D-4CA4-87B4-2F83216018FF}", _
  "{3248F0A8-6813-11D6-A77B-00B0D0160180}", _
  "{26A24AE4-039D-4CA4-87B4-2F83216017FF}", _
  "{3248F0A8-6813-11D6-A77B-00B0D0160170}", _
  "{26A24AE4-039D-4CA4-87B4-2F83216016FF}", _
  "{3248F0A8-6813-11D6-A77B-00B0D0160160}", _
  "{26A24AE4-039D-4CA4-87B4-2F83216015FF}", _
  "{3248F0A8-6813-11D6-A77B-00B0D0160150}", _
  "{26A24AE4-039D-4CA4-87B4-2F83216014FF}", _
  "{3248F0A8-6813-11D6-A77B-00B0D0160140}", _
  "{26A24AE4-039D-4CA4-87B4-2F83216013FF}", _
  "{3248F0A8-6813-11D6-A77B-00B0D0160130}", _
  "{26A24AE4-039D-4CA4-87B4-2F83216012FF}", _
  "{3248F0A8-6813-11D6-A77B-00B0D0160120}", _
  "{26A24AE4-039D-4CA4-87B4-2F83216011FF}", _
  "{3248F0A8-6813-11D6-A77B-00B0D0160110}", _
  "{26A24AE4-039D-4CA4-87B4-2F83216010FF}", _
  "{3248F0A8-6813-11D6-A77B-00B0D0160100}", _
  "{26A24AE4-039D-4CA4-87B4-2F83216009FF}", _
  "{3248F0A8-6813-11D6-A77B-00B0D0160090}", _
  "{26A24AE4-039D-4CA4-87B4-2F83216008FF}", _
  "{3248F0A8-6813-11D6-A77B-00B0D0160080}", _
  "{26A24AE4-039D-4CA4-87B4-2F86416007FF}", _
  "{26A24AE4-039D-4CA4-87B4-2F83216007FF}", _
  "{3248F0A8-6813-11D6-A77B-00B0D0160070}", _
  "{26A24AE4-039D-4CA4-87B4-2F83216006FF}", _
  "{3248F0A8-6813-11D6-A77B-00B0D0160060}", _
  "{26A24AE4-039D-4CA4-87B4-2F83216005FF}", _
  "{3248F0A8-6813-11D6-A77B-00B0D0160050}", _
  "{26A24AE4-039D-4CA4-87B4-2F83216004FF}", _
  "{3248F0A8-6813-11D6-A77B-00B0D0160040}", _
  "{26A24AE4-039D-4CA4-87B4-2F83216003FF}", _
  "{3248F0A8-6813-11D6-A77B-00B0D0160030}", _
  "{26A24AE4-039D-4CA4-87B4-2F83216002FF}", _
  "{3248F0A8-6813-11D6-A77B-00B0D0160020}", _
  "{26A24AE4-039D-4CA4-87B4-2F83216001FF}", _
  "{3248F0A8-6813-11D6-A77B-00B0D0160010}", _
  "{26A24AE4-039D-4CA4-87B4-2F83216000FF}", _
  "{3248F0A8-6813-11D6-A77B-00B0D0160000}", _
  "{3248F0A8-6813-11D6-A77B-00B0D0150000}", _
  "{3248F0A8-6813-11D6-A77B-00B0D0150010}", _
  "{3248F0A8-6813-11D6-A77B-00B0D0150020}", _
  "{3248F0A8-6813-11D6-A77B-00B0D0150030}", _
  "{3248F0A8-6813-11D6-A77B-00B0D0150040}", _
  "{3248F0A8-6813-11D6-A77B-00B0D0150050}", _
  "{3248F0A8-6813-11D6-A77B-00B0D0150060}", _
  "{3248F0A8-6813-11D6-A77B-00B0D0150070}", _
  "{3248F0A8-6813-11D6-A77B-00B0D0150080}", _
  "{3248F0A8-6813-11D6-A77B-00B0D0150090}", _
  "{3248F0A8-6813-11D6-A77B-00B0D0150100}", _
  "{3248F0A8-6813-11D6-A77B-00B0D0150110}", _
  "{3248F0A8-6813-11D6-A77B-00B0D0150120}", _
  "{3248F0A8-6813-11D6-A77B-00B0D0150130}", _
  "{3248F0A8-6813-11D6-A77B-00B0D0150140}", _
  "{3248F0A8-6813-11D6-A77B-00B0D0150150}", _
  "{3248F0A8-6813-11D6-A77B-00B0D0150160}", _
  "{3248F0A8-6813-11D6-A77B-00B0D0150170}", _
  "{3248F0A8-6813-11D6-A77B-00B0D0150180}", _
  "{3248F0A8-6813-11D6-A77B-00B0D0150190}", _
  "{3248F0A8-6813-11D6-A77B-00B0D0150200}", _
  "{3248F0A8-6813-11D6-A77B-00B0D0150210}", _
  "{3248F0A8-6813-11D6-A77B-00B0D0150220}", _
  "{3248F0A8-6813-11D6-A77B-00B0D0150230}", _
  "{7148F0A8-6813-11D6-A77B-00B0D0142000}", _
  "{7148F0A8-6813-11D6-A77B-00B0D0142010}", _
  "{7148F0A8-6813-11D6-A77B-00B0D0142020}", _
  "{7148F0A8-6813-11D6-A77B-00B0D0142030}", _
  "{7148F0A8-6813-11D6-A77B-00B0D0142040}", _
  "{7148F0A8-6813-11D6-A77B-00B0D0142050}", _
  "{7148F0A8-6813-11D6-A77B-00B0D0142060}", _
  "{7148F0A8-6813-11D6-A77B-00B0D0142070}", _
  "{7148F0A8-6813-11D6-A77B-00B0D0142080}", _
  "{7148F0A8-6813-11D6-A77B-00B0D0142090}", _
  "{7148F0A8-6813-11D6-A77B-00B0D0142100}", _
  "{7148F0A8-6813-11D6-A77B-00B0D0142110}", _
  "{7148F0A8-6813-11D6-A77B-00B0D0142120}", _
  "{7148F0A8-6813-11D6-A77B-00B0D0142130}", _
  "{7148F0A8-6813-11D6-A77B-00B0D0142140}", _
  "{7148F0A8-6813-11D6-A77B-00B0D0142150}", _
  "{7148F0A8-6813-11D6-A77B-00B0D0142160}", _
  "{7148F0A8-6813-11D6-A77B-00B0D0142170}", _
  "{7148F0A8-6813-11D6-A77B-00B0D0142180}", _
  "{7148F0A8-6813-11D6-A77B-00B0D0142190}" _
 )

 ' Remove every version using the array above
 For Each Version in Versions
  objShell.Run "MsiExec.exe /X" & Version & " /QN /NoRestart",0,True
 Next

Posted by: Pathfinder 9 years ago
Senior Yellow Belt
1

Well... its quite old that thread, but as I come over it in search of a way uninstalling old Java Versions, I would like to post my working result.

I created an bat file with this content (I found it somewhere in the net, but donĀ“t have the author of it):

@ECHOOFF
cls
TITLE Uninstalling Java 6 and 7... (x86 and x64 versions)
START /WAIT /MIN WMIC product where "Name LIKE 'J2SE Runtime%%'" call uninstall /nointeractive
START /WAIT /MIN WMIC product where "Name LIKE 'Java 6 Update%%'" call uninstall /nointeractive
START /WAIT /MIN WMIC product where "Name LIKE 'Java(TM) 6 Update%%'" call uninstall /nointeractive
START /WAIT /MIN WMIC product where "Name LIKE 'Java 7 Update%%'" call uninstall /nointeractive
START /WAIT /MIN WMIC product where "Name LIKE 'Java(TM) 7 Update%%'" call uninstall /nointeractive
START /WAIT /MIN WMIC product where "Name LIKE 'Java 8 Update%%'" call uninstall /nointeractive
goto END
:END
exit

Then, because I needed to get it work with a sccm deployment in silent nointeractive mode without any Admininput, I converted the .bat into an .exe. This works like a charm. I used the freeware tool "Bat_To_Exe_Converter" for it from Fatih Kodak (http://www.f2ko.de/en/b2e.php).

For me it worked on Win8.1 x 64 Enterprise and Win10 x 64 Enterprise with sccm2012. Because we do only have x64 machines in my company, I am not able to say if it works fine on x86 environment. Both uninstalls of Java x32 and x64 is working fine in my x64 environment.

 
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