JAVA COMMAND-LINE SILENT UNINSTALL


java

If you’re trying to figure out how to silently uninstall Java Runtime Environment (JRE) from a command-line, well, step into the cage. The CAGED RAT will set you free in 2 EASY STEPS!


Author’s Note:  Stay tuned for my follow-up post where I will show you how to automate/script the silent uninstall of java against multiple computers over the network!


STEP 1: FIND YOUR JAVA GLOBALLY UNIQUE IDENTIFIER (GUID)

OPTION 1 [Slowest Method]:  Launch regedit.exe and search for your Java installation.  The GUID is made-up of alphanumeric characters.  Look for the registry String Value name “ModifyPath” with the Data value containing something like MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F83218066F0}

java_reg_search

 

OPTION 2 [Faster Method]:  Launch Windows PowerShell and follow my example below:

java_ps_search

Example:  
Get-WmiObject -Class Win32_Product | Where-Object {$_.Name -like 'Java 8*'}

 

OPTION 3 [Fastest Method]:  Try your luck searching through the “JAVA GUID REFERENCE LIST” at the bottom of this post.

Example:  
Use your browser's "Find on this page" feature [press Ctrl+F]. Search for a Java version such as Java 7 Update 14.

 


STEP 2:  SILENTLY UNINSTALL JAVA FROM THE COMMAND-LINE

After you have located the GUID for your installed Java version, launch a command shell (i.e., cmd.exe) with Run as administrator and follow my example below:

java_cmd_silent_uninstall

Example:  
msiexec /x {26A24AE4-039D-4CA4-87B4-2F83218080FF} /qn

 

Helpful Msiexec Command-line References:


JAVA GUID REFERENCE LIST:

