Detect if an action was executed

Answered

Comments

1 comment

  • Avatar
    juanjo

    You could use an <actionGroup> to wrap the action you need to check and defining the variable:

    <finalPageActionList>
       <actionGroup progressText="Create shortcuts">
          <actionList>
              <createShortcuts .../>
              <setInstallerVariable name="shortcuts_created" value="1"/>
          </actionList> 
       </actionGroup>
       <!-- Check if the action was executed -->
       <setInstallerVariable name="some_other_variable" value="some other value">
            <ruleList>
                 <isTrue value="${shortcuts_created}"/>
            </ruleList>
       </setInstallerVariable>
    </finalPageActionList>
    

Please sign in to leave a comment.