United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-6697339 : "This action is valid for products that are currently installed" popups for normally installed JRE

Details
Type:
Bug
Submit Date:
2008-05-03
Status:
Closed
Updated Date:
2011-01-19
Project Name:
JDK
Resolved Date:
2008-09-23
Component:
deploy
OS:
windows
Sub-Component:
deployment_toolkit
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
5.0u16
Fixed Versions:
5.0u16-rev (b10)

Related Reports
Backport:

Sub Tasks

Description
During installation jdk on jre of the same release reinstallation is offered but then "this action is only valid for products that are currently installed" message popups.

Steps to reproduce
1.Install JRE
2.Install JDK of the same release whithout unselecting the JRE in the install options dialog.
3.See "There is already a JRE of this version installed. Would you like to reinstall it?" and click "Yes"
As a result "This action is only valid for products that are currently installed" message popups. Only then expected initially instead of reinstallation offer message "You already have this version of the JRE installed. Please uninstall the product thruoght your add/remove utility before reinstalling" appears. 

Reproduced:
OS - Windows XP
JDK - 1.5.0_16-b01, 1.5.0_15-b03

                                    

Comments
EVALUATION

Installed the same build for JRE and JDK and see the issue.

Used 1.5.0_15 b03.
                                     
2008-05-13
EVALUATION

When I see this error, I did a ps -ef to see the msiexec command that's running.

msiexec.exe /x {3248F0A8-6813-11D6-A77B-00B0D0150000} /qb

I believe the problem is that the guid is hardcoded.

The correct command is:

msiexec.exe /x {3248F0A8-6813-11D6-A77B-00B0D0150150} /qb

The code change will need to be at:

/java/deployment/ws/1.5.0_11/nightly/install/make/installer/bundles/windows/ishield/sdk/sdk/CustomAction.idt

uninstallpublicjre      98      SystemFolder    msiexec.exe /x {3248F0A8-6813-11D6-A77B-00B0D0150000} /qb       ^M

You'll need to update the
/java/deployment/ws/1.5.0_11/nightly/install/make/installer/bundles/windows/ishield/sdk/Makefile to dynamically add the correct value during build time.
                                     
2008-05-27
EVALUATION

Note: The custom action uninstallpublicjre is not used in the 6u10 JDK.  Uninstalling the 6u10 JDK leaves the JRE.
                                     
2008-09-19



Hardware and Software, Engineered to Work Together