What the Tech logo
Welcome! Register for a free account (or login) > How does it work?
  1. Quickly register. It will only take 60 seconds.
  2. Start a new topic. Ask your question. Wait for an email reply.
  3. Is your system infected? Begin reading the malware removal guide.
register button
2 Pages V   1 2 >  
Reply to this topicStart new topic
> Java Setup Problem, This action is only valid for products that are currently installed.
appleoddity
post Jun 25 2009, 08:53 PM
Post #1


SuperMember
Group Icon

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:
  • If you are able, uninstall all previous versions of Java in add/remove programs in your control panel.
  • Next, you may download the current version of Java here: http://java.com/en/download/manual.jsp
    I recommend that you use the offline installer version.
  • Now, download the fix:Attached File  fixjava.zip ( 336bytes ) Number of downloads: 312
    Open the fixjava.zip file, extract and run the file fixjava.bat . If you are using Windows Vista, or Windows 7 you must right-click the fixjava.bat file and choose "Run As Administrator". If you do not see the run as administrator option, drag the fixjava.bat file to your desktop and then try to run as administrator from there.
    The batch file will run briefly without confirmation.
  • You may now install Java without any errors about it already being installed.


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
Go to the top of the page
 
+Quote Post
diligentinquirer
post Aug 24 2009, 04:46 PM
Post #2


New Member
*

Group: New Member
Posts: 2
Joined: 24-August 09
Member No.: 87,509
Operating System: winXP-Home, SP3



Hey appleoddity! Have probs you described with JRE 6 update 15. http://www.java.com/en/download/inc/windows_new_xpi.jsp

Running Firefox but am sure others who run IE would be interested as well.

Sure appreciate your offer "If you need a fix for a newer version of Java when it comes out, reply to this thread and I will create the new fix for that version. ".

Happy to not have to try deleting all "java" keys (got a bunch!).

Again, Appreciated guy! Thanks, Diligent
Go to the top of the page
 
+Quote Post
appleoddity
post Aug 26 2009, 07:17 PM
Post #3


SuperMember
Group Icon

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



Hi Diligent... A big welcome to WhatTheTech.

I will update this thread soon. I currently do not have a Vista machine in front of me.

When I release the fix I want it to work for both Vista and XP, so I need to get to a Vista machine tomorrow.

Be patient and thanks for your interest.
Go to the top of the page
 
+Quote Post
diligentinquirer
post Aug 26 2009, 09:25 PM
Post #4


New Member
*

Group: New Member
Posts: 2
Joined: 24-August 09
Member No.: 87,509
Operating System: winXP-Home, SP3



@ appleoddity

Saw in a thread you posted that you were busy, That's understandable. So I had to make a decision not knowing when you would be back or be able to make a new fix. So I tried the u14 anyway. Saw a (?) "mis" change. Also did an Erunt registry reset. Java Now working. Folks at Comodo are awaiting your new fix, as I have advised them of your first post. So when ya get the new fix done, when ya have time, I'll let them know if that is alright with you. You can check in with them too, ya know. BTW, I do find this forum quite interesting. Bookmarked!!

Take your time my friend. You have a personal life too!

My Best to ya, Diligent (Jim), in the Evergreen State of Washington (west coast).
Go to the top of the page
 
+Quote Post
sotong
post Sep 12 2009, 04:23 AM
Post #5


New Member
*

Group: New Member
Posts: 2
Joined: 12-September 09
Member No.: 87,875
Operating System: Windows Vista Ultimate



Urgent help is required! I have the same problem!

After installing Java 6 update 16, I accidentally used Windows Install Clean Up and deleted this update. I also deleted the folder in Programs Files and now I can't reinstall the update and keep getting the error message.

Please provide fix or provide guide as to which registry entry to delete or change as soon as you can.

I'm using Windows Vista Ultimate.

Thank you.
Go to the top of the page
 
+Quote Post
appleoddity
post Sep 12 2009, 07:42 AM
Post #6


SuperMember
Group Icon

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
Go to the top of the page
 
+Quote Post
sotong
post Sep 12 2009, 05:51 PM
Post #7


New Member
*

Group: New Member
Posts: 2
Joined: 12-September 09
Member No.: 87,875
Operating System: Windows Vista Ultimate



Yes it works! Thanks a lot! You're a great help.
Go to the top of the page
 
+Quote Post
jeffb562
post Oct 1 2009, 06:18 PM
Post #8


New Member
*

Group: New Member
Posts: 1
Joined: 1-October 09
Member No.: 88,183
Operating System: Windows XP



I made an account on this site just to say thank you. You were a great help and solved the problem fast.

I have been researching how to fix this for about a week and I could find no answer.

I finally resorted to Java.com's live chat support and the person said it would cost 35$ to fix.. and I was like. no.

