DTF does support (quite well, in fact) what you are asking, and yes, samples are lacking. In fact, DTF was started as a wrapper/framework around the MSI APIs, and support to "safely" enable custom actions was the key to add it to the WiX toolset.
If no one else chimes in soon, I have some code I could sanitize and show, but it may be a few days before I can get to it. The Microsoft.Deployment.WindowsInstaller.Installer.SetExternalUI methods (pick your preferred override) is how you register your code to be called during an installation to get progress updates and actiondata, etc. Hope that gets you started. -----Original Message----- From: ALive [mailto:aliv...@gmail.com] Sent: Tuesday, July 27, 2010 10:58 AM To: 'General discussion for Windows Installer XML toolset.' Subject: [WiX-users] How to run msi installation from C# code and get it's installation process Hi, WiX community! A question, the professional answer for I was unable to find through MSI and installer forums. 1) First part. I need to run an installation (*.msi file(s)) via .NET (C#) code. What is the best framework (if any exist) or maybe some wrapper classes (above MSI API) you could advise? Could DTF solve this task? I've found Installer class with lots of static methods that can run installation process along with patches. But I feel the lack of some examples inside DTF documentation. If I'm not mistaken it is mostly used inside custom actions (correct me if I'm wrong). 2) If DTF is what I need, then comes the second part of a question. How can I get some events firing about the installation process (for the progress bar) and the text messages with the current action (usually the description line below the progress bar). I know this is definitely could be done somehow. Of course I can use plain MSI API (wrap it with .NET), but maybe there's a .NET solution for this? Any advice would be valuable! Thanks in advance! ---------------------------------------------------------------------------- -- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://ad.doubleclick.net/clk;226879339;13503038;l? http://clk.atdmt.com/CRS/go/247765532/direct/01/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://ad.doubleclick.net/clk;226879339;13503038;l? http://clk.atdmt.com/CRS/go/247765532/direct/01/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users