Java 8 Update 73 {26A24AE4-039D-4CA4-87B4-2F86418073F0} - 64 bit
Java 8 Update 73 {26A24AE4-039D-4CA4-87B4-2F83218073F0} - 32 bit
Java 8 Update 72 {26A24AE4-039D-4CA4-87B4-2F86418072F0} - 64 bit
Java 8 Update 72 {26A24AE4-039D-4CA4-87B4-2F83218072F0} - 32 bit
Java 8 Update 66 {26A24AE4-039D-4CA4-87B4-2F86418066F0} - 64 bit
Java 8 Update 66 {26A24AE4-039D-4CA4-87B4-2F83218066F0}
Java 8 Update 31 {26A24AE4-039D-4CA4-87B4-2F86418031F0} - 64 bit
Java 8 Update 31 {26A24AE4-039D-4CA4-87B4-2F83218031F0}
Java 8 Update 25 {26A24AE4-039D-4CA4-87B4-2F86418025F0} - 64 bit
Java 8 Update 25 {26A24AE4-039D-4CA4-87B4-2F83218025F0}
Java 7 Update 80 {26A24AE4-039D-4CA4-87B4-2F06417080FF} - 64 bit
Java 7 Update 80 {26A24AE4-039D-4CA4-87B4-2F03217080FF}
Java 7 Update 79 {26A24AE4-039D-4CA4-87B4-2F06417079FF} - 64 bit
Java 7 Update 79 {26A24AE4-039D-4CA4-87B4-2F03217079FF}
Java 7 Update 76 {26A24AE4-039D-4CA4-87B4-2F06417076FF} - 64 bit
Java 7 Update 76 {26A24AE4-039D-4CA4-87B4-2F03217076FF}
Java 7 Update 75 {26A24AE4-039D-4CA4-87B4-2F06417075FF} - 64 bit
Java 7 Update 75 {26A24AE4-039D-4CA4-87B4-2F03217075FF}
Java 7 Update 72 {26A24AE4-039D-4CA4-87B4-2F06417072FF} - 64 bit
Java 7 Update 72 {26A24AE4-039D-4CA4-87B4-2F03217072FF}
Java 7 Update 71 {26A24AE4-039D-4CA4-87B4-2F06417071FF} - 64 bit
Java 7 Update 71 {26A24AE4-039D-4CA4-87B4-2F03217071FF}
Java 7 Update 67 {26A24AE4-039D-4CA4-87B4-2F06417067FF} - 64 bit
Java 7 Update 67 {26A24AE4-039D-4CA4-87B4-2F03217067FF}
Java 7 Update 60 {26A24AE4-039D-4CA4-87B4-2F06417060FF} - 64 bit
Java 7 Update 60 {26A24AE4-039D-4CA4-87B4-2F03217060FF}
Java 7 Update 55 {26A24AE4-039D-4CA4-87B4-2F86417055FF} - 64 bit
Java 7 Update 55 {26A24AE4-039D-4CA4-87B4-2F83217055FF}
Java 7 Update 51 {26A24AE4-039D-4CA4-87B4-2F83217051FF} - 64 bit
Java 7 Update 51 {26A24AE4-039D-4CA4-87B4-2F83217051FF}
Java 7 Update 45 {26A24AE4-039D-4CA4-87B4-2F86417045FF} - 64 bit
Java 7 Update 45 {26A24AE4-039D-4CA4-87B4-2F83217045FF}
Java 7 Update 40 {26A24AE4-039D-4CA4-87B4-2F86417040FF} - 64 bit
Java 7 Update 40 {26A24AE4-039D-4CA4-87B4-2F83217040FF}
Java 7 Update 25 {26A24AE4-039D-4CA4-87B4-2F86417025FF} - 64 bit
Java 7 Update 25 {26A24AE4-039D-4CA4-87B4-2F83217025FF}
Java 7 Update 21 {26A24AE4-039D-4CA4-87B4-2F86417021FF} - 64 bit
Java 7 Update 21 {26A24AE4-039D-4CA4-87B4-2F83217021FF}
Java 7 Update 17 {26A24AE4-039D-4CA4-87B4-2F86417017FF} - 64 bit
Java 7 Update 17 {26A24AE4-039D-4CA4-87B4-2F83217017FF}
Java 7 Update 16 {26A24AE4-039D-4CA4-87B4-2F86417016FF} - 64 bit 
Java 7 Update 16 {26A24AE4-039D-4CA4-87B4-2F83217016FF}
Java 7 Update 15 {26A24AE4-039D-4CA4-87B4-2F86417015FF} - 64 bit
Java 7 Update 15 {26A24AE4-039D-4CA4-87B4-2F83217015FF}
Java 7 Update 14 {26A24AE4-039D-4CA4-87B4-2F86417014FF} - 64 bit
Java 7 Update 14 {26A24AE4-039D-4CA4-87B4-2F83217014FF}
Java 7 Update 13 {26A24AE4-039D-4CA4-87B4-2F86417013FF} - 64 bit
Java 7 Update 13 {26A24AE4-039D-4CA4-87B4-2F83217013FF}
Java 7 Update 12 {26A24AE4-039D-4CA4-87B4-2F86417012FF} - 64 bit
Java 7 Update 12 {26A24AE4-039D-4CA4-87B4-2F83217012FF}
Java 7 Update 11 {26A24AE4-039D-4CA4-87B4-2F86417011FF} - 64 bit
Java 7 Update 11 {26A24AE4-039D-4CA4-87B4-2F83217011FF}
Java 7 Update 10 {26A24AE4-039D-4CA4-87B4-2F86417010FF} - 64 bit
Java 7 Update 10 {26A24AE4-039D-4CA4-87B4-2F83217010FF}
Java 7 Update 9  {26A24AE4-039D-4CA4-87B4-2F86417009FF} - 64 bit
Java 7 Update 9  {26A24AE4-039D-4CA4-87B4-2F83217009FF}
Java 7 Update 8  {26A24AE4-039D-4CA4-87B4-2F86417008FF} - 64 bit
Java 7 Update 8  {26A24AE4-039D-4CA4-87B4-2F83217008FF}
Java 7 Update 7  {26A24AE4-039D-4CA4-87B4-2F86417007FF} - 64 bit
Java 7 Update 7  {26A24AE4-039D-4CA4-87B4-2F83217007FF}
Java 7 Update 6  {26A24AE4-039D-4CA4-87B4-2F86417006FF} - 64 bit
Java 7 Update 6  {26A24AE4-039D-4CA4-87B4-2F83217006FF}
Java 7 Update 5  {26A24AE4-039D-4CA4-87B4-2F86417005FF} - 64 bit
Java 7 Update 5  {26A24AE4-039D-4CA4-87B4-2F83217005FF}
Java 7 Update 4  {26A24AE4-039D-4CA4-87B4-2F86417004FF} - 64 bit
Java 7 Update 4  {26A24AE4-039D-4CA4-87B4-2F83217004FF}
Java 7 Update 3  {26A24AE4-039D-4CA4-87B4-2F86417003FF} - 64 bit
Java 7 Update 3  {26A24AE4-039D-4CA4-87B4-2F83217003FF}
Java 7 Update 2  {26A24AE4-039D-4CA4-87B4-2F86417002FF} - 64 bit
Java 7 Update 2  {26A24AE4-039D-4CA4-87B4-2F83217002FF}
Java 7 Update 1  {26A24AE4-039D-4CA4-87B4-2F86417001FF} - 64 bit
Java 7 Update 1  {26A24AE4-039D-4CA4-87B4-2F83217001FF}
Java 6 Update 43 {26A24AE4-039D-4CA4-87B4-2F86416043FF} - 64 bit
Java 6 Update 43 {26A24AE4-039D-4CA4-87B4-2F83216043FF}
Java 6 Update 42 {26A24AE4-039D-4CA4-87B4-2F86416042FF} - 64 bit
Java 6 Update 42 {26A24AE4-039D-4CA4-87B4-2F83216042FF}
Java 6 Update 41 {26A24AE4-039D-4CA4-87B4-2F86416041FF} - 64 bit
Java 6 Update 41 {26A24AE4-039D-4CA4-87B4-2F83216041FF}
Java 6 Update 40 {26A24AE4-039D-4CA4-87B4-2F86416040FF} - 64 bit
Java 6 Update 40 {26A24AE4-039D-4CA4-87B4-2F83216040FF}
Java 6 Update 39 {26A24AE4-039D-4CA4-87B4-2F86416039FF} - 64 bit
Java 6 Update 39 {26A24AE4-039D-4CA4-87B4-2F83216039FF}
Java 6 Update 38 {26A24AE4-039D-4CA4-87B4-2F86416038FF} - 64 bit
Java 6 Update 38 {26A24AE4-039D-4CA4-87B4-2F83216038FF}
Java 6 Update 37 {26A24AE4-039D-4CA4-87B4-2F86416037FF} - 64 bit
Java 6 Update 37 {26A24AE4-039D-4CA4-87B4-2F83216037FF}
Java 6 Update 36 {26A24AE4-039D-4CA4-87B4-2F86416036FF} - 64 bit
Java 6 Update 36 {26A24AE4-039D-4CA4-87B4-2F83216036FF}
Java 6 Update 35 {26A24AE4-039D-4CA4-87B4-2F86416035FF} - 64 bit
Java 6 Update 35 {26A24AE4-039D-4CA4-87B4-2F83216035FF}
Java 6 Update 34 {26A24AE4-039D-4CA4-87B4-2F86416034FF} - 64 bit
Java 6 Update 34 {26A24AE4-039D-4CA4-87B4-2F83216034FF}
Java 6 Update 33 {26A24AE4-039D-4CA4-87B4-2F86416033FF} - 64 bit
Java 6 Update 33 {26A24AE4-039D-4CA4-87B4-2F83216033FF}
Java 6 Update 32 {26A24AE4-039D-4CA4-87B4-2F86416032FF} - 64 bit
Java 6 Update 32 {26A24AE4-039D-4CA4-87B4-2F83216032FF}
Java 6 Update 31 {26A24AE4-039D-4CA4-87B4-2F86416031FF} - 64 bit
Java 6 Update 31 {26A24AE4-039D-4CA4-87B4-2F83216031FF}
Java 6 Update 30 {26A24AE4-039D-4CA4-87B4-2F86416030FF} - 64 bit
Java 6 Update 30 {26A24AE4-039D-4CA4-87B4-2F83216030FF}
Java 6 Update 29 {26A24AE4-039D-4CA4-87B4-2F86416029FF} - 64 bit
Java 6 Update 29 {26A24AE4-039D-4CA4-87B4-2F83216029FF}
Java 6 Update 28 {26A24AE4-039D-4CA4-87B4-2F86416028FF} - 64 bit
Java 6 Update 28 {26A24AE4-039D-4CA4-87B4-2F83216028FF}
Java 6 Update 27 {26A24AE4-039D-4CA4-87B4-2F86416027FF} - 64 bit
Java 6 Update 27 {26A24AE4-039D-4CA4-87B4-2F83216027FF}
Java 6 Update 26 {26A24AE4-039D-4CA4-87B4-2F86416026FF} - 64 bit
Java 6 Update 26 {26A24AE4-039D-4CA4-87B4-2F83216026FF}
Java 6 Update 25 {26A24AE4-039D-4CA4-87B4-2F86416025FF} - 64 bit
Java 6 Update 25 {26A24AE4-039D-4CA4-87B4-2F83216025FF}
Java 6 Update 24 {26A24AE4-039D-4CA4-87B4-2F86416024FF} - 64 bit
Java 6 Update 24 {26A24AE4-039D-4CA4-87B4-2F83216024FF}
Java 6 Update 23 {26A24AE4-039D-4CA4-87B4-2F86416023FF} - 64 bit
Java 6 Update 23 {26A24AE4-039D-4CA4-87B4-2F83216023FF}
Java 6 Update 22 {26A24AE4-039D-4CA4-87B4-2F83216022FF}
                 {3248F0A8-6813-11D6-A77B-00B0D0160220}
