I am using XmlConfig to add a number of lines to an existing xml file,
here is an example of one line:
       <Mapping Key="dgn" Value="bentley\icdgn.gif"
EditText="MicroStation" OpenControl="Bentley.OpenDocuments"/>

It installs and uninstalls properly, but when I run a repair on this
installer, it rewrites all entries
into the file, rather than just the missing ones?  Is this the intended
behavior, a bug, or a bug in my implementation?


Here is my current code fragment like this:
    <util:XmlConfig Id='ADD_DGN_MAPPING' Sequence='26201'
Action='create' On='install' Name='Mapping' Node='element'
ElementPath='/DocIcons/ByExtension'
File='[SHAREPOINTV3]TEMPLATE\XML\DOCICON.XML'
VerifyPath='/DocIcons/ByExtension/[EMAIL PROTECTED]"dgn"[\]]' />
                <util:XmlConfig Id='DGN_KEY' Sequence='26202' Name='Key'
Value='dgn' ElementPath='ADD_DGN_MAPPING'
File='[SHAREPOINTV3]TEMPLATE\XML\DOCICON.XML'/>
                <util:XmlConfig Id='DGN_VALUE' Sequence='26203'
Name='Value' Value='bentley\icdgn.gif' ElementPath='ADD_DGN_MAPPING'
File='[SHAREPOINTV3]TEMPLATE\XML\DOCICON.XML'/>
                <util:XmlConfig Id='DGN_EDITTEXT' Sequence='26204'
Name='EditText' Value='MicroStation' ElementPath='ADD_DGN_MAPPING'
File='[SHAREPOINTV3]TEMPLATE\XML\DOCICON.XML'/>
                <util:XmlConfig Id='DGN_OPENCONTROL' Sequence='26205'
Name='OpenControl' Value='Bentley.OpenDocuments'
ElementPath='ADD_DGN_MAPPING'
File='[SHAREPOINTV3]TEMPLATE\XML\DOCICON.XML'/>
                <util:XmlConfig Id="REMOVE_DGN_KEY"
ElementPath="/DocIcons/ByExtension"  Sequence="2603" On="uninstall"
Action="delete" Node="element" VerifyPath="[EMAIL PROTECTED]'dgn'[\]]"
File='[SHAREPOINTV3]TEMPLATE\XML\DOCICON.XML'/>


Thanks in advance.
Tom


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to