Hi,

 

I am trying to update my properties file (xml) by xquery and with 
wix-Util:xmlFile functionality. 

 

Problem:

 

Not able to update properties file if 
xmlns="urn:Microsoft.VisualStudio.Data.Schema.Project.SqlCmdVars">

exists in the root node. If I remove this node I am able to update the xml file.

 

 

XML File is like this

 

<?xml version="1.0" encoding="utf-8"?>

<SqlCommandVariables 
xmlns="urn:Microsoft.VisualStudio.Data.Schema.Project.SqlCmdVars">

<Version>1</Version>

<Properties>

<Property>

<PropertyName>Param1</PropertyName>

<PropertyValue>Param1</PropertyValue>

</Property>

<Property>

<PropertyName>Param2</PropertyName>

<PropertyValue>Param2</PropertyValue>

</Property>

<Property>

</Properties>

</SqlCommandVariables>

 

Below is the part of the wxs file

 

<Directory Id="TARGETDIR" Name="SourceDir">

<Directory Id="ProgramFilesFolder">

<Directory Id="INSTALLLOCATION" Name="sqlcmdvars">

<Component Id="ProductComponent" Guid="03ade8d5-cdab-4a50-a950-e16cebb8bbae">

<File Id="sqlcmdvars" DiskId="1" Name="Database.sqlcmdvars" 
Source="Database.sqlcmdvars" Vital="yes" KeyPath="yes" />

 

<util:XmlFile Id="BulkSetKey3" Action ="setValue" File="[#sqlcmdvars]" 
ElementPath="//Properties/Property[\[]PropertyName=&quot;Param2&quot;[\]]/PropertyValue"

SelectionLanguage="XPath"

Value="uday-Parameter2"

Sequence="14" />

</Component>

</Directory>

</Directory>

</Directory>

 

Can anyone help me in resolving this issue.

 

Thanks,

Uday.

 

 

_________________________________________________________________
Live Search extreme As India feels the heat of poll season, get all the info 
you need on the MSN News Aggregator
http://news.in.msn.com/National/indiaelections2009/aggregator/default.aspx
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to