This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 51454 - Automatize finding JRE installer folder on Windows
Summary: Automatize finding JRE installer folder on Windows
Status: CLOSED FIXED
Alias: None
Product: installer
Classification: Unclassified
Component: JDK bundle (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: mslama
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-12 13:16 UTC by mslama
Modified: 2006-03-24 10:30 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mslama 2004-11-12 13:16:52 UTC
Currently JRE installer installed by JDK installer
on Windows is placed to folder which contains
build number in its name. It is necessary to
customize jdkbundle installer automaticaly when
new JDK installer build becomes available. For
example folder has name:
$COMMON_FILES\Java\Update\Base
Images\jdk1.5.0.b64\patch-jdk1.5.0.b64\jre.msi for
JDK 1.5.0 FCS.

We now move to JDK 1.5.0_01 latest build is b06
now but it is possible it is not last build. New
build is loaded automaticaly and without
automatization we would need to update installer
code every time new JDK installer is available.
Comment 1 mslama 2004-11-16 11:13:36 UTC
Fixed in main trunk. Installer tries to locate jre.msi at runtime so
location of jre.msi is not hardcoded. It also means that there are 2
tasks now: 1.JDK installation. 2.JRE installation. It applies only to
Windows.

Note: It is not fixed in release40 branch so if there will be new
build of JDK 1.5.0_01 installer it is necessary to update jdkbundle
installer for NB 4.0.

Modified:
/cvs/installer/jdkbundle/build.xml
new revision: 1.6; previous revision: 1.5

/cvs/installer/jdkbundle/src/org/netbeans/installer/InstallJ2sdkAction.java
new revision: 1.11; previous revision: 1.10

Added:
/cvs/installer/jdkbundle/scripts/custom-install-jdk.template
initial revision: 1.1

/cvs/installer/jdkbundle/scripts/custom-install-jre.template
initial revision: 1.1

Removed:
/cvs/installer/jdkbundle/scripts/custom-install.template
new revision: delete; previous revision: 1.4
Comment 2 Michal Mocnak 2005-04-19 10:30:38 UTC
Issue has been verified in the JDK1.5+NB4.0 bundle build #200502041110 and in
the JDK1.5+NB4.1 bundle build #200504181930 under Windows XP SP2