Classification: Public Oops sorry should have read the chain... When calling MessageBox.Show(blah); it is not Modal to the MSI Using session.Message(InstallMessage.User Blah); is modal to the MSI
This worked for me and solved MessageBox not being modal to the MSI so I am happy with using this... Steve -----Original Message----- From: Steven Ogilvie [mailto:steven.ogil...@titus.com] Sent: March-25-13 4:30 PM 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) Classification: Public I use the Session Message, this is in C# I am not sure if you can use Session... This will create a message box that is Modal to the MSI catch (Exception ex) { WriteErrorLogInstall(session, "SomeMethod failed: ", ex, true); // this is a method I wrote to write to the msi log file if (session != null) { session.Message( InstallMessage.User + (int)MessageBoxIcon.Error + (int)MessageBoxButtons.OK, new Record { FormatString = "SomeMethod failed: " + ex.Message }); } return ActionResult.Failure; } -----Original Message----- From: gapearce [mailto:mr_gapea...@yahoo.com] Sent: March-25-13 4:06 PM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Any ideas on how to solve MessageBox focus, can be lost (using Custom Action DLL) Why is this *the right way*? Seems way more complicated - besides - how do I do that in C++? -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Any-ideas-on-how-to-solve-MessageBox-focus-can-be-lost-using-Custom-Action-DLL-tp7584319p7584612.html 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 This message has been marked as Public by Steven Ogilvie on March-25-13 4:30:08 PM. 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 This message has been marked as Public by Steven Ogilvie on March-25-13 4:42:40 PM. 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