mujahid Posted March 19, 2013 Report post Posted March 19, 2013 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 Quote Share this post Link to post Share on other sites More sharing options...
0 BIGpete Posted March 19, 2013 Report post Posted March 19, 2013 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. Quote Share this post Link to post Share on other sites More sharing options...
0 mujahid Posted March 20, 2013 Report post Posted March 20, 2013 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 ? Quote Share this post Link to post Share on other sites More sharing options...
0 BIGpete Posted March 20, 2013 Report post Posted March 20, 2013 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 Quote Share this post Link to post Share on other sites More sharing options...
0 Peter33 Posted March 21, 2013 Report post Posted March 21, 2013 You can also use the easy way and install the latest JRE6 Update 43 followed by an immediate uninstall of this Version. Quote Share this post Link to post Share on other sites More sharing options...
0 mujahid Posted April 28, 2013 Report post Posted April 28, 2013 Dear Peter, would you like to explain the esay way which you mention above. Thanks in advance Quote Share this post Link to post Share on other sites More sharing options...
0 Peter33 Posted April 29, 2013 Report post Posted April 29, 2013 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) Quote Share this post Link to post Share on other sites More sharing options...
0 binarymime Posted May 2, 2013 Report post Posted May 2, 2013 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 Quote Share this post Link to post Share on other sites More sharing options...
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