Re: [WiX-users] How can I loop through in C# custom action the Feature tree and detect the install state and install action for each one of the features?

2013-07-12 Thread Wang, Miaohsi
Hi Blair, Thank you for your help. I tried your suggestion and have a problem getting it work. Below is how the custom action, WriteModulesXml, is setup. This CA tries to access session.Features. Declaration: CustomAction Id=WriteModulesXml BinaryKey=CustomAction1.dll

[WiX-users] How can I loop through in C# custom action the Feature tree and detect the install state and install action for each one of the features?

2013-07-10 Thread Wang, Miaohsi
Dear All, I am trying to find a way to loop through the Feature tree and detect the install state and install action for each one of the features in my C# custom action. Below is what I've found that I could use: FeatureInfo FeatureState = session.Features[feature_name]; From the FeatureState

Re: [WiX-users] How can I loop through in C# custom action the Feature tree and detect the install state and install action for each one of the features?

2013-07-10 Thread Blair Murri
I would assume: foreach (FeatureInfo FeatureState in session.Features) { FeatureInfo.Name; // etc. } From: miaohsi.w...@invensys.com To: wix-users@lists.sourceforge.net Date: Wed, 10 Jul 2013 16:05:48 -0400 Subject: [WiX-users] How can I loop through in C# custom action the Feature