I\'m using WiX to create a windows installer. Unfortunately my installer overwrites a config file on every update. What I really want is, that the installer only creates th
Component/@NeverOverwrite="yes"
will do this. Just remember to set File/@KeyPath="yes"
on one or more of the files so it can detect whether it is already present.
If you're using heat.exe to harvest your file list automatically, you can use the following XSLT stylesheet to set this attribute on each Component containing a config file (and set each config File element as a key path).
yes
(Note: the XML namespace handling can probably be cleaned up, but it works.)