I think it would be very interesting to have a CA that would execute an XSLT against an XML file. XSLT is a general-purpose language for transforming XML. It would be possible to express a whole slew of changes in a single XSLT script. Although XSLT is verbose, it's not as verbose as a bunch of XmlConfig elements ;) It would also be possible to conditionnally modify certain elements of the XML file (eg, "update the connection string, but only if it hasn't changed since installation").
Admittedly, this is a completely different route from your "xml diff" approach... would be useful though. Le 08-02-24 à 18:52, si a écrit : > Hello again, > >> And that's my only point -- nothing you mention requires dropping the >> existing WiX CAs, just tweaks to them. XmlConfig, for example, is >> definitely a low-level piece of functionality but it's entirely >> possible >> to build higher-level extensions on top of it. > > After chatting with Richard offlist, I'll go ahead and develop a .NET > console app which compares two xml files and generates > XmlFile/XmlConfig statements to produce a wxs file as the result. > > The app needs to ensure both xml files are well formed and schema > compatible, and optionally provide uninstall statements as well as > install statements. > > Can anyone think of anything else that would be useful to include? > >> But that's not going to happen unless we get focused feature requests >> (e.g., "XmlConfig is hard to use for scenario Q for reasons A,B,C"). >> One-off custom actions don't help anybody in the long run. > > Agreed. I'll post the source back to this list if I'm able to develop > a usable tool. That will give WiX developers at least a starting > point if they want to include in WiX itself. -- Paul Lalonde paullalonde at mac dot com "Il n'y a que les banques qui sont libres" -- Jean-Luc Godard ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users