Replace files with izpack

1

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>
    
asked by anonymous 16.06.2014 / 20:02

1 answer

1

I was able to resolve using

<file src="../resources/myfile.properties" targetdir="$INSTALL_PATH/resources" override="false" />
<fileset dir="../resources" targetdir="$INSTALL_PATH/resources">
  <exclude name="**/myfile.properties" />
  <include name="**/*" />
</fileset>
    
17.06.2014 / 16:00