My installer have a folder that contains many sub folder in it and each sub folder have a conf.txt file during the upgrade i never want to overwrite the conf.txt file of all folder.

asked 05 Apr '16, 09:14

John123's gravatar image

John123
6779
accept rate: 0%


Hi jesus, I have tried it but <excludefiles> is not working in my case.

     <folderList>
        <folder> 
          <description>Program Files</description>
          <destination>${installdir}</destination>
            <name>programfiles</name>
            <platforms>all</platforms>
            <distributionFileList>
             <distributionDirectory allowWildcards="1">
            <origin>D:/InstallBuilder/SampleProject</origin>                               <excludeFiles>D:/InstallBuilder/SampleProject/config/configure.properties</excludeFiles>
        </distributionDirectory>
        </distributionFileList>
       </folder>

<folder>
     <description>Program Files</description>
      <destination>${installdir}</destination>
      <name>programfiles</name>
      <platforms>all</platforms>
      <distributionFileList>
      <distributionFile>
         <origin>D:/InstallBuilder/SampleProject/config/configure.properties</origin>
     </distributionFile>
     </distributionFileList>
    <ruleEvaluationLogic>and</ruleEvaluationLogic>
    <ruleList>
       <compareText text="${project.installationType}" logic="does_not_equal" value="upgrade"/>
    </ruleList>
    </folder>
 </folderList>

is any thing wrong here

link

answered 13 Apr '16, 06:25

John123's gravatar image

John123
6779
accept rate: 0%

Could you check if the below works for you?

...
<distributionFileList>
    <distributionDirectory allowWildcards="1">
        <origin>D:/InstallBuilder/SampleProject</origin>
        <onPackingFilterList>
            <fileNameFilter logic="does_not_match" pattern="*/config/configure.properties"/>
        </onPackingFilterList>
    </distributionDirectory>
</distributionFileList>
...
link

answered 13 Apr '16, 10:51

jesus's gravatar image

jesus ♦♦
1.1k14
accept rate: 18%

Thanks, Jesus now it's working

(14 Apr '16, 02:53) John123
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: 05 Apr '16, 09:14

Seen: 1,706 times

Last updated: 14 Apr '16, 02:53