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

As quoted by Bob Arnson

"You can do everything (and more) that XmlFile supports with XmlConfig
but it requires extra authoring that's not necessary with XmlFile.
XmlFile is best at modifying XML files that you're installing (e.g., to
add an attribute reflecting the installed path of a file); it can't
remove the modifications at uninstall time but if your setup installed
the file, it will be uninstalled anyway. XmlConfig is best at modifying
shared XML files because it supports uninstalling the modifications."

Thursday, 28 August 2008 15:05:55 (GMT Standard Time, UTC+00:00)  #    -
WiX

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 2017
Hadrian Phillips

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