Execute specific actions for a platform using a <platformTest> rule
| Author: BitRock Support Date: September 14, 2009 13:28 Tags: |
Rules
|
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.