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:

image

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.

Links:
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)  #    -
WiX
Navigation

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

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

© Copyright 2018
Hadrian Phillips

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