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]'RequireCorrectCaptc
haCode'[\]]/@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 PM
To: wix-users@lists.sourceforge.net
Subject: [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()='dep
loymentProvider'[\]]/@codebase"
 
but I get the following error
 
ExecXmlFile:  Error 0x80004005: failed to find node: //*/*/@codebase in
XML file: C:\Program Files\XXX\XXX.application
MSI (s) (20!60) [19:44:10:257]: Product: XXX Service -- Error 25532.
Failed to find node:
//*[local-name()='deployment']/*[local-name()='deploymentProvider']/@cod
ebase 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.
<http://ideas.live.com/programpage.aspx?versionId=5d21c51a-b161-4314-9b0
e-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

Reply via email to