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)  #    -

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)  #    -
Thursday, 28 August 2008 09:23:21 (GMT Standard Time, UTC+00:00)  #    -
# Thursday, 21 August 2008

The following SQL will return all English error codes and messages:

SELECT      Error,
FROM        master.dbo.sysmessages
WHERE       msglangid = 1033
ORDER BY    Error

It returns about 7549 rows:


Thursday, 21 August 2008 13:24:03 (GMT Standard Time, UTC+00:00)  #    -
SQL Server

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)