Never want to override the some files in upgrade insaller

Comments

1 comment

  • Avatar
    jesus

    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>
    

Please sign in to leave a comment.