If it's deferred I assume it's running from the execute sequence, not the UI.
This example shows how to use the progress bar during long running custom actions, but the interesting part for you is that MsiProcessMessage () returns cancel if the install has been canceled. This is a Dll call, right? And I assume that DTF managed CAs behave the same with the equivalent, session.message I believe. --------------- Phil Wilson On Wed, Apr 2, 2014 at 3:16 PM, Pavan Konduru <pavan.kond...@accelrys.com> wrote: > 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:mathew.skil...@aspect.com] > Sent: Wednesday, April 02, 2014 2:02 PM > To: General discussion for Windows Installer XML toolset. > (wix-users@lists.sourceforge.net) > 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 > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > > > ------------------------------------------------------------------------------ > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users