Well I didn't get to post the problem/fix before you did (I noticed you used
ElementPath instead of ElementId), but I can at least help you a tiny bit
with the uninstall...
<Component Id="XXXUninstall" Guid="myGUID" >
<util:XmlConfig
Id="XXXUninstall"
File="[DIRECTORY_PATH_CLIENT]web.config"
Action="delete"
Node="element"
VerifyPath="add[\[]@name='AppCacheModule'[\]]"
ElementPath="//configuration/location/system.webServer/modules"
On="uninstall"
Sequence="1" />
<CreateFolder/>
</Component>
If I've modified this correctly it should handle the uninstall for you.
I remember the first time i tested an uninstall where i had to edit a
web.config, got it wrong and removed half my web.config :)
James
--
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/trying-to-add-XML-element-to-a-web-config-file-tp7596447p7596454.html
Sent from the wix-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds. Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users