We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

jakeherringbone
Posts: 4
Joined: Sat Jan 27, 2007 1:09 am

Bundled JRE is missing after install

I upgraded today to 4.6.4 from a 2-month old version. I'm building a Java project into an MSI installer. I have built an installer using a bundled JRE (1.5.0_10) and the msi file grew by the appropriate 25 megs, and I see the rt.jar being added to the bundle as the installer is created.

However, when I run the installer on a target client machine, I don't get a JRE directory under the app. It runs the application with some other JRE that's installed. The INI file in the application directory has a JRE PATH= with a value where my JRE directory should be.

Previously, this worked ok and my bundled JRE was showing up, about a month ago.

Only other thing was that I had been building installers earlier with the bundled JRE set to a non-existant directory, and the MSI was too small, so I fixed that and still don't get a jre.

What could cause this? The 4.6.4 upgrade? Is my installer corrupt? I have tried the things I could think of.

Thanks!
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

I cannot reproduce this behavior. In order to investigate the problem could you please send the AIP file (if not contain any confidential information) or a small similar test case that reproduce this behavior.

Best Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
jakeherringbone
Posts: 4
Joined: Sat Jan 27, 2007 1:09 am

The jre directory started showing up again - I'm not exactly sure what fixed it but it might have been one of these:
  • Rebooted the target machine. After an uninstall I ignored the dialog to restart, seems the installer thought the jre didn't need to be installed due to typical windoze registry/reboot state.
  • Selected "No bundled JRE" in AI, built, saved, closed, re-opened, changed back to the bundled JRE, built and saved
  • Uninstall was from an older version of the application, JRE failed to show up when the new version was installed. Uninstalled the new version, then installed it again
jakeherringbone
Posts: 4
Joined: Sat Jan 27, 2007 1:09 am

Actually, the problem was more subtle. As Gigi informed me via email, the "Bundled JRE" is added to the current feature. I didn't realize that one of the features is the "current" feature. It turns out that mine was only installed in complete (level 4) so if the user didn't choose that component in custom, or did typical, they didn't get a JRE.

Return to “Common Problems”