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!

migrated from stackoverflow.com Dec 5 '13 at 17:52

This question came from our site for professional and enthusiast programmers.

  • This isn't a programming issue, I'm afraid. :( – Chris Cooney Dec 5 '13 at 16:05
  • One way would be to install it on a different machine in the same path, copy over the files and then uninstall again. – Devolus Dec 5 '13 at 16:07
  • Remove the JDK from your system path. – Daniel R Hicks Dec 5 '13 at 16:23
  • I don't have the JDK in my path ): – PatThaCoder Dec 5 '13 at 16:37
  • Then there's probably something hiding in your registry. – Daniel R Hicks Dec 6 '13 at 18:07

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.

  • Hm... will deleting the all the java files make me unable to run java programs like IE? – PatThaCoder Dec 5 '13 at 16:39
  • Just download the jdk first before removing the java dir. You said you deleted the files already and here you are anyway. And no, IE is not a java program. – Xbit Dec 5 '13 at 16:49
  • I deleted the java directory and ran the installer, and i get the same errors ): – PatThaCoder Dec 5 '13 at 16:59
  • Did you try a reboot? Also check if it's still listed in software. java.com/en/download/help/uninstall_java.xml – Xbit Dec 5 '13 at 17:01
  • I did reboot and tried uninstalling again, didn't work. And it is listed in software. By the way when I try to uninstall it using "Uninstall Programs" in control panel, it gives me the same error as the installer did. – PatThaCoder Dec 5 '13 at 17:25

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 http://nerdoftherings.net/wp/?p=66
  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

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