Bob Arnson wrote:
> Sigurd Stenersen wrote:
>> Is it at all possible to modify the number of features in the
>> feature tree, from a DLL or using some sort of action ?
>>
>> I'm able to set the state of features, but I would like to present
>> users with different trees depending on selections made in a
>> previous dialog.
>>
>> Functionally, this is similar to using a condition to set the
>> feature's level, except I want to be able to do this according to
>> user input.  And it seems that by the time the user is allowed to
>> enter anything the conditions in the feature tree have already been
>> evaluated.
>>
> Feature conditions are evaluated during the CostFinalize action, which
> comes well before most UI.

And there is no way to delay CostFinalize to just before the featuretree 
dialog is displayed ?


> Off the top of my head, I can't think of an
> easy way to do what you want. The feature selection tree doesn't
> really offer customization beyond what's documented. Unless a
> feature's install level is 0 (or it's specifically hidden by its
> attributes), the
> selection tree shows it.

It IS possible to customize it from the outside using the command line to 
set properties, and that's why it seems silly that it's (seemingly) 
impossible from within.  Being forced to ship the .msi with a .exe just to 
set up a few properties seems rather lame.


> You might want to consider custom
> feature-selection dialogs instead. From there, you can publish Remove
> and AddLocal control events to exactly control which features get
> installed.

What Remove and AddLocal do is not what I'm struggling with - that is rather 
easy to do from the DLL or the MSI.


It also seems strange that the feature tree is allowed to control what is 
installed, but at the same time this is the only way to offer install 
choices from the inside of the MSI ?


Sigurd 




-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to