[CLOSED] How do I remove Java?
[CLOSED] How do I remove Java?
I want to remove old Java versions from computers. If that means removing all Java versions and then reinstalling Java, then I am okay. Does anyone have a procedure for this request?
Re: How do I remove Java?
I don't personally have it installed but was looking at the Java site and they recommend Add/Remove Programs. That being the case, you should be able to find an uninstall command or path in the Uninstall registry key (HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall)
What you could do is wrap that command into a batch file and deploy it.
If the commands to uninstall are different by version you could include logic that will do a version check, roughly put something like this:
SET_VER = REG QUERY HKLM\Software\Java\Version <----(guessing key name there)
Depending on how many version are on your network you could use either an IF ELSE or use something that could utilize case statements and branch off to an uninstaller.
If it uses MSI (not sure) to uninstall that may be something as simple as calling:
msiexec /x {GUID} /qn
Let me know if that helps, it's a rough start but should give you ideas.
What you could do is wrap that command into a batch file and deploy it.
If the commands to uninstall are different by version you could include logic that will do a version check, roughly put something like this:
SET_VER = REG QUERY HKLM\Software\Java\Version <----(guessing key name there)
Depending on how many version are on your network you could use either an IF ELSE or use something that could utilize case statements and branch off to an uninstaller.
If it uses MSI (not sure) to uninstall that may be something as simple as calling:
msiexec /x {GUID} /qn
Let me know if that helps, it's a rough start but should give you ideas.
Regards,
James
Pre-Sales Engineer, Panda Security USA
I don't reply to private messages unless I have previously requested them
James
Pre-Sales Engineer, Panda Security USA
I don't reply to private messages unless I have previously requested them