Can you use an installer variable to specify the origin of a file that is being added?

Comments

1 comment

  • Avatar
    juanjo

    Where is the variable defined? To make it available when building, it should be defined as a hidden parameter or it should be defined in the <preBuildActionList>:

    <preBuildActionList>
        <setInstallerVariable>
            <name>qtdir</name>
            <value>some/value</value>
        </setInstallerVariable>
    </preBuildActionList>
    

    In addition, the surrounding quotes used in <origin> should be removed (it will be properly considered even if it contains spaces):

    <distributionfile>
       <origin>${QtDir}/bin/QtXml4.dll</origin>
    </distributionfile> 
    <distributionfile> 
       <origin>${QtDir}/bin/QtWebKit4.dll</origin>
    </distributionfile>
    

Please sign in to leave a comment.