[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.
Locked
shelms
Registered user
Registered user
Posts: 3
Joined: Sat, 25 Jan 2014, 14:20

[CLOSED] How do I remove Java?

Post by shelms »

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
James
Official moderator
Official moderator
Posts: 21
Joined: Thu, 17 May 2012, 16:14
Location: Florida
Contact:

Re: How do I remove Java?

Post by James »

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

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

Return to “SM - Archive Issues”