Hi folks, I am trying to add a new element to a web.config file, new element would be similar to:
<add type="Blah, Blah.2.2013" name="AppCacheModule" /> The web.config file looks like this (it has other <add elements under the <modules> element: <?xml version="1.0" encoding="UTF-8"?> <configuration> <location inheritInChildApplications="false"> ... <system.webServer> ... <modules> <add name="something" type="some type, Version=1.0.0.0, Culture=neutral, PublicKeyToken=3"/> <add name.... my element here/> ... </modules> </system.webServer> </location> </configuration> I need to add my element below the 1st <add under modules, I have tried various things and nothing works quite right :( <util:XmlConfig Id="XmlWebConfigAddCreate" File="[DIRECTORY_PATH_CLIENT]Web.Config" PreserveModifiedDate="yes" Action="create" Node="element" ElementPath="//configuration/location/system.webServer/modules" Name="add" Sequence="1"/> <util:XmlConfig Id="XmlWebConfigAddType" File="[DIRECTORY_PATH_CLIENT]Web.Config" PreserveModifiedDate="yes" ElementPath="XmlWebConfigAddCreate" Name="type" Value="Blah, Blah.2.2013" Sequence="2"/> <util:XmlConfig Id="XmlConfigAddName" File="[DIRECTORY_PATH_CLIENT]Web.Config" PreserveModifiedDate="yes" ElementPath="XmlWebConfigAddType" Name="name" Value="AppCacheModule" Sequence="3"/> this doesn't work :( any idea what I am doing wrong? thanks, Steve -- 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-tp7596447.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 WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users