In general the MsiSetExternalUI related stuff is available with a NET interop layer that wraps MsiExternalUIRecord. For example, you can arrange to handle FilesInuse events (search for ExecuteFilesInUseEventArgs) and display the dialog. Or search for BootstrapperApplication.ExecuteMsiMessage.
The MSI install must be completely silent for MsiProcessMessage to send its messages to nowhere or to an external UI handler. As much as we all like the convenience of wrappers that allow managed code to play in this environment or expand functionality with things like WcaErrorMessage there's always going to be some potential uncertainty about what's going on inside the handy black box. I imagine that three of the Win32 message types INSTALLMESSAGE_ERROR, INSTALLMESSAGE_FATALEXIT, and INSTALLMESSAGE_WARNING will map to separate events in the managed code, presumably with similar sounding names so people can do some mental mapping of what's going on, but maybe you're processing an error message when you should actually be processing a fatal error exit instead, something like that anyway. The only way to find out might be to process every event and log it, if you're not already doing so. --------------- Phil Wilson On Wed, May 14, 2014 at 5:36 PM, Phill Hogland <phogl...@rimage.com> wrote: > I have been following this thread and trying to figure out a similar issue > using WcaErrorMessage in my CA and trying to catch the error event and > display a message in my Burn mba. I did not know how similar this was to > your (Soren's) efforts, so I started another thread here: > http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Revisit-Displaying-custom-error-messages-if-deferred-CA-fails-td7594695.html > > In my caseo even though I tried to catch the error event in > ExecuteError(object sender, ErrorEventArgs e) the event was never raised and > the 'ugly message box dialog' was presented, which seems to be the doing of > Burn, since the message is 'Error5' in the Wix tools source. I am still > trying to find a solution to this issue. > > Phillip > > > > -- > View this message in context: > http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Re-Displaying-custom-error-messages-if-deferred-CA-fails-P-tp7594645p7594745.html > Sent from the wix-users mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE > Instantly run your Selenium tests across 300+ browser/OS combos. > Get unparalleled scalability from the best Selenium testing platform available > Simple to use. Nothing to install. Get started now for free." > http://p.sf.net/sfu/SauceLabs > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users