[wix-users] Call Exit Dialog after a custom dialog

Christopher Painter chrpai at iswix.com
Wed May 23 10:53:47 PDT 2018


There are 3 dailogs with specific sequence numbers...  Success, Fail, Cancel.    From the UI sequence only Cancel  can be invoked.  You do this by publishing an EndDialog ControlEvent with the Exit agument.   This is like the cancel button on almost every dialog.


https://msdn.microsoft.com/en-us/library/windows/desktop/aa368362(v=vs.85).aspx

EndDialog ControlEvent (Windows) - msdn.microsoft.com<https://msdn.microsoft.com/en-us/library/windows/desktop/aa368362(v=vs.85).aspx>
msdn.microsoft.com
This event notifies the installer to remove a modal dialog box. In all cases the installer removes the present dialog box.







________________________________
From: wix-users <wix-users-bounces at lists.wixtoolset.org> on behalf of Ven H via wix-users <wix-users at lists.wixtoolset.org>
Sent: Wednesday, May 23, 2018 11:13 AM
To: WiX Toolset Users Mailing List
Cc: Ven H
Subject: [wix-users] Call Exit Dialog after a custom dialog

I have an MSI with a Custom Action that is called in InstallUISequence
before LaunchConditions. I am checking for some logic and setting a
property accordingly. Based on the value of this property, I am displaying
a message box using a custom dialog. As soon as this dialog is displayed, I
want the execution to end with an Exit Dialog, something like an upgrade
scenario which pops up a message in case a lower version is tried to be
installed. But in my case, message box shows up and on clicking OK, instead
of showing Exit dialog, it proceeds with the next execution window (Welcome
dialog). I am returning ActionResult.Success from the custom action,
otherwise, it doesn't even show my custom dialog. I am not using the
MessageBox.Show method to show the message because, I am not able to get my
custom text localized in my custom action. Can anyone please help?

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/



More information about the wix-users mailing list