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
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: 222
    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

Posts in this topic
- 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
- - appleoddity   QUOTE To make things easy, I have provided a .reg ...   Sep 12 2009, 07:42 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


Reply to this topicStart new topic

 

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No new 24 Ron.M 326 46 minutes ago
Last post by: Ztruker
No New Posts   3 solteras88 52 Today, 12:23 PM
Last post by: CatByte
No New Posts   11 lazycoach1 156 12th March 2010 - 10:57 AM
Last post by: ken545
No New Posts   4 damien44 102 12th March 2010 - 03:54 AM
Last post by: Doug

RSS Time is now: 17th March 2010 - 06:12 PM
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