Java 6 Update 21 {26A24AE4-039D-4CA4-87B4-2F83216021FF}
                 {3248F0A8-6813-11D6-A77B-00B0D0160210}
Java 6 Update 20 {26A24AE4-039D-4CA4-87B4-2F83216020FF}
                 {3248F0A8-6813-11D6-A77B-00B0D0160200}
Java 6 Update 19 {26A24AE4-039D-4CA4-87B4-2F83216019FF}
                 {3248F0A8-6813-11D6-A77B-00B0D0160190}
Java 6 Update 18 {26A24AE4-039D-4CA4-87B4-2F83216018FF}
                 {3248F0A8-6813-11D6-A77B-00B0D0160180}
Java 6 Update 17 {26A24AE4-039D-4CA4-87B4-2F83216017FF}
                 {3248F0A8-6813-11D6-A77B-00B0D0160170}
Java 6 Update 16 {26A24AE4-039D-4CA4-87B4-2F83216016FF}
                 {3248F0A8-6813-11D6-A77B-00B0D0160160}
Java 6 Update 15 {26A24AE4-039D-4CA4-87B4-2F83216015FF}
                 {3248F0A8-6813-11D6-A77B-00B0D0160150}
Java 6 Update 14 {26A24AE4-039D-4CA4-87B4-2F83216014FF}
                 {3248F0A8-6813-11D6-A77B-00B0D0160140}
