Might want to take a look at XmlConfig instead of XmlFile.
On 8/8/07, Ion Costco [EMAIL PROTECTED] wrote:
Resending. Nobody encountered this? Thought it should be common...
- Original Message -
*From:* Ion Costco [EMAIL PROTECTED]
*To:* wix-users@lists.sourceforge.net
*Sent:* Thursday, July 26, 2007 2:48 PM
*Subject:* [WiX-users] Adding a new element using XmlFile
Hi!
I have this statement below that changes a configuration string in a xml
file:
XmlFile Id=CfgConfigureConnectionString
File=[TARGETDIR]\Web.Config
Action=setValue
Name=value
Value=Data Source=[SQLSERVERNAME];Initial
Catalog=[SQLDATABASENAME];Integrated Security=True
ElementPath=
//configuration/appSettings/[EMAIL PROTECTED]'ConnectionString'[\]]
Sequence=10/
I can't figure out how do I make it so if the *add* element with
*key*attribute matching the path is missing, it will create it, and it will
set
the value for the attribute provided by *Name* (in this case *value*) to
the given value. I thought using *createValue* instead of *setValue* will
do the trick but I get the same error when the line *add
key=ConnectionString value=server=localhost;Trusted_Connection=yes;
database=PRSDB/* is missing.
Thanks,
--
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now http://get.splunk.com/
--
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now http://get.splunk.com/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now http://get.splunk.com/___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users