Appears 32 Bit and 64 Bit Java have the same registry key. I only want to uninstall the 64 Bit version. I am trying following:
// Java
waithidden “{pathname of system folder}\msiexec.exe” /qn REBOOT=ReallySuppress /x {"%7b26A24AE4-039D-4CA4-87B4-2F83216026FF%7d"} of x64 registry
Added the last bit based on posts on this forum. Has been running on a machine for quite a while with no result yet. Any suggestions on what I might be doing wrong?
You can try this. Just change the displayname to match the version your trying to remove.
//Remove Java 7 Update 1 (64-bit)
if {exists key whose (value “DisplayName” of it as string = “Java™ 7 Update 1 (64-bit)”) of key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall” of native registry}
waithidden {pathname of system folder}\msiexec.exe /X {name of key whose (value “DisplayName” of it as string = “Java™ 7 Update 1 (64-bit)”) of key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall” of native registry} /qn /qnorestart