How to uninstall the JDK after deleting its files?

I wanted to install the JDK, but when I try to, it says:

This software has already been installed on your computer. Would you like to reinstall it?

I press yes.

Preparing to remove...

Then after that it says...

Please wait while Windows configures Java SE Development Kit 7 update 45

After that I get an error:

Error 1316.A network error occurred while attempting to read from the file C:\Windows\Installer\jdk1.7.0_45.msi

But the C:\Windows\Installer directory doesn’t exist! :(

I've narrowed it down to me deleting the files for the JDK (C:\Program Files\Java\jdk) and apparently those files have a file that the Java installer needs to uninstall it. Please tell me how to thoroughly delete all the files for the JDK so I can install it again! Or another way!

5

2 Answers

Delete the entire C:/Program Files/Java directory, download Java SE 7u45 JDK from here:

and run it to install. Should work. The download is the JRE and JDK in one, so you don't have to install the jre seperatly.

6

Please be sure you have enabled invisible directorys. *C:\Windows\Installer* is an invisible directory. You could copy/paste it in your address box.

The solution for you should be the following.

  1. Open the registry editor (regedit.exe)
  2. Go to *HKEY_CLASSES_ROOT\Installer\Products*
  3. Search for Java Development Kit.
  4. Get MSIZap! Can be found here
  5. Get the ProductCode out of the Transforms Value. The ProductCode starts and ends with {}. I But be careful you need the complete product code!
  6. Open a command line an run MSIZap with the following paratemers:

    MsiZap.exe GPSTW! {your-product-code}

  7. Try to install the new JDK.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like