Some notes on software development... RSS 2.0
# Thursday, 28 August 2008

To run a custom action for a specific feature you need include the feature action state value in the condition logic.

For example:

<Custom Action="MyAction" After="InstallFiles">(NOT Installed) AND (&MyFeature=3)</Custom>

The & in front of the feature name will return the feature's action state. Possible action states are:


So to only run a custom action for a particular feature we check that it's action state is set to INSTALLSTATE_LOCAL which is 3.

MSDN - Conditional Statement Syntax
MSDN - Examples of Conditional Statement Syntax
Nabble WiX Forum Item

Thursday, 28 August 2008 14:10:28 (GMT Standard Time, UTC+00:00)  #    -

Sign In
Total Posts: 116
This Year: 0
This Month: 0
This Week: 0
Comments: 36
About the author/Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2019
Hadrian Phillips

All Content © 2019, Hadrian Phillips
DasBlog theme 'Business' created by Christoph De Baene (delarou)