...
This panel allows the user to modify the default installation path on the target computer.
Code Block | ||||
---|---|---|---|---|
| ||||
<panel classname="TargetPanel"> <validator classname="com.izforge.izpack.installer.validator.ConditionValidator"/> </panel> |
Once
chosen, the The panel will display a panel window with a text area that can be edited by the user and a browse button which allows the user t browse for the desired folder.
The IzPack variable INSTALL_PATH
is will be set to the user's choiceselection.
Configuration
Use the nested <configuration> (see Panels) element to customize the TargetPanel for your purposes:
Name | Value | Default Value | Description |
---|---|---|---|
ShowCreateDirectoryMessage | true|false | true | Whether to If true, the panel will show the "Target directory will be created" dialog if a directory does not exist. Since: 5.0 RC5 |
ShowExistingDirectoryWarning | true|false | true | Whether to If true, the panel will show the "The directory already exists! Are you sure you want to install here and possibly overwrite existing files?" warning dialog, if the given directory already exists. Deactivating this might be convenient for providing in the case of update installers. Since: 5.0 RC5 |
...
Code Block | ||||
---|---|---|---|---|
| ||||
<panel classname="TargetPanel"> <validator classname="com.izforge.izpack.installer.validator.ConditionValidator"/> <configuration> <!-- Don't show warning if target directory already exists --> <ShowExistingDirectoryWarning>false</ShowExistingDirectoryWarning> </configuration> </panel> |
IzPack offers the possibility to You can set a list of the default installation directories depending on the for different target installation platformplatforms. When the compiled installer is executed, IzPack chooses the one matching that matches the assigned platform. This can be achieved by explicitly setting variables with the prefix: TargetPanel.dir
. IzPack recognizes this as a built-in variable which can be user-modified.
...
Built-in Variable | Description | Default Value |
---|---|---|
| The platform-specific default installation path, which can be overridden by the user in TargetPanel. | (gathered determined automatically according to the OS and platform) |
ShowCreateDirectoryMessage | true |
...