Sorry I should have said I am using WIX V2 (not 3) and
I have the correct escaping as you can see in my example.
Unfortunately web.config don't tend to have any namespaces
defined in them and I don't have issue with those files - its an xml
file that has namespaces defined within it that is causing grief.Shaun
Subject: RE: [WiX-users] xmlfile and namespacesDate: Thu, 18 Jan 2007 13:04:03
-0800From: [EMAIL PROTECTED]: [EMAIL PROTECTED]; wix-users@lists.sourceforge.net
I’m not totally in tune with xml paths and whatnot, but I hacked through an
example and came up with this:
<util:XmlFile Id="RequireCorrectCaptchaCode" Action="setValue"
ElementPath="/configuration/appSettings/[EMAIL
PROTECTED]'RequireCorrectCaptchaCode'[\]]/@value" File="[INSTALLDIR]Web.config"
Value="[[TARGET_ENVIRONMENT].CAPTCHA_REQUIRED]" />
The escape characters and whatnot are hardly intuitive and it took forever to
get it to work, but this is the syntax I use in our installers to change values
in our config files. Hope this helps.
-Matt
From: Shaun Wilde [mailto:[EMAIL PROTECTED] Sent: Thursday, January 18, 2007
12:00 PMTo: [EMAIL PROTECTED]: [WiX-users] xmlfile and namespaces
I am trying to use xmlfile on an file with namespaces I would therefore
construct my query to look like this
ElementPath="//*[\[]local-name()='deployment'[\]]/*[\[]local-name()='deploymentProvider'[\]]/@codebase"
but I get the following error ExecXmlFile: Error 0x80004005: failed to find
node: //*/*/@codebase in XML file: C:\Program Files\XXX\XXX.applicationMSI (s)
(20!60) [19:44:10:257]: Product: XXX Service -- Error 25532. Failed to find
node:
//*[local-name()='deployment']/*[local-name()='deploymentProvider']/@codebase
in XML file: C:\Program Files\XXX\XXX.application, system error: -2147467259
only 1 node matches that query in the file can xmlfile handle such xpath
queries? If not how is one to handle xml files that have many namespaces within
them since there does not appear to be a way of adding namespace information
into the xmlfile CA Shaun
Be one of the first to try Windows Live Mail.
_________________________________________________________________
Be one of the first to try Windows Live Mail.
http://ideas.live.com/programpage.aspx?versionId=5d21c51a-b161-4314-9b0e-4911fb2b2e6d
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users