And it's the "right" way because session.Message shouldn't display a modal 
dialog if you are running in a silent mode.

-----Original Message-----
From: Steven Ogilvie [mailto:steven.ogil...@titus.com] 
Sent: Monday, March 25, 2013 3:43 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
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

------------------------------------------------------------------------------
Own the Future-Intel® Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game 
on Steam. $5K grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to