Variable path based on OS?

Answered

Comments

3 comments

  • Avatar
    michiel

    You could store the path to the ini file in a variable and let that depend on the platform.

    <setInstallerVariable>
          <name>iniFilePath</name>
          <value>${installdir}/your.ini</value>
          <ruleList>
            <platformTest type="osx">
            </platformTest>
          </ruleList>
        </setInstallerVariable>
        <setInstallerVariable>
          <name>iniFilePath</name>
          <value>${windows_folder_appdata}/your.ini</value>
          <ruleList>
            <platformTest type="windows">
            </platformTest>
          </ruleList>
        </setInstallerVariable>
    
    1
    Comment actions Permalink
  • Avatar
    Dan203

    Thanks. I tried to do it like that using a parameter but the compiler complained that I had two parameters with the same name. I didn't realize there were variables like this. Can these be added by the UI or only by editing the XML by hand?

    0
    Comment actions Permalink
  • Avatar
    michiel

    You can add the <setinstallervariable> action with the GUI as well.

    alt text

    0
    Comment actions Permalink

Please sign in to leave a comment.