Hi John, Could you supply me some example code? I tried the util:XmlConfig before, but without any luck.
Met vriendelijke groet, Alexander op de weegh Total Productivity tel.: +31-226335016 mob.: +31-620138301 -----Oorspronkelijk bericht----- Van: John Cooper [mailto:[email protected]] Verzonden: vrijdag 8 november 2013 15:00 Aan: General discussion about the WiX toolset. Onderwerp: Re: [WiX-users] Adding only missing xml elements Use util:XmlConfig. There's a VerifyPath attribute that will allow to verify whether a path already exists on "create" and only run if the path does not exist. I use it for a similar purpose to yours (only mine are for server elements). -- John Merryweather Cooper Build & Install Engineer -- ESA Jack Henry & Associates, Inc.(r) Shawnee Mission, KS 66227 Office: 913-341-3434 x791011 [email protected] www.jackhenry.com -----Original Message----- From: Alexander op de Weegh [mailto:[email protected]] Sent: Friday, November 8, 2013 1:33 AM To: [email protected] Subject: [WiX-users] Adding only missing xml elements Hi all, I am creating a merge module that (optionally) modifies the application's configuration file. Which file is to be changed is passed to the module through ConfigurationData elements. Because the merge module can be used in a number of applications, I cannot make assumptions on the content of the configuration file. What I would like to do is add information for a WCF client configuration, for example: <configuration> <system.serviceModel> <client> <endpoint name="SomeName" address="http://host/path" contract="IInterface" /> </client> </system.serviceModel> </configuration> Now, the application might have already have content in its configration file. For example, the <system.serviceModel> element might already be there (or not!). Even more, there might already be an endpoint element with the required contract attribute. How can I make sure my model only adds the missing elements? Kind regards, Alexander op de Weegh ------------------------------------------------------------------------------ November Webinars for C, C++, Fortran Developers Accelerate application performance with scalable programming models. Explore techniques for threading, error checking, porting, and tuning. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wix-users NOTICE: This electronic mail message and any files transmitted with it are intended exclusively for the individual or entity to which it is addressed. The message, together with any attachment, may contain confidential and/or privileged information. Any unauthorized review, use, printing, saving, copying, disclosure or distribution is strictly prohibited. If you have received this message in error, please immediately advise the sender by reply email and delete all copies. ------------------------------------------------------------------------------ November Webinars for C, C++, Fortran Developers Accelerate application performance with scalable programming models. Explore techniques for threading, error checking, porting, and tuning. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ November Webinars for C, C++, Fortran Developers Accelerate application performance with scalable programming models. Explore techniques for threading, error checking, porting, and tuning. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wix-users

