I'm getting unknown variable cf_executable when building the installer here's a code snippet of the related parts. Any ideas? It is just not possible to declare a variable to use inside a folder action?

<initializationActionList>
    <setInstallerVariable>
        <name>cf_executable</name>
        <value>cf.app</value>
        <ruleList>
            <platformTest>
                <type>osx</type>
            </platformTest>
        </ruleList>
    </setInstallerVariable>
<initializationActionList>

    <folder>
        <name>cf_copy</name>
        <destination>${my_apps_dir}</destination>
        <platforms>osx</platforms>

        <distributionFileList>
            <distributionDirectory>
                <origin>/source/${cf_executable}</origin>
            </distributionDirectory>
        </distributionFileList>
  </folder>

asked 21 Feb, 11:27

Mikeyb's gravatar image

Mikeyb
1334
accept rate: 0%


The variable is set when the installer initializes, while it's used in the <distributionDirectory> during build time. Setting the variable in the <preBuildActionList> would be a solution.

<preBuildActionList>
  ...
 <setInstallerVariable>
        <name>cf_executable</name>
        <value>cf.app</value>
        <ruleList>
            <platformTest>
                <type>osx</type>
            </platformTest>
        </ruleList>
    </setInstallerVariable>
  ...
</preBuildActionList>
link

answered 23 Feb, 03:54

Michiel's gravatar image

Michiel ♦
82114
accept rate: 22%

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:

×41
×26

Asked: 21 Feb, 11:27

Seen: 115 times

Last updated: 23 Feb, 03:54