How to execute program depending on value

Comments

1 comment

  • Avatar
    juanjo

    One option would be to call the binary in the finalPageActionList, which will automatically add a checkbox for that:

     <finalPageActionList>
         <runProgram progressText="Launch ${project.fullName}" >
             <program>${installdir}/bin/app.exe</program>
             <programArguments>&amp;</programArguments>
         </runProgram>
     </finalPageActionList>
    

    http://installbuilder.bitrock.com/docs/installbuilder-userguide.html#_final_page_options

    Or you could use a <booleanParameter> while installing and use its value later on:

        <booleanParameter>
            <name>launchApp</name>
            <description>Launch Application</description>
            <default>1</default>
            <displayStyle>radiobuttons</displayStyle>
        </booleanParameter>
        ...
        <postInstallationActionList>
            <runProgram>
                <program>${installdir}/bin/app.exe</program>
                <programArguments>&amp;</programArguments>
                <ruleList>
                     <isTrue value="${launchApp}"/>     
                </ruleList>
            </runProgram>
        </postInstallationActionList>
    
    0
    Comment actions Permalink

Please sign in to leave a comment.