Java 6 Update 13 {26A24AE4-039D-4CA4-87B4-2F83216013FF}
                 {3248F0A8-6813-11D6-A77B-00B0D0160130}
Java 6 Update 12 {26A24AE4-039D-4CA4-87B4-2F83216012FF}
                 {3248F0A8-6813-11D6-A77B-00B0D0160120}
Java 6 Update 11 {26A24AE4-039D-4CA4-87B4-2F83216011FF}
                 {3248F0A8-6813-11D6-A77B-00B0D0160110}
Java 6 Update 10 {26A24AE4-039D-4CA4-87B4-2F83216010FF}
                 {3248F0A8-6813-11D6-A77B-00B0D0160100}
Java 6 Update 09 {26A24AE4-039D-4CA4-87B4-2F83216009FF}
                 {3248F0A8-6813-11D6-A77B-00B0D0160090}
Java 6 Update 08 {26A24AE4-039D-4CA4-87B4-2F83216008FF}
                 {3248F0A8-6813-11D6-A77B-00B0D0160080}
Java 6 Update 07 {26A24AE4-039D-4CA4-87B4-2F83216007FF}
                 {3248F0A8-6813-11D6-A77B-00B0D0160070}
Java 6 Update 06 {26A24AE4-039D-4CA4-87B4-2F83216006FF}
                 {3248F0A8-6813-11D6-A77B-00B0D0160060}
Java 6 Update 05 {26A24AE4-039D-4CA4-87B4-2F83216005FF}
                 {3248F0A8-6813-11D6-A77B-00B0D0160050}
Java 6 Update 04 {26A24AE4-039D-4CA4-87B4-2F83216004FF}
                 {3248F0A8-6813-11D6-A77B-00B0D0160040}
Java 6 Update 03 {26A24AE4-039D-4CA4-87B4-2F83216003FF}
                 {3248F0A8-6813-11D6-A77B-00B0D0160030}
Java 6 Update 02 {26A24AE4-039D-4CA4-87B4-2F83216002FF}
                 {3248F0A8-6813-11D6-A77B-00B0D0160020}
Java 6 Update 01 {26A24AE4-039D-4CA4-87B4-2F83216001FF}
                 {3248F0A8-6813-11D6-A77B-00B0D0160010}
