The installer currently allows for three built-in rules when overwriting existing files. What if I want to develop a custom rule based on a string that exists inside the file rather than file attributes? How can I implement such a feature?

asked 22 Nov '11, 06:59

GigaG's gravatar image

accept rate: 0%

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>.


answered 22 Nov '11, 07:58

wojciechka's gravatar image

wojciechka ♦♦
accept rate: 26%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 22 Nov '11, 06:59

Seen: 1,124 times

Last updated: 22 Nov '11, 07:58