Maybe I am missing something, but wouldn't it be simpler to use Components and 
Component Groups to do this. The Features are simply user selectable 
containers. Components (Groups) may be assigned to multiple Features. If two 
features contain a component, and either feature is selected, the component is 
installed.

bill

-----Original Message-----
From: Gary Henry [mailto:gary.he...@microfocus.com] 
Sent: Friday, February 13, 2015 7:06 PM
To: General discussion about the WiX toolset.
Subject: Re: [WiX-users] Using a WiX Selection Tree control, when I select 
Feature 1, I want Feature 2 to be selected automatically

I am fine with using custom actions, I just could not find a way to specify in 
the custom action that if Feature 1 is selected to automatically select Feature 
2.  Is there a way in a custom action to set a value that will do this and if 
so, what is the syntax of how to set it?

-----Original Message-----
From: David Connet [mailto:d...@agilityrecordbook.com]
Sent: Friday, February 13, 2015 3:44 PM
To: General discussion about the WiX toolset.
Subject: Re: [WiX-users] Using a WiX Selection Tree control, when I select 
Feature 1, I want Feature 2 to be selected automatically

The hierarchical nature of the tree enforces dependencies. Otherwise, you have 
to use custom actions. I remember doing that at a previous company and it was a 
pain.

Dave




----- Original Message -----
> From: Gary Henry <gary.he...@microfocus.com>
> To: General discussion about the WiX toolset. 
> <wix-users@lists.sourceforge.net>
> Cc: 
> Sent: Friday, February 13, 2015 3:35 PM
> Subject: Re: [WiX-users] Using a WiX Selection Tree control, when I 
> select Feature 1, I want Feature 2 to be selected automatically
> 
> Actually what I want is for all the features to be at the same level.  
> If I set it up like Jacob suggests then the first screen that I see 
> shows the following with Feature 2 hidden:
> 
>     [-] All Features
>         [-] Feature 1 (requires Feature 2)
>         [x] Feature 3
> 
> I know I could expand Feature 1 the first time the screen is displayed 
> but there are cases were I just want to install only Feature 2 which 
> is why I want them at the same level.  In other words, Feature 2 does 
> not depend on Feature 1.  In the end, I will have 20 features with 
> some depending on others.  Each time I select a feature I want all the 
> features that it requires to be automatically selected also.  If the 
> features are at the same level and there is no way to automatically 
> select Feature 2 if Feature 1 is selected then I will either have to 
> use the method you suggest or create a custom dialog with checkboxes to do 
> what I want.  Let me know if you or anyone has any other ideas.
> 
> 
> -----Original Message-----
> From: David Connet [mailto:d...@agilityrecordbook.com]
> Sent: Friday, February 13, 2015 3:14 PM
> To: General discussion about the WiX toolset.
> Subject: Re: [WiX-users] Using a WiX Selection Tree control, when I 
> select Feature 1, I want Feature 2 to be selected automatically
> 
> ----- Original Message -----
> 
>>  From: "Hoover, Jacob" <jacob.hoo...@greenheck.com>
>>  To: General discussion about the WiX toolset. 
>>  <wix-users@lists.sourceforge.net>
>>  Cc: 
>>  Sent: Friday, February 13, 2015 3:04 PM
>>  Subject: Re: [WiX-users] Using a WiX Selection Tree control, when I 
>> select Feature 1, I want Feature 2 to be selected automatically
>> 
>>  Shouldn't it be
>> 
>>      [-] All Features
>>          [x] Feature 1 (requires Feature 2)
>>              [x] Feature 2
>>          [x] Feature 3
> 
> 
> Think you meant:
> 
>   [-] All Features
> 
>       [x] Feature 2
>           [x] Feature 1 (requires Feature 2)
>       [x] Feature 3
> 
> 
> Dave
> 
> ----------------------------------------------------------------------
> -------- Dive into the World of Parallel Programming. The Go Parallel 
> Website, sponsored by Intel and developed in partnership with Slashdot 
> Media, is your hub for all things parallel software development, from 
> weekly thought leadership blogs to news, videos, case studies, 
> tutorials and more. Take a look and join the conversation now.
> http://goparallel.sourceforge.net/
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
> 
> 
> This message has been scanned for malware by Websense. 
> www.websense.com
> 
> ----------------------------------------------------------------------
> -------- Dive into the World of Parallel Programming. The Go Parallel 
> Website, sponsored by Intel and developed in partnership with Slashdot 
> Media, is your hub for all things parallel software development, from 
> weekly thought leadership blogs to news, videos, case studies, 
> tutorials and more. Take a look and join the conversation now.
> http://goparallel.sourceforge.net/
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
> 

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website, sponsored 
by Intel and developed in partnership with Slashdot Media, is your hub for all 
things parallel software development, from weekly thought leadership blogs to 
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to