You can use perl with a module like XML::Simple to read in Web.Config. In the
case of XML::Simple, you'd then test for a tree node
$parent->{'ConnectStrings'}. If it doesn't exist, then you'd just add the node
to the tree and flush the tree to Web.Config. Other perl modules can do this
job slightly differently.
--
John M. Cooper
-----Original Message-----
From: siaj [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 11, 2008 9:29 AM
To: [email protected]
Subject: [WiX-users] Creating a XML Node in Config file
Hello,
I am new to Wix toolset. I am trying to create a Node in a Web.Config file
which looks like
<ConnectionStrings>
</ConnectionStrings>
The node should be created only is such a node "does not exists". If there
is already such node then it should not create a duplicate node.
Can anyone help me with a code snippet or guide me in a direction?
Thanks,
siaj
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users