You can always add an action to the control and declare the action in the same
dialog.
<Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17"
Cancel="yes" Text="!(loc.WixUICancel)">
<Publish Event="DoAction" Value="someaction">1</Publish>
<Publish Event="SpawnDialog" Value="CancelDlg">1</Publish>
</Control>
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Fragment>
<CustomAction Id=" someaction " BinaryKey="CustomAction" DllEntry="
someaction " Return="check" Execute='immediate' Impersonate='no'/>
--Pavan
-----Original Message-----
From: Skildum, Mat [mailto:[email protected]]
Sent: Wednesday, April 02, 2014 2:02 PM
To: General discussion for Windows Installer XML toolset.
([email protected])
Subject: [WiX-users] Handling the cancel button in a deferred custom action
I am trying to find examples that would allow me to catch and handle the event
sent when a user hits the cancel button while a lengthy deferred custom action
is running. For the most part I ignore this situation as most of my custom
actions execute fairly quickly and the user does not see any major delay.
I am starting to have a need for this support and have not been able to find
examples I can utilize.
Any help would be great,
MAT SKILDUM
This email (including any attachments) is proprietary to Aspect Software, Inc.
and may contain information that is confidential. If you have received this
message in error, please do not read, copy or forward this message. Please
notify the sender immediately, delete it from your system and destroy any
copies. You may not further disclose or distribute this email or its
attachments.
------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users