Skip to content

Uninstall JAVA 6 all Version

Featured Replies

Uninstall JAVA 6 all Version using SCCM 2007: Need Step-by-Step procedure to Uninstall JAVA 6 (all version) through SCCM 2007.

 

Kindly Place your valuable Experience.

 

Thanks

 

There are 2 ways

 

1 - Write a little batch script to do it with msiexec /x {javaMSIproductcode} /q /norestart for each product code of java 6. Put it in a package with a program and advertise it.

 

For 32 bit java:

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F83216000FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F83216001FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F83216002FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F83216003FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F83216004FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F83216005FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F83216006FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F83216007FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F83216008FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F83216009FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F83216010FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F83216011FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F83216012FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F83216013FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F83216014FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F83216015FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F83216016FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F83216017FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F83216018FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F83216019FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F83216020FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F83216021FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F83216022FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F83216023FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F83216024FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F83216025FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F83216026FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F83216027FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F83216028FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F83216029FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F83216030FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F83216031FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F83216032FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F83216033FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F83216034FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F83216035FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F83216036FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F83216037FF} /q /norestart

 

For 64 bit java:

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F86416000FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F86416001FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F86416002FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F86416003FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F86416004FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F86416005FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F86416006FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F86416007FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F86416008FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F86416009FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F86416010FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F86416011FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F86416012FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F86416013FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F86416014FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F86416015FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F86416016FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F86416017FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F86416018FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F86416019FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F86416020FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F86416021FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F86416022FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F86416023FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F86416024FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F86416025FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F86416026FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F86416027FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F86416028FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F86416029FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F86416030FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F86416031FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F86416032FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F86416033FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F86416034FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F86416035FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F86416036FF} /q /norestart

MsiExec.exe /X{26A24AE4-039D-4CA4-87B4-2F86416037FF} /q /norestart

 

 

 

2. Create a task sequence to detect if the program exists then run one of the msiexec /x {javaMSIproductcode} /q /norestart. This will take you a heap longer to setup. I would go for the batch option personally.

  • Author

Thanks bro, all of these msi belongs to java 6?? and one more thing to ask that shall i create .cmd file for uninstall java 6 ?

Yep they are all java 6 MSI product codes:

 

{26A24AE4-039D-4CA4-87B4-2F8AA1MMPPFF}

 

Were:

AA - 32 or 64 relating to architecture 32bit or 64bit

MM - Major Release version

PP - Patch/update version

 

{26A24AE4-039D-4CA4-87B4-2F86416037FF}

 

Therefore above is 64bit, Version 6.0 Patch 37

You can also use the easy way and install the latest JRE6 Update 43 followed by an immediate uninstall of this Version.

  • 1 month later...
  • Author

Dear Peter, would you like to explain the esay way which you mention above.

 

Thanks in advance

You could create a Batch file, which installs the latest Java Version first (just use the exe with the Switch /s). As the next step uninstall this Java Version again with (msiexec /x {productcode} /q). Of course this will not work if you have a machine which has a Java 6 Installation in a different Location (Installation path).

 

I prefer to use powershell scripts. This one will uninstall all Java 6 runtime Versions.

 

$ExitCode = 0

gwmi -Namespace root\cimv2\SMS -Class SMS_installedSoftware -Filter "ProductName Like '%Java%6%Update%' And Not ProductName Like '%Kit%'" -Property SoftwareCode,ProductName -ErrorAction Stop | ForEach-Object {

$myArgs = "/X" + $_.SoftwareCode + " /norestart /q"

$ExitCode = (Start-Process -FilePath "msiexec.exe" -ArgumentList $myArgs -ErrorAction SilentlyContinue -NoNewWindow -Wait -PassThru).ExitCode

if(!($ExitCode -eq 0 -or $ExitCode -eq 3010)){

[Environment]::Exit($ExitCode)

}

}

[Environment]::Exit($ExitCode)

First and foremost I'm going to pretext this with the following:

 

- I hate Java, I hate the security holes, the administrative headaches, and the fact that its updated more frequently than a stock price.

 

That said...the only way I have been able to get this to work is by using a batchfile to invoke an uninstall script. I have attached them. rename uninstall_java.txt to uninstall_java.bat and JRERemove.txt to JRERemove.vbs.

 

ThanksJRERemove.txtuninstall_java.txt

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.