This pages describes particular use cases which might come from an requirement to the installer.
Setting Default Installation Directories
IzPack offers the possibility to set a list of default installation directories depending on the target installation platform. When the compiled installer is executed IzPack chooses the one matching the assigned platform.
This can be achieved by explicitely setting variables with the prefix:
TargetPanel.dir. IzPack recognizes this as built-in variable which can be user-modified.
For example, change the resources to variables:
This uses the following variable search order to determine the default directory to display:
- TargetPanel.dir.<platform symbolic name> e.g. TargetPanel.dir.windows_7
- TargetPanel.dir.<platform name> e.g. TargetPanel.dir.windows
- TargetPanel.dir.<parent platform> e.g. given platform "FEDORA_LINUX" looks for TargetPanel.dir.linux, followed by TargetPanel.dir.unix
- SYSTEM_user_dir corresponds to the system property "user.dir"
Available platforms can be found in the class Platforms. The names are the lowercase versions of those defined.
Allowed names include:
Differences from 4.3.6
Differences from 4.3.5
In 4.3.5, resources were used rather than variables. Resources were searched for with the following names
- "TargetPanel.dir." + lower case version of System.getProperty("os.name"), with any spaces replace with underscores
- "TargetPanel.dir." + <platform> where platform is one of ("windows", "mac", "unix")
IZPACK-798 changed the above to use variables instead of text files, following the same naming convention.