While upgrading the installer, I never want to changes two files in the specific folder. whether "onlyIfNewer" condition is valid or not. that folder has many other files but during the upgrade, that two files never changes. How to do that please give any solution.

asked 12 Jan '16, 08:30

developer's gravatar image

developer
(suspended)
accept rate: 0%

edited 14 Jan '16, 05:04


Hi developer,

You could use the <folder> action to distribute files/folders and attach a rule to not unpack them if the current installer is an upgrade installer.

    <folder>
       <description>Program Files</description>
       <destination>${installdir}</destination>
       <name>programfiles</name>
       <platforms>alll</platforms>
       <ruleList>
         <compareText text="${project.installationType}" logic="does_not_equal" value="upgrade"/>        
       </ruleList>
    </folder>
link

answered 13 Jan '16, 12:59

jesus's gravatar image

jesus ♦♦
1.1k14
accept rate: 18%

Your answer
toggle preview

Follow this question

By Email:

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

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "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

Tags:

×155
×22

Asked: 12 Jan '16, 08:30

Seen: 412 times

Last updated: 14 Jan '16, 05:04