Hi,
I'm trying to add 2 new connection strings in web.config in my install using 
WixConfig.
This is my code:<
<
<
<
 <
<
<
<
 util:XmlConfigId="GrocerySnapshotConnectionStr"File="[POSSERVICE]Web.config"Action="create"ElementPath="//configuration/connectionStrings"Name="add"Sequence="5"On="install"VerifyPath="//configuration/connectionStrings/add[\[]@name='GrocerySnapshot'[\]]"Node="element"/>util:XmlConfigId="GrocerySnapshotConnectionStr1"File="[POSSERVICE]Web.config"ElementPath="GrocerySnapshotConnectionStr"Name="name"Value="GrocerySnapshot"Sequence="6"/>util:XmlConfigId="GrocerySnapshotConnectionStr2"File="[POSSERVICE]Web.config"ElementPath="GrocerySnapshotConnectionStr"Name="connectionString"Value="[SNAPSHOT_CONNECTION_STRING]"Sequence="7"/>util:XmlConfigId="GrocerySnapshotConnectionStr3"File="[POSSERVICE]Web.config"ElementPath="GrocerySnapshotConnectionStr"Name="providerName"Value="System.Data.SqlClient"Sequence="8"/>
 
 
 
It saves and addes properly but this part of file loses its formatting and 
becomes one huge, long, single line.How to make it format each line/add crlf 
after adding those 2 lines?
 
 
Thanks.util:XmlConfigId="MainConnectionStr"File="[POSSERVICE]Web.config"Action="create"ElementPath="//configuration/connectionStrings"Name="add"Sequence="1"On="install"VerifyPath="//configuration/connectionStrings/add[\[]@name='Main'[\]]"Node="element"/>util:XmlConfigId="MainConnectionStr1"File="[POSSERVICE]Web.config"ElementPath="MainConnectionStr"Name="name"Value="Main"Sequence="2"/>util:XmlConfigId="MainConnectionStr2"File="[POSSERVICE]Web.config"ElementPath="MainConnectionStr"Name="connectionString"Value="[CONNECTION_STRING]"Sequence="3"/>util:XmlConfigId="MainConnectionStr3"File="[POSSERVICE]Web.config"ElementPath="MainConnectionStr"Name="providerName"Value="System.Data.SqlClient"Sequence="4"/>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to