Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Reverted from v. 35 - 7z support will be fixed - support with restrictions according to commons-compress documentation







the file location (relative path). The src name may contain previously defined static variables (see <variables>).



the destination directory, could be something like $INSTALL_PATH/subdirX



Limit installation of this particular file only to the given target OS type.


"unix" | "windows" | "mac"


Whether to overwrite existing files.

  • true if the file should always overwrite an existing file with the same name.
  • false if the file should be skipped if the file already exists in the targetdir.
  • asktrue if the user should be interactively asked what to do and supply default value of "true" for non-interactive use.
  • askfalse if the user should be interactively asked what to do and supply default value of "false" for non-interactive use.
  • update if the new file is only installed if it's modification time is newer than the modification time of the already existing file. Note that this is not a reliable mechanism for updates - you cannot detect whether a file was altered after installation this way.
  • no

"true" | "false" | "asktrue" | "askfalse" | "update"


Globmapper to rename a conflicting file to. This works similar to the <globmapper> in File Name Mappers, whereby the mapper's from attribute is set to the empty string and the to attribute exactly to the value given here. Example: overrideRenameTo="*.bak" will rename the target file by appending the suffix .bak instead of overwriting it. The override attribute must be set "true" to activate this feature.

Since IzPack 5.0


String - valid globmapper target expression


For Windows only, ignored on non-Windows systems:
Defines whether and how blocked target files on Windows should be handled. This might result in pending file operations which require a system reboot.

Pending file operations are introduced during the installation in two phases:

  1. The blockable attribute marks files pending to be replaced after a system reboot if they are blocked. Blocked files are recognized during physically installing them.
  2. How and whether the system should be really rebooted directly from the installer in case there are such pending file operations at the end of the installation can be controlled by the <rebootaction> tag nested to <info>.

Using blockable does not necessarily force you to limit such files on Windows systems. For multi-platform installations there is a compiler warning shown that blockable will be ignored on non-Windows systems.
The native library WinSetupAPI must be explicitly included using this feature.

Possible values:

    • none
      No recognition of blocked target files will be done at all, this is the default behavior of previous IzPack versions.
    • auto
      Automatic recognition of a blocked target file by the operating system, resulting in leaving a pending file operation to be finished after system reboot. Using auto this applies only for files that are really blocked, the other files are copied normally, which can result in mixed, old and new target files at the end of the installation, unless the system won't be really rebooted.
    • force
      Forces target file to be always assumed a blocked, resulting in leaving a pending file operation to be finished after system reboot. Using force this applies for each file, regardless whether it is really blocked during installation. This makes sense if you don't want to mix files old and new files at the end of the installation to not disturbing a running process, but having the complete set of target files installed after system reboot.

Since IzPack 5.0


"none" | "auto" | "force"


if true and the file is an archive then its contents will be unpacked and added as individual files.

One or more nested <archivefileset> element can be added to define include and exclude path patterns similar to the <fileset> element nested to a <pack>.

Before IzPack 5.1.0, only ZIP archives were supported (including jar, war and zip files).

Since IzPack 5.1.0, all compression supported by the Apache common-compress library are automatically recognized by analyzing the file metadata and are extracted correctly. These include bzip2, Pack200, XZ, gzip, lzma, Z, deflate as well as archive types such as ar, arj, cpio, dump, tar, 7z, zip and their combinations like tar.gz,

The file extension is ignored for this auto-recognition.


"true" | "false"


Limit installation of this particular file to the given condition, which must be true during the file installation.


String - a valid condition ID


Whether to treat the file name case-sensitive.


"true" | "false"


Whether to use global default excludes.
Implicit default exclude patterns are typically:

Code Block

Since IzPack 5.0


"true" | "false"


Whether to follow symbolic links on target systems which support them.
Since IzPack 5.0


"true" | "false"