I want to be able to change an XML node value from WiX. The XML structure looks like this:
Try omitting the Name
attribute. Like this:
<util:XmlConfig Id='SetSetting2'
File='[#defaultSettings.xml]'
Action='create'
Node='value'
ElementPath="//settings/setting[\[]@name='setting2'[\]]/@value"
Value="test"
On='install'
PreserveModifiedDate='yes'
VerifyPath="//settings/setting[\[]@name='setting2'[\]]/@value/"/>
See also XmlConfig Element. For attribute Name
it says:
Not setting this attribute causes the element's text value to be set. Otherwise this specified the attribute name that is set.