Get Windows Platform version (32bit or 64bit)?

Answered

Comments

1 comment

  • Avatar
    jesus

    Hi,

    You can use the <platformTest> rule with the values windows-x64 or windows-x86 to check if the platform where the installer is running is of 64 or 32 bits.

    ...
    <runProgram>
        <program>${installdir}/executable64bit.exe</program>
         <programArguments></programArguments>
         <ruleList>
            <platformTest type="windows-x64" />
        </ruleList>
    </runProgram>
    <runProgram>
        <program>${installdir}/executable32bit.exe</program>
        <programArguments></programArguments>
        <ruleList>
            <platformTest type="windows-x86" />
        </ruleList>
    </runProgram>
    ...
    
    0
    Comment actions Permalink

Please sign in to leave a comment.