I have an installer that plays files in a folder, however I wanted to use the same installer to update the application, so there are some files that can not be overwritten. This way I thought of showing a dialog box when the file already exists asking if the user wants to overwrite.
My izpack is this
<pack name="Product" required="yes">
<file src="../@{project.artifactId}.jar" targetdir="$INSTALL_PATH" />
<fileset dir="../resources" targetdir="$INSTALL_PATH/resources">
<include name="**/*" />
</fileset>
<fileset dir="dependency" targetdir="$INSTALL_PATH/lib">
<include name="**/*" />
</fileset>
<fileset dir="../resources/icons" targetdir="$INSTALL_PATH">
<include name="favicon.ico" />
</fileset>
</pack>