1
1

I'm trying to install the content of a folder directly to the installdir not into a subfolder. How can I do this?

I have

C:\Path\To\Some\Folder (a folder with with files and subfolders)

I want them to be in ${installdir}

like this: C:\Path\To\Some\Folder\someFile.txt -> ${installdir}\someFile.txt

or: C:\Path\To\Some\Folder\Subfolder\someFile.txt -> ${installdir}\Subfolder\someFile.txt

When I do this:

    <folderList>
        <folder>
            <description>Program Files</description>
            <destination>${installdir}</destination>
            <name>programfileswindows</name>
            <platforms>windows</platforms>
            <distributionFileList>
                <distributionDirectory>
                    <filterEvaluationLogic>or</filterEvaluationLogic>
                    <origin>C:\Path\To\Some\Folder</origin>
                </distributionDirectory>
            </distributionFileList>
        </folder>
    </folderList>

it does this: C:\Path\To\Some\Folder\someFile.txt -> ${installdir}\Folder\someFile.txt

I don't understand why the destination is ${installdir}\Folder instead of ${installdir}

asked 16 Sep '13, 12:49

LIOSTech's gravatar image

LIOSTech
31458
accept rate: 100%

edited 16 Sep '13, 12:51


To pack the contents of a directory without including the directory itself you can use the below code:

<folderList>
    <folder>
        <description>Program Files</description>
        <destination>${installdir}</destination>
        <name>programfileswindows</name>
        <platforms>windows</platforms>
        <distributionFileList>
            <distributionDirectory allowWildcards="1">
                <origin>C:/Path/To/Some/Folder/*</origin>
            </distributionDirectory>
        </distributionFileList>
    </folder>
</folderList>
link

answered 16 Sep '13, 13:23

juanjo's gravatar image

juanjo ♦♦
5.8k413
accept rate: 23%

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:

×33
×29
×26

Asked: 16 Sep '13, 12:49

Seen: 1,901 times

Last updated: 16 Sep '13, 13:23