Comments

1 comment

  • Avatar
    Jake

    You can enable or disable actions based on the platform in which the installer is running using a <platformTest>:

        <!-- Execute myProgram.exe just on 32bits Windows -->
        <runProgram>
            <program>${installdir}/myProgram.exe</program>
            <ruleList>
                <platformTest type="windows"/>
                <platformTest type="windows-x64" negate="1"/>
            </ruleList>
        </runProgram>
    
        <!-- Execute myProgram.bin on Unix systems -->
        <runProgram>
            <program>${installdir}/myProgram.bin</program>
            <ruleList>
                <platformTest type="unix"/>
            </ruleList>
        </runProgram>
    

    You can find the complete list of types for the <platformTest> rule in this article.

Please sign in to leave a comment.