dongocdung
asked on
SCCM: JRE removal silently
Hi all,
I would like to remove the JRE silently. I use this command but it did not work.
jre6.24.exe /s /v "/qn REBOOT=Suppress" /x
Could you please give me some ideas or hint how to remove JRE silenly.
Thanks
I would like to remove the JRE silently. I use this command but it did not work.
jre6.24.exe /s /v "/qn REBOOT=Suppress" /x
Could you please give me some ideas or hint how to remove JRE silenly.
Thanks
ASKER
I have run this command manually but it did not work. I got the Windows Installer pop up
jre6.24.exe /s /v"/qn REBOOT=Suppress" /x
jre6.24.exe /s /v"/qn REBOOT=Suppress" /x
I have a script that will uninstall any version of java present on the machine. it searches the registry Uninstall key for java installs and then uses the uninstall commands and guids to remove them.
Edit this line if you need to change what its searching for:
If left(strvalue, 4) = "Java" Then
That searches for 4 left side characters of the Display Name in the registry. If it matches, then it will pull out the key name which is generally the guid used for msi uninstalls. I use the guid in an msi uninstall creating a log file in %temp% directory for the jre_uninstall.log and I also create a log file for the script itself in %temp% directory with the same name as the script.
JavaUninstallScript.vbs
Edit this line if you need to change what its searching for:
If left(strvalue, 4) = "Java" Then
That searches for 4 left side characters of the Display Name in the registry. If it matches, then it will pull out the key name which is generally the guid used for msi uninstalls. I use the guid in an msi uninstall creating a log file in %temp% directory for the jre_uninstall.log and I also create a log file for the script itself in %temp% directory with the same name as the script.
JavaUninstallScript.vbs
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
i don't know much about Script. Do I need to edit the script if I want to remove any JRE version that present on the machines.
Thanks
Thanks
ASKER
In SCCM, I need to create the package and program in order to run that command, don't I?
ASKER
I got it.
Thanks
Thanks
I made the script very intuitive. The only line you'll ever need to edit is the one I've shown up above. it will uninstall every version of java on the machine as long as its display name starts with Java. You can modify this script to use with any installation installs under a GUID key in the Uninstall section in the registry. Just edit every line you see for logging that says Java.
Maybe there's a one blank too much:
jre6.24.exe /s /v"/qn REBOOT=Suppress" /x
or without the quotes:
jre6.24.exe /s /v /qn REBOOT=Suppress /x
First try the command manually without SCCM