Classification: Public I am using a C# dll and I can't seem to find info on how to use MsiProcessMessage() in C#
-----Original Message----- From: Phil Wilson [mailto:phil.wil...@mvps.org] Sent: March-14-13 10:26 AM To: 'General discussion for Windows Installer XML toolset.' Subject: Re: [WiX-users] Any ideas on how to solve MessageBox focus, can be lost (using Custom Action DLL) You shouldn't use MessageBox. MsiProcessMessage() is the right way, typically with INSTALLMESSAGE_USER. Phil -----Original Message----- From: StevenOgilvie [mailto:sogil...@msn.com] Sent: Wednesday, March 13, 2013 12:05 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Any ideas on how to solve MessageBox focus, can be lost (using Custom Action DLL) Hi all, I have a Custom Action DLL (C#) Within the Welcome page to the "ready to install" page I have been able to populate a MSI Property for any error messages/exceptions that are caused by the Custom Action calls.. i.e. At beginning of the Custom Action method: SetSessionProperty(session, "CUSTOM_ACTION_ERROR", "1"); within the Catch of the exception: SetSessionProperty(session, "CUSTOM_ACTION_ERROR", "0"); SetSessionProperty(session, "CUSTOM_ACTION_ERROR_MESSAGE","Message for the generic error dialog" + ex.message); then in the custom dialog WXS file I check when user select Next to see if the CUSTOM_ACTION_ERROR is 0, and then spawn the generic error dialog with the CUSTOM_ACTION_ERROR_MESSAGE This works great, during that time frame, but when the Progress dialog happens I can't do the same thing since I get an error within the custom action dll that "Cannot access session details from a non-immediate custom action" Does anyone know how I can pass along info back to the MSI during the Progress dialog or how to make the MessageBox modal to the MSI? thanks, Steve -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Any-ideas-on-h ow-to-solve-MessageBox-focus-can-be-lost-using-Custom-Action-DLL-tp7584319.h tml Sent from the wix-users mailing list archive at Nabble.com. ---------------------------------------------------------------------------- -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users This message has been marked as Public by Steven Ogilvie. The above classification labels were added to the message by TITUS Message Classification. Visit www.titus.com for more information. ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users