United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6610497 Wrong registry script referenced in Windows JDK installer
JDK-6610497 : Wrong registry script referenced in Windows JDK installer

Details
Type:
Bug
Submit Date:
2007-09-27
Status:
Closed
Updated Date:
2010-09-17
Project Name:
JDK
Resolved Date:
2007-11-08
Component:
install
OS:
windows
Sub-Component:
install
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
6u5
Fixed Versions:
6u10 (b07)

Related Reports
Backport:

Sub Tasks

Description
In deploy/src/plugin/win32/regutils/RegInstall.cpp, RegCurrentVersionKeys:

If installType != 0, IDR_RegCurrentVersion is being used. It is clear that this should be IDR_RegSDKCurrentVersion. IDR_RegSDKCurrentVersion is unreferenced in the current code.

The expected side effect is if the JDK is installed without the associated public JRE, we will pollute the registry with a bunch of incorrect and/or corrupt keys.

Testing indicates that for an unknown reason this does not happen. It is possible that the unresolved macros cause the application of the registry script to fail. Currently it is unknown why the HKLM/SOFTWARE/JavaSoft/Java Development Kit/Current registry key is being correctly created.

                                    

Comments
SUGGESTED FIX

Even if we can not immediately diagnose why things appear to be working correctly, make the obviously correct code change and do testing to ensure no regressions.
                                     
2007-09-27
EVALUATION

Assigning to Jennifer to investigate, after her 6u5-b06 deliverables are finished.
                                     
2007-10-02
SUGGESTED FIX

The issue was due to the wrong script name in the code. The same registry key was also set by CanonicalizeJava2Registry. The fix will be to remove the extra section with the wrong script name.
                                     
2007-10-12



Hardware and Software, Engineered to Work Together