Change bundled JRE destination - Advanced Installer Community

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!

dlorde
Posts: 31
Joined: Tue Feb 13, 2007 3:19 pm
Location: London, UK
Contact: Website

Change bundled JRE destination

The 'Powers That Be' have decided that we should install our bundled JRE to the application directory instead of the Program Files/Common Files/Company directory it currently goes into. The Bundled JRE Destination field is not editable for some reason, so how do I change the destination of the bundled JRE ?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Change bundled JRE destination

Hi,

Please note that the destination of the JRE bundle can be set to any folder in the project when you configure the bundle for the first time. After the JRE has been added the destination folder cannot be changed because it may affect other parts of the installation (for example a Java Product).

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
canhuth
Posts: 241
Joined: Thu Jun 19, 2008 9:03 am

Re: Change bundled JRE destination

dlorde wrote:The 'Powers That Be' have decided that we should install our bundled JRE to the application directory instead of the Program Files/Common Files/Company directory it currently goes into. The Bundled JRE Destination field is not editable for some reason, so how do I change the destination of the bundled JRE ?
dlorde,

I am not familiar with the "JRE bundling" in AI, but can't you add the JRE to your Files and Folders? We actually did and do that for one of our applications.



With best regards

Clemens Anhuth
dlorde
Posts: 31
Joined: Tue Feb 13, 2007 3:19 pm
Location: London, UK
Contact: Website

Re: Change bundled JRE destination

Thanks for the response Cosmin, but after I experimented a little, and I discovered that it is actually possible to change the JRE destination, but it must be done from the Files & Folders screen.

I just dragged the JRE from the Program Files/Common Files/<Company> directory and dropped it onto the Application directory. Then I deleted the original directory. When I went back to the Media/Java tab, the bundled JRE destination had changed to APPDIR\JRE\<our Java> - which is just what I wanted!

I built the new project and did a trial install, and it installed correctly, even deleting the old version's JRE from the Common Files folder and removing the empty directory :-)

This looks like another feather in AI's cap 8)
dlorde
Posts: 31
Joined: Tue Feb 13, 2007 3:19 pm
Location: London, UK
Contact: Website

Re: Change bundled JRE destination

canhuth wrote:I am not familiar with the "JRE bundling" in AI, but can't you add the JRE to your Files and Folders? We actually did and do that for one of our applications.
Thanks Canhuth, it turns out that AI now does that for you with a Java project 8) (I'm not sure it used to, because we originally had to add our JRE to the Files & Folders tree by hand).

I just tried it on a new Java project - when you specify the JRE bundle in the Media/Java tab, it adds that JRE entry to the Files & Folders tree wherever you specified, and then you can drag it anywhere you want - and it updates the bundle destination to match.

Very cool !

Return to “Common Problems”