Jump to content


mujahid

Uninstall JAVA 6 all Version

Recommended Posts

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

 

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...