[CLOSED] How do I remove Java?

Container for RESOLVED incidents, queries SOLVED by the experts, EXPIRED topics or those that have been CLOSED by the users.
Registered user
Registered user
Posts: 3
Joined: Sat, 25 Jan 2014, 14:20

[CLOSED] How do I remove Java?

Post by shelms » Thu, 05 Jun 2014, 21:13

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?

User avatar
Official moderator
Official moderator
Posts: 21
Joined: Thu, 17 May 2012, 16:14
Location: Florida

Re: How do I remove Java?

Post by James » Thu, 24 Jul 2014, 19:50

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.

Pre-Sales Engineer, Panda Security USA
I don't reply to private messages unless I have previously requested them


Return to “SM - Archive Issues”