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.msiBut 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!
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.
6Please 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.
- Open the registry editor (regedit.exe)
- Go to *HKEY_CLASSES_ROOT\Installer\Products*
- Search for Java Development Kit.
- Get MSIZap! Can be found here
- Get the ProductCode out of the Transforms Value. The ProductCode starts and ends with {}. I But be careful you need the complete product code!
Open a command line an run MSIZap with the following paratemers:
MsiZap.exe GPSTW! {your-product-code}
Try to install the new JDK.