Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This panel allows the user to modify the default installation path on the target computer.

Code Block
languagehtml/xml
titleExample definition
<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:

NameValueDefault ValueDescription
ShowCreateDirectoryMessagetrue|falsetrue

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

ShowExistingDirectoryWarningtrue|falsetrue

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
languagexml
titleExample of customzing TargetPanel
<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.dirIzPack recognizes this as a built-in variable which can be user-modified.

...

Built-in VariableDescriptionDefault Value

TargetPanel.dir.<platform_or_os>

(see Setting Default Installation Directories)

The platform-specific default installation path, which can be overridden by the user in TargetPanel.

(gathered determined automatically according to the OS and platform)

ShowCreateDirectoryMessageWhether to show the "Target directory will be created" dialog if a directory does not exist. 
You should not use this variable any longer, use the <configuration> option with the same name see above.
true

...