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?
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.
FOLLOW US
Get the latest news in Application Packaging