Quantcast
Channel: Symantec Connect - Endpoint Management - Discussions
Viewing all articles
Browse latest Browse all 6689

Looking for script to uninstall all previous versions of Java - Win7x64?

$
0
0
I need a solution

When patching Java on win7x32 via managed software policy, I used the java-uninstaller.vbs script from here without issue.  Worked great.

I tried modifying that script to the correct locations for the registry for 64bit windows7 - replaced all the lines that were "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\" and made them HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\" but the script didn't work to remove Java8u31.  

I did find a powershell script that works, but I don't love the idea of having to disable/enable signing policy to run powershell scripts.

I tried this "Cleanup Script to Uninstall All Previous Versions of JRE" - on a machine with java 8 45 and java 8 31 - it uninstalls the 45 version instead of 31.  Judging by this post (http://wpkg.org/Java) - it seems like Oracle did something unique with 31 ("Oracle included /i in the UninstallString.") which maybe is what I'm running into with some of the scripts not being able to remove it.

Adding /noreboot to this script works, but produces a 1605 error in the Symantec agent, I suppose when it hits an uninstall string for a version it doesn't have installed

Anyone have any suggestions?  Someone out there in Symantec land must be scripting the uninstall of Java versions.


Viewing all articles
Browse latest Browse all 6689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>