Welcome! Register for a free account (or login) > How does it work?
|
|


Jun 25 2009, 08:53 PM
Post
#1
|
|
![]() SuperMember Group: Tech Team Posts: 1,941 Joined: 7-January 09 From: Flint, Michigan Member No.: 83,485 Operating System: Windows XP, Server 2003/2008, Linux |
If you have been having problems with Java, and you have followed some of the instructions on the forums you may find that you no longer can get Java to install because of an error.
When you attempt to run the java installer file you receive the message: QUOTE This software has already been installed on your computer. Would you like to reinstall it? When you click Yes to the above question you receive the error: QUOTE This action is only valid for products that are currently installed. This problem is caused because the Windows Installer information for a previous installation of Java has been removed or damaged, but the related registry keys are still present causing the Java installer to think it is already installed. This problem can be caused if you used the "Windows Installer Cleanup Utility" to remove the Java entries without first uninstalling Java properly. To fix this problem you must remove the two places in the registry that the Java installer looks at in order to determine if it is already installed. By removing these entries, the Java installer will begin a new installation instead of attempting to repair the old corrupt installation. Updated Feb. 26th, 2010 -- Created a universal fix for all versions of Java 6 This problem is confirmed in Windows XP, Windows Vista, and Windows 7. Because the registry keys that need to be removed are different for each version of Java, I have created a batch file you can download to find and remove the entries automatically. Here's how to fix Java:
The contents of the batch file are listed below: CODE reg query hklm\software\classes\installer\products /f "java(tm) 6" /s | find "HKEY_LOCAL_MACHINE" > deljava.txt for /f "tokens=* delims= " %%a in (deljava.txt) do reg delete %%a /f del deljava.txt reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment" /f reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\wow6432node\JavaSoft\Java Runtime Environment" /f This fix will work on Windows XP, Windows Vista, and Windows 7 for both 32-bit and 64-bit versions of the Java 6 runtime environment. If you have any further issues please post a reply in this thread. This post has been edited by appleoddity: Feb 26 2010, 03:08 AM |
|
|
|
![]() |
Sep 12 2009, 07:42 AM
Post
#2
|
|
![]() SuperMember Group: Tech Team Posts: 1,941 Joined: 7-January 09 From: Flint, Michigan Member No.: 83,485 Operating System: Windows XP, Server 2003/2008, Linux |
QUOTE To make things easy, I have provided a .reg fix that you can use to remove the necessary entries and get the Java 6 Update 14 to install. It will also work for other versions of Java if your problem started after you ran the Windows Installer Cleanup Utility Because your problem occured as a result of using the Windows Installer Cleanup Utility, you should be able to run the registry fix I provided in my initial post and have the problem resolved. The fix will remove this registry key: HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment This is left behind after the windows installer cleanup. The problem occurs because the Java setup program you download looks for "evidence" of a current installation of Java on your computer (the above registry key). If it finds it, it will attempt to run the currently installed "installer file" rather than reinstalling with the fresh installer you downloaded. If the installer cleanup was used, those installer files are deleted, so the problem occurs. It makes no sense to me why Java would do this, and hopefully someone from the development team will see this and fix the problem once and for all. This post has been edited by appleoddity: Sep 12 2009, 07:47 AM |
|
|
|
appleoddity Java Setup Problem Jun 25 2009, 08:53 PM
diligentinquirer Hey appleoddity! Have probs you described with... Aug 24 2009, 04:46 PM
appleoddity Hi Diligent... A big welcome to WhatTheTech.
I wi... Aug 26 2009, 07:17 PM
diligentinquirer @ appleoddity
Saw in a thread you posted that you... Aug 26 2009, 09:25 PM
sotong Urgent help is required! I have the same probl... Sep 12 2009, 04:23 AM
sotong Yes it works! Thanks a lot! You're a g... Sep 12 2009, 05:51 PM
jeffb562 I made an account on this site just to say thank y... Oct 1 2009, 06:18 PM
LDTate Just another fine example of the talent we have at... Oct 2 2009, 12:28 PM
csscouter I did the same thing as jeff562, so I could expres... Jan 13 2010, 12:18 PM
appleoddity Your welcome. Thank you for posting your success. Jan 16 2010, 08:30 PM
Boroko As with the previous two new signees, I have just ... Jan 24 2010, 11:35 AM
OleJim Let me add my thanks for these instructions. I, t... Feb 8 2010, 04:32 PM
roope awwww. still can't get my java to work, well ... Feb 24 2010, 05:58 AM
appleoddity The CODE is simply the contents of the attached fi... Feb 24 2010, 08:45 AM
roope Hi, yeah i've been tryin to delete this 'j... Feb 25 2010, 12:08 PM
appleoddity Please re-read my first post - I have updated it. ... Feb 26 2010, 02:43 AM
roope TY SO MUCH MAN, IT WORKS NOw!
cheers, good j... Feb 27 2010, 06:21 AM
appleoddity Your welcome. Glad to hear it works. Feb 27 2010, 09:05 AM
Hippie408 I signed up here just to thank you. I wasted my wh... Feb 28 2010, 08:43 AM
chaoticmind hey men thanks for that solution just like others ... Mar 5 2010, 04:18 PM
Mike Kennedy ...just bumped into this site, and thread...
Than... Mar 12 2010, 02:19 PM
appleoddity You're right.. Thanks for the heads up. The /... Mar 13 2010, 01:19 AM![]() ![]() |
Similar Topics
| Topic Title | Replies | Topic Starter | Views | Last Action | |||
|---|---|---|---|---|---|---|---|
![]() |
23 | Ron.M | 310 | Yesterday, 08:17 PM Last post by: Ron.M |
|||
![]() |
1 | solteras88 | 43 | Yesterday, 09:22 AM Last post by: CatByte |
|||
![]() |
11 | lazycoach1 | 152 | 12th March 2010 - 10:57 AM Last post by: ken545 |
|||
![]() |
4 | damien44 | 96 | 12th March 2010 - 03:54 AM Last post by: Doug |
|||
|
Time is now: 17th March 2010 - 01:13 AM |