Can I customize a rule for overwriting existing files?


1 comment

  • Avatar

    It is not possible to create custom rules for overwriting existing files. However, it is possible to use <ruleList> for a <folder> to check if a certain set of files should be unpacked.

    For example the following can be used to compare version of embedded folder and one installed in the specified folder:

        <!-- ... -->
            <description>Program Files</description>
            <!-- store installed version - only executed if folder was installed -->
              <!-- only install if project.version is newer than installed programfiles folder -->
            <!-- ... -->
          <!-- default version to compare to -->
          <!-- read version if file exists -->

    This can be used to check versions for multiple folders - simply by adding a get/set action for INI file and by adding a check in <ruleList>.

Please sign in to leave a comment.