[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:
https://msdn.microsoft.com/en-us/library/windows/desktop/aa368322(v=vs.85).a
spx
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"
Value="ValidateConfigSettings">1</Publish>
<Publish Event="NewDialog"
Value="VerifyReadyDlg">CONFIGSETTINGSOK=1</Publish>
</Control>
I am calling a c# custom action to do validation when the "Next" button is
pushed.
Here's where I'm calling session.Message in my "ValidateConfigSettings"
custom action:
Record record = new Record();
record.FormatString = errMsg.ToString();
session.Message(InstallMessage.Error
|(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?
Rich
____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant
http://www.firegiant.com/
More information about the wix-users
mailing list