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

Java: Custom target directory for JRE

Is there a way to change the default directory for a bundled JRE (defaults to application install directory) ?

We want to install the bundled JRE in the Program Files/Common Files/[manufacturer]/[product name]/JRE directory for backward compatibility with installations done by our previous installer.

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

Hi Dave,

The location where the bundled JRE will be installed is not yet configurable. But this is a very good idea. We add this on our TODO list and will be available in a future version of AI. I'm afraid that I cannot give you an ETA for it. Thank you for your suggestion.

Until then here is alternative way to do that:

1. Create a property in the "Install Parameters" page and name it jre_DIR.
2. Switch to "Files and Folders" page and create "Property Based" folder with that property.
3. Switch to "Custom Actions" page and create a "Property Set With Formatted" custom action under "InstallUISequence->Begin" like this:
Property Name: jre_DIR
Formatted Text: [CommonFilesFolder][Manufacturer]\[ProductName]\JRE
4. Drag this custom action to "InstallExecuteSequence->Begin" while shift key is pressed.

Best Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
dlorde
Posts: 31
Joined: Tue Feb 13, 2007 3:19 pm
Location: London, UK
Contact: Website

Thanks Gigi, I'll try that.

I have managed to get a working installer built by hard-coding the folder names, but your solution looks like the way to go.

May I say what a breath of fresh air Advanced Installer is after struggling with InstallShield !

Return to “Common Problems”