Variable Selection Dialogs


  When you click on the   variable selector which can be found next to most text fields in install4j, you can choose variables from a number of variable systems. If there is more than one variable system applicable for the text field, a popup menu will be displayed that lets you select the desired variable system first.

A dialog is then brought up that shows you all known variables of the selected type. The variable will be inserted at the current cursor position, if you close the variable selection dialog with the OK button or of you double-click on a variable. In text fields, the appropriate variable syntax will be used (like ${installer:myVariable}), in code editors, an appropriate API call will be inserted (like context.getVariable("myVariable").

Please see the help topic on variables more information on variables.

  The following variable systems are available:
  •  Installer variables
     
    Installer variables are only available for text properties of screens, actions and form components.

    The variable selection dialog shows both predefined variables as well as all bound variables. Installer variables are shown for the currently edited installer application. The drop-down list at the top allows to you change the installer application.

    The Edit link in the top right corner allows you to add pre-defined installer variables on the fly.

  •  Compiler variables
     
    Compiler variables are available for all text fields. The Edit link in the top right corner allows you to add compiler variables on the fly.
  •  I18N messages
     
    I18N messages are available for text properties of screens, actions and form components and selected other text fields in the install4j IDE.

    The variable selector shows both system messages as well as custom localization keys from the file that has been defined for the principal language on the Languages tab.

    The Edit link in the top right corner allows you to add custom localization keys on the fly.

  •  Launcher variables
     
    Runtime variables are system variables that are evaluated at runtime of the launcher or installer. They are only shown in the variable selector next to the VM parameter text field in the Java invocation step of the launcher wizard.