There are so many people out there with this problem I discovered and there are really no answers for it.

Java really needs to fix the problem.

Thank you so much man you are a great help!
Go to the top of the page
 
+Quote Post
LDTate
post Oct 2 2009, 12:28 PM
Post #9


Forum God
Group Icon

Group: Root Admin
Posts: 48,389
Joined: 23-September 04
From: Missouri, USA
Member No.: 15,276
MVP


Just another fine example of the talent we have at WTT notworthy.gif
Go to the top of the page
 
+Quote Post
csscouter
post Jan 13 2010, 12:18 PM
Post #10


New Member
*

Group: New Member
Posts: 1
Joined: 13-January 10
Member No.: 89,873
Operating System: Windows XP



I did the same thing as jeff562, so I could express my thanks to appleoddity for the help. It's a real pleasure to find a thread that deals with issues competently and courteously. It took some searching to find this resource after weeding out threads on other sites, packed with useless puffery and snide commentary.

A breath of fresh air, you are.
Grateful, I am.
Go to the top of the page
 
+Quote Post
appleoddity
post Jan 16 2010, 08:30 PM
Post #11


SuperMember
Group Icon

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



Your welcome. Thank you for posting your success.
Go to the top of the page
 
+Quote Post
Boroko
post Jan 24 2010, 11:35 AM
Post #12


New Member
*

Group: New Member
Posts: 1
Joined: 24-January 10
Member No.: 90,197
Operating System: XP



As with the previous two new signees, I have just registered here so that I can express my gratitude for the registry fix posted above.

Having spent several hours today tearing my hair out and running through ineffective solutions suggested on other forums I finally hit upon this thread and used your fix.

As a result my problems are resolved and I'm smiling again.

Thank you so much - you are a legend!!!
Go to the top of the page
 
+Quote Post
OleJim
post Feb 8 2010, 04:32 PM
Post #13


New Member
*

Group: New Member
Posts: 1
Joined: 8-February 10
Member No.: 90,647
Operating System: XP



Let me add my thanks for these instructions. I, too, had the same problem and your solution was perfect. Again, a big 'Thank You!'
Go to the top of the page
 
+Quote Post
roope
post Feb 24 2010, 05:58 AM
Post #14


New Member
*

Group: New Member
Posts: 3
Joined: 23-February 10
Member No.: 90,937
Operating System: windows 7



awwww. sad.gif still can't get my java to work, well i don't even understand everything what u said, because english isnt my first languange so..
but yeah anyway;

CODE
Windows Registry Editor Version 5.00

[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\4EA42A62D9304AC4784BF238120641FF]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\4EA42A62D9304AC4784BF238120621FF]
[-HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment]


What is this supposed to mean ? how can i get to that point?

please, help me out

oh yeah, does that same thing work with windows 7?

This post has been edited by roope: Feb 24 2010, 07:25 AM
Go to the top of the page
 
+Quote Post
appleoddity
post Feb 24 2010, 08:45 AM
Post #15


SuperMember
Group Icon

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



The CODE is simply the contents of the attached file that I provided for your own inspection. It tells registry editor to remove those three keys.

Can you please tell me if you have run the windows installer cleanup utility to try and fix this problem at all? (I'm not suggesting it, I just need to know where you stand)

Also, can you tell me if you are running 32-bit or 64-bit Windows, and which version (32-bit or 64-bit) of Java are you trying to install?

Did you try downloading the attached file in post #1, and importing the changes into your registry?

I don't think this fix will work on a 64-bit bit operating system for the 64-bit version of Java. I can investigate that if need be and provide a fix.

This post has been edited by appleoddity: Feb 24 2010, 08:46 AM
Go to the top of the page
 
+Quote Post

2 Pages V   1 2 >
Reply to this topicStart new topic

 

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No New Posts   13 solteras88 151 Yesterday, 01:33 PM
Last post by: CatByte
No New Posts   2 MobileMania 51 20th March 2010 - 08:56 AM
Last post by: 8210GUY
No new 42 Ron.M 550 19th March 2010 - 08:33 PM
Last post by: Ron.M
No New Posts   12 lazycoach1 183 18th March 2010 - 10:26 AM
Last post by: ken545

RSS Time is now: 22nd March 2010 - 04:55 AM
Advertisements do not imply our endorsement of that product or service. The forum is run by volunteers who donate their time and expertise. We make every attempt to ensure that the help and advice posted is accurate and will not cause harm to your computer. However, we do not guarantee that they are accurate and they are to be used at your own risk.
Member site: Alliance of Security Analysis Professionals | UNITE Against Malware
Memory Forums | Auto Repair Forum
© Geeks to Go, Inc. | All Rights Reserved | Privacy Policy