Say I have an installer that supports two installation modes:

  1. Full Installation (selected by default)
  2. Minimal Installation (can be selected)

When the Component Selection page appears, and I select 'Minimal Installation', I want the 'Full Installation' to be deselected and viceversa. How can this be accomplished?

Thanks

asked 14 Jun '12, 19:07

jalexrod's gravatar image

jalexrod
38121215
accept rate: 0%


I believe the best solution would be to hide the component selection page and replace it with a choiceParameter

<project>
  <allowComponentSelection>0</allowComponentSelection>
  <parameterList>
     <choiceParameter>
          <ask>1</ask>
          <default>full</default>
          <description>Installation Type</description>
          <title>Installation Type</title>
          <name>installation_type</name>
          <optionList>
            <option>
              <value>full</value>
              <text>Full Installation</text>
              <description>Installs everything</description>
            </option>
            <option>
              <value>minimal</value>
              <text>Minimal</text>
              <description>Installs just the core</description>
            </option>
          </optionList>
          <postShowPageActionList>
              <componentSelection>
                 <deselect>docs,videos,extra</deselect>
                 <select>core</select>
                 <ruleList>
                    <compareText text="${installation_type}" logic="equals" value="minimal"/> 
                 </ruleList>
              </componentSelection>
              <componentSelection>
                 <select>docs,videos,extra,core</select>
                 <ruleList>
                    <compareText text="${installation_type}" logic="equals" value="full"/> 
                 </ruleList>
              </componentSelection>
          </postShowPageActionList>
     </choiceParameter>
   </parameterList>
</project>
link

answered 15 Jun '12, 04:16

juanjo's gravatar image

juanjo ♦♦
5.8k413
accept rate: 23%

Thanks juanjo. I ended up enabling component selection anyways and using this logic in a custom page that preceded the component selection page. I did this because I still need to show the components being installed.

(22 Jun '12, 16:43) 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:

×39

Asked: 14 Jun '12, 19:07

Seen: 1,400 times

Last updated: 22 Jun '12, 16:43