Re: [WiX-users] Install Component only if multiple Features are selected

2015-01-03 Thread Nick Ramirez
You cannot check whether a condition or feature is going to be installed in a
feature or component condition, since costing hasn't taken place yet.

Maybe you have a very special use-case, but in most cases, you've likely got
your features badly organized. With more information, we may be able to
suggest a better solution.



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Install-Component-only-if-multiple-Features-are-selected-tp7598702p7598707.html
Sent from the wix-users mailing list archive at Nabble.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


Re: [WiX-users] Install Component only if multiple Features are selected

2015-01-03 Thread Christoph Hausner
My software is basically a bundle of image file codecs (currently only two but 
this may change in the future). The user should be able to select which of the 
codecs should get installed. In addition, there should be an option to set if 
the selected codecs should get registered in Windows Explorer (one option for 
all selected codecs).


My current feature tree is structured as follows (I’m using WixUI_FeatureTree):



- Feature: “Core files” (required)


|- Subfeature: “Codec A” (optional)

|- Subfeature: “Codec B” (optional)

- Feature: “Windows Explorer integration” (optional)


I’m struggling now to make the Integration feature only perform the 
registrations for the selected Codec features. Do you think it would be easier 
to replace the Integration feature by a separate dialog page that appears after 
the FeatureTree page and consists of a single check box, and make the Explorer 
Integration components part of the Codec features but only include them if the 
check box was checked?


Any help is greatly appreciated.


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


Re: [WiX-users] Install Component only if multiple Features are selected

2015-01-03 Thread Nick Ramirez
Components can also be included in more than one feature. Could you add
subfeatures under your codec features?

- Feature: “Core files” (required) 

--- Subfeature: “Codec A” (optional) 
-- Subfeature: “Windows Explorer integration” (optional) 

--- Subfeature: “Codec B” (optional) 
-- Subfeature: “Windows Explorer integration” (optional) 


Although you see two features, they would point to the same ComponentGroup.

Having the integration choice on a separate dialog is another option. You
could add a feature condition to it that looks at a WiX Property (instead of
the action state of other conditions or features) that would be set by a UI
control on that dialog (such as a checkbox). For example, a checkbox could
set a property called INSTALL_INTEGRATION. And the Condition inside the
Feature would look at that property. In that case, you might hide the
feature in the feature tree with the Feature/@Display attribute, set to
hidden so that users can't manipulate it in the tree.





--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Re-Install-Component-only-if-multiple-Features-are-selected-tp7598712p7598713.html
Sent from the wix-users mailing list archive at Nabble.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


Re: [WiX-users] Install Component only if multiple Features are selected

2015-01-03 Thread Nick Ramirez
I forgot about it, but you may have to publish the AddLocal event. I guess
it's been a little while since I thought about it, because I can't remember
if you can add/remove features with a feature condition outside of the
feature tree or if you have to use the AddLocal event (published by the
Next button on the dialog). 

Let us know what works and what doesn't.



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Re-Install-Component-only-if-multiple-Features-are-selected-tp7598712p7598714.html
Sent from the wix-users mailing list archive at Nabble.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


[WiX-users] Install Component only if multiple Features are selected

2015-01-01 Thread Christoph Hausner
Hello,




is there a way to install a Component from a Feature A only if another Feature 
B is to be installed too?




I came acrossthis comment 
(http://www.joyofsetup.com/2008/04/09/feature-states-in-component-conditions/comment-page-1/#comment-7208)
 and tried out the suggestion with a CustomAction but couldn’t get it to work 
(a CustomAction with a condition FeatureB=3 setting a Property, and the 
component having a Condition referencing this Property). If I run the 
CustomAction before CostFinalize the Feature=3 condition does not evaluate as 
expected, and running it after CostFinalize leads to the component Condition 
not picking up the changed Property value.


Hope somebody can help me here. Thanks!




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