Can I give the user a list of components to choose from in my installer?

asked 06 Sep '11, 03:32

Jake's gravatar image

Jake ♦♦
796222226235
accept rate: 98%


Yes. To specify different components, you have to add <allowComponentSelection>1</allowComponentSelection> to your project.xml. Then, you can add different components inside the componentList section of your installer project file. The components defined will be shown to the user. For example, you may use:

<componentList>
       <component>
           <name>default</name>
           <description>My Application</description>
           <canBeEdited>1</canBeEdited>
           <detailedDescription>My application detailed description 
           </detailedDescription>
           <selected>1</selected>
           <show>1</show>
           <folderList>
                   .....
           </folderList>
        </component>

        <component>
           <name>database</name>
           <description>Database application</description>
           <canBeEdited>1</canBeEdited>
           <detailedDescription>Detailed database description
           </detailedDescription>
           <selected>0</selected>
           <show>1</show>
           <folderList>
              ......
           </folderList>
        </component>
 </componentList>
link

answered 06 Sep '11, 03:40

Jake's gravatar image

Jake ♦♦
796222226235
accept rate: 98%

Can I ask where this is switched on in the GUI ? I spent an hour wondering why my components were not appearing until I added this by hand, is there a control for it somewhere ?

link

answered 21 May '12, 13:02

hulahoopian's gravatar image

hulahoopian
356710
accept rate: 0%

It is configured in the project properties (In the Advanced tree, doubleclick the root node). In the Installation section, "Allow Component Selection"

link

answered 23 May '12, 07:41

juanjo's gravatar image

juanjo ♦♦
5.8k413
accept rate: 23%

Ok, thanks. Is there any reason why this is not turned on by default if you add components to your project ?

(29 May '12, 08:29) hulahoopian

The reason is that when the component selection page was implemented, to avoid breaking backwards compatibility with legacy installer that would start displaying a new page automatically if the version of IB was upgraded, the setting was set to false.

(31 May '12, 09:30) juanjo ♦♦
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:

×155
×48
×13
×5
×2

Asked: 06 Sep '11, 03:32

Seen: 2,082 times

Last updated: 31 May '12, 09:30