Hi,
Yes, this is possible.
1. In the Search page, create a registry search for the value "CurrentVersion" under the key: "HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment". Name this Search JRE_VER. The value of this property will contain the current version of the JRE installed on the target computer.
2. In the Organization page, create a new Feature and move all the files associated with your package to this feature, such that "MainFeature" remains empty (it will contain only the bundled JRE, but this is not displayed in the tree control).
3. Set the Display option for "MainFeature" to "Not Displayed".
4. You also need to set a Conditional Install Level for "MainFeature" (the JRE) such that it will not be installed if it is already present on the target computer. Use the "Conditional" button at the right of the "Install Level" field and in the "Edit Conditional Levels" dialog set the Level to 0 (zero) and a condition like the following:
Code: Select all
(JRE_VER >= "1.5") AND (Not Installed)
Hope this helps.
Regards,
Denis