Is there a way to tell if an action has been executed? For example, say the final page shows a checkbox that the user can select/de-select for creating a desktop shortcut for the application. I want to be able to determine whether or not the checkbox was selected and do something based on that information (i.e. assign a value to a variable).

asked 18 Jul '12, 14:29

jalexrod's gravatar image

jalexrod
38121215
accept rate: 0%


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>
link

answered 18 Jul '12, 15:08

juanjo's gravatar image

juanjo ♦♦
5.8k413
accept rate: 23%

this works for me, thanks!

(18 Jul '12, 17:18) jalexrod
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:

×14

Asked: 18 Jul '12, 14:29

Seen: 943 times

Last updated: 18 Jul '12, 17:18