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!

lxiewww

JVM parameters too long

For our Java product, we have a long list of JVM parameters. It seems the installer has a limit on the length. I tried to use property but I need to use variabes inside the property value and the installer does not substitue the variables for me. Anu suggestion?
Mike
Posts: 292
Joined: Wed Jun 01, 2005 10:50 am
Location: Craiova, Romania
Contact: Website

Hi,

Advanced Installer has a 255 character limit for the JVM parameters field. But you can use variables inside of it. In order for this to work, you must use a custom action to expand those properties.

Go to the "Custom action" tab, right-click on "Target Computer", select "Show Standard Action"->"Before Finalization"->"Write Registry Values". A new branch "WriteRegistryValues" will appear in the tree. Right-click it and select "New Custom Action"->"Property Set With Formated".
In the "Property Name" add a name (say "VALUE1"). In the "Formated Text" you can use the <Edit> button to select some properties. Say you have there something like [ProgramFilesFolder]. Of course, you can add more properties if you want.

Last, go to the "Java Products" tab and add the text [VALUE1] to the "JVM Parameters" text field.

After the installation is over, your INI file should contain the value
Virtual Machine Parameters=C:\Program Files\

You can similarly use properties for every parameter.

Regards,
Mihai
Mihai Bobaru
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”