I don't know what your directory structure looks like so I can't validate the
correctness of xmlconf...@file.
For less fragile code use the [#fileid] format to refer to the file you want to
modify:
<Util:XmlConfig
Id="ConfigurationRemove"
File="[# ConnectionstringsDTSCONFIG]"
Action="delete"
ElementPath="//DTSConfiguration/Configuration"
Node="element"
VerifyPath="ConfiguredValue"
Sequence="1"
On="install"/>
The action you are taking is to delete a node.
The ElementPath specified will generate a node set (multiple nodes). I don't
know whether that is causing issues or not.
The VerifyPath attribute contains a name for a node that is a child of the
nodes matched by ElementPath. The documentation says VerifyPath needs to be a
XPath. Perhaps this is causing issues.
Judging from you code my *guess* is that you are trying to delete
/DTSConfiguration/Configuration/ConfiguredValue nodes. If this is the case, try
the following:
<Util:XmlConfig
Id="ConfigurationRemove"
File="[# ConnectionstringsDTSCONFIG]"
Action="delete"
Node="element"
VerifyPath="//DTSConfiguration/Configuration/ConfiguredValue"
Sequence="1"
On="install"/>
I'm not an expert on XmlConfig so I don't know how to delete nodes.
Edwin G. Castro
Software Developer - Staff
Electronic Banking Services
Fiserv
Office: 503-746-0643
Fax: 503-617-0291
www.fiserv.com
Please consider the environment before printing this e-mail
-----Original Message-----
From: Carolina Zuqueto Amaral [mailto:[email protected]]
Sent: Thursday, June 10, 2010 9:53 AM
To: [email protected]
Subject: [WiX-users] FW: Configure file.dtsConfig
I used XmlConfig Element, but the file was not change.
File.dtsConfig:
<?xml version="1.0" ?>
<DTSConfiguration>
<DTSConfigurationHeading>
<DTSConfigurationFileInfo GeneratedBy="CONVERGENCIA\felipe.miana"
GeneratedFromPackageName="ConnectionStrings"
GeneratedFromPackageID="{6CD6920D-A4F0-4733-A08F-125106F531F0}"
GeneratedDate="21/10/2009 14:13:46" />
</DTSConfigurationHeading>
<Configuration ConfiguredType="Property"
Path="\Package.Variables[User::path].Properties[Value]" ValueType="String">
<ConfiguredValue>\\convs07\Historical
Integration\DataFarm\WIT\Files\</ConfiguredValue>
</Configuration>
<Configuration ConfiguredType="Property"
Path="\Package.Variables[User::WITPath].Properties[Value]"
ValueType="String">
<ConfiguredValue>Provider=SQLNCLI10.1;Data Source=CONVS04;Integrated
Security=SSPI;Initial Catalog=WIT_Historical</ConfiguredValue>
</Configuration>
</DTSConfiguration>
Wix Code:
...
<Directory Id="configFolder" Name="Config">
<Component Id="ConfigComp" Guid="{DC3B7A24-A638-47e9-8794-A6622C34401D}">
<File Id="ConnectionstringsDTSCONFIG" Name="Connectionstrings.dtsConfig"
Source=".\source\Config\Connectionstrings.dtsConfig" DiskId="1"
Vital="yes" KeyPath="no"/>
<File Id="WITConfigDTSCONFIG" Name="WIT_Config.dtsConfig"
Source=".\source\Config\WIT_Config.dtsConfig" DiskId="1" Vital="yes"
KeyPath="no"/>
<Util:XmlConfig
Id="ConfigurationRemove"
File="[INSTALLLOCATION]WitDataFarm/Source/Config/Connectionstrings.dtsConfig"
Action="delete"
ElementPath="//DTSConfiguration/Configuration"
Node="element"
VerifyPath="ConfiguredValue"
Sequence="1"
On="install"/>
</Component>
</Directory>
...
Do you know why this is happening?
Thanks,
Carolina Zuqueto.
--
Carolina Zuqueto Amaral
tel: +55 21 2494-5476
cel: +55 21 9524-7186
email: [email protected]
-----Original Message-----
From: Pally Sandher [mailto:[email protected]]
Sent: quinta-feira, 10 de junho de 2010 13:11
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Configure file.dtsConfig
http://wix.sourceforge.net/manual-wix3/util_xsd_xmlconfig.htm or
http://wix.sourceforge.net/manual-wix3/util_xsd_xmlfile.htm
Palbinder Sandher
Software Deployment & IT Administrator
T: +44 (0) 141 945 8500
F: +44 (0) 141 945 8501
http://www.iesve.com
**Design, Simulate + Innovate with the <Virtual Environment>** Integrated
Environmental Solutions Limited. Registered in Scotland No.
SC151456
Registered Office - Helix Building, West Of Scotland Science Park, Glasgow G20
0SP Email Disclaimer
-----Original Message-----
From: Carolina Zuqueto Amaral [mailto:[email protected]]
Sent: 10 June 2010 16:56
To: [email protected]
Subject: [WiX-users] Configure file.dtsConfig
Hi,
I need to configure a lot of files.dtsConfig in the installation.
How Do I do this?
Thanks,
Carolina Zuqueto Amaral
[email protected]<mailto:[email protected]>
tel +55 21 2494-5476
cel +55 21 9524-7186
------------------------------------------------------------------------
------
ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day
Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and
enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day
Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and
enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
Confidencialidade: A informação contida nesta mensagem de e-mail, incluindo
quaisquer anexos, é confidencial e está reservada apenas à pessoa ou entidade
para a qual foi endereçada. Se você não é o destinatário ou a pessoa
responsável por encaminhar esta mensagem ao destinatário, você está, por meio
desta, notificado que não deverá rever, retransmitir, imprimir, copiar, usar ou
distribuir esta mensagem de e-mail ou quaisquer anexos. Caso você tenha
recebido esta mensagem por engano, por favor, contate o remetente imediatamente
e apague esta mensagem de seu computador ou de qualquer outro banco de dados.
Grato.
Confidentiality Notice: The information contained in this email message,
including any attachment, is confidential and is intended only for the person
or entity to which it is addressed. If you are neither the intended recipient
nor the employee or agent responsible for delivering this message to the
intended recipient, you are hereby notified that you may not review,
retransmit, convert to hard copy, copy, use or distribute this email message or
any attachments to it. If you have received this email in error, please contact
the sender immediately and delete this message from any computer or other data
bank. Thank you.
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day
Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and
enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users