Execute specific actions for a platform using a <platformTest> rule

asked 14 Sep '11, 07:45

Jake's gravatar image

Jake ♦♦
826222226235
accept rate: 98%


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.

link

answered 14 Sep '11, 07:49

Jake's gravatar image

Jake ♦♦
826222226235
accept rate: 98%

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:

×17
×14
×9
×7
×3

Asked: 14 Sep '11, 07:45

Seen: 1,345 times

Last updated: 14 Sep '11, 07:49