Java 6           {26A24AE4-039D-4CA4-87B4-2F83216000FF}
                 {3248F0A8-6813-11D6-A77B-00B0D0160000}
Java 5 Update 23 {3248F0A8-6813-11D6-A77B-00B0D0150230}
Java 5 Update 22 {3248F0A8-6813-11D6-A77B-00B0D0150220}
Java 5 Update 21 {3248F0A8-6813-11D6-A77B-00B0D0150210}
Java 5 Update 20 {3248F0A8-6813-11D6-A77B-00B0D0150200}
Java 5 Update 19 {3248F0A8-6813-11D6-A77B-00B0D0150190}
Java 5 Update 18 {3248F0A8-6813-11D6-A77B-00B0D0150180}
Java 5 Update 17 {3248F0A8-6813-11D6-A77B-00B0D0150170}
Java 5 Update 16 {3248F0A8-6813-11D6-A77B-00B0D0150160}
Java 5 Update 15 {3248F0A8-6813-11D6-A77B-00B0D0150150}
Java 5 Update 14 {3248F0A8-6813-11D6-A77B-00B0D0150140}
Java 5 Update 13 {3248F0A8-6813-11D6-A77B-00B0D0150130}
Java 5 Update 12 {3248F0A8-6813-11D6-A77B-00B0D0150120}
Java 5 Update 11 {3248F0A8-6813-11D6-A77B-00B0D0150110}
Java 5 Update 10 {3248F0A8-6813-11D6-A77B-00B0D0150100}
Java 5 Update 9  {3248F0A8-6813-11D6-A77B-00B0D0150090}
Java 5 Update 8  {3248F0A8-6813-11D6-A77B-00B0D0150080}
Java 5 Update 7  {3248F0A8-6813-11D6-A77B-00B0D0150070}
Java 5 Update 6  {3248F0A8-6813-11D6-A77B-00B0D0150060}
Java 5 Update 5  {3248F0A8-6813-11D6-A77B-00B0D0150050}
Java 5 Update 4  {3248F0A8-6813-11D6-A77B-00B0D0150040}
Java 5 Update 3  {3248F0A8-6813-11D6-A77B-00B0D0150030}
Java 5 Update 2  {3248F0A8-6813-11D6-A77B-00B0D0150020}
Java 5 Update 1  {3248F0A8-6813-11D6-A77B-00B0D0150010}
Java 5           {3248F0A8-6813-11D6-A77B-00B0D0150000}
Java 1.4.2_19    {7148F0A8-6813-11D6-A77B-00B0D0142190}
Java 1.4.2_18    {7148F0A8-6813-11D6-A77B-00B0D0142180}
Java 1.4.2_17    {7148F0A8-6813-11D6-A77B-00B0D0142170}
Java 1.4.2_16    {7148F0A8-6813-11D6-A77B-00B0D0142160}
Java 1.4.2_15    {7148F0A8-6813-11D6-A77B-00B0D0142150}
Java 1.4.2_14    {7148F0A8-6813-11D6-A77B-00B0D0142140}
Java 1.4.2_13    {7148F0A8-6813-11D6-A77B-00B0D0142130}
Java 1.4.2_12    {7148F0A8-6813-11D6-A77B-00B0D0142120}
Java 1.4.2_11    {7148F0A8-6813-11D6-A77B-00B0D0142110}
Java 1.4.2_10    {7148F0A8-6813-11D6-A77B-00B0D0142100}
Java 1.4.2_09    {7148F0A8-6813-11D6-A77B-00B0D0142090}
Java 1.4.2_08    {7148F0A8-6813-11D6-A77B-00B0D0142080}
Java 1.4.2_07    {7148F0A8-6813-11D6-A77B-00B0D0142070}
Java 1.4.2_06    {7148F0A8-6813-11D6-A77B-00B0D0142060}
Java 1.4.2_05    {7148F0A8-6813-11D6-A77B-00B0D0142050}
Java 1.4.2_04    {7148F0A8-6813-11D6-A77B-00B0D0142040}
Java 1.4.2_03    {7148F0A8-6813-11D6-A77B-00B0D0142030}
Java 1.4.2_02    {7148F0A8-6813-11D6-A77B-00B0D0142020}
Java 1.4.2_01    {7148F0A8-6813-11D6-A77B-00B0D0142010}
Java 1.4.2       {7148F0A8-6813-11D6-A77B-00B0D0142000}

Facebook Comments