Friday 3 May 2013

Fix Java Error 1723 on Windows

When I tried to uninstall Java Runtime 6, I encountered a Java error 1723 (There is a problem with this Windows Installer package).
I tried to remove it through Add/Remove Programs on Windows and got the same error. Then I just deleted folders, but program didn't disappear. I started to receive error displayed on image below.
 

 So I neither could uninstall the program nor reinstall it.

How to Fix: Follow the following steps
1.      Remove all versions of Java on your system, if possible. Delete all folders manually that are Java related. (e.g. C:/Program Files/Java and/or C:/Program Files x86/Java)

2.      Open C:\Windows\regedit.exe.

3.      Now
Ø  Expand HKEY_LOCAL_MACHINE
Ø  Expand SOFTWARE
Ø  Expand Microsoft
Ø  Expand Windows
Ø  Expand CurrentVersion
Ø  Expand Uninstall

      4.      You will get few files that look like this:
{Mix-Of-Numbers-Letters-And-Dashes}
In my case, it was these two:
{26A24AE4-039D-4CA4-87B4-2F83216020FF}
{32A3A4F4-B792-11D6-A78A-00B0D0160430}

5.      Single Click on the very top one. Go through all of the files that look like what I wrote above. If you find anything that says Java or has the destination of the Java Install, delete that registry folder (After right click on the folder you will get delete option).


Some more registry folders related to java:
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\4EA42A62D9304AC4784BF238120641FF]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\4EA42A62D9304AC4784BF238120621FF]

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment]
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment]
[HKEY_LOCAL_MACHINE\SOFTWARE\wow6432node\JavaSoft\Java Runtime Environment]

6.      Open Programs and Feature or Add or Remove Programs and verify that Java is now gone.

7.      Remove java.exe, javaw.exe and javaws.exe from C:\Windows\System32.

8.      Now you can install Java on your machine.