[wix-users] session.Message in custom action called from Dialog?

Phil Wilson phil.wilson at mvps.org
Fri Sep 23 12:56:51 PDT 2016

Session.Message results in a call to MsiProcessMessage, which doesn't work
from a DoAction ControlEvent:


Phil W  

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of
Stephens, Rich
Sent: Friday, September 23, 2016 12:21 PM
To: wix-users at lists.wixtoolset.org
Subject: [wix-users] session.Message in custom action called from Dialog?

So, I am trying to validate my custom configuration dialog.

<Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17"
Default="yes" Text="Next"> <Publish Event="DoAction"
<Publish Event="NewDialog"

I am calling a c# custom action to do validation when the "Next" button is

Here's where I'm calling session.Message in my "ValidateConfigSettings"
custom action:

Record record = new Record();
record.FormatString = errMsg.ToString();
|(InstallMessage)System.Windows.Forms.MessageBoxIcon.Error |
(InstallMessage)System.Windows.Forms.MessageBoxButtons.OK, record);

Everything is working exactly as desired.  The dialog doesn't continue if
there's an error, etc, but... the message box doesn't appear.

Am I missing something?


WiX Toolset Users Mailing List provided by FireGiant

More information about the wix-users mailing list