[wix-devs] Custom action at cancel uninstallation

Denis Reinoso reinoso.denis at gmail.com
Thu Feb 23 04:57:15 PST 2017


Sorry I didn't notice that other list.

Regards!

2017-02-23 5:58 GMT-03:00 Blair Murri <osito at live.com>:

> This should be in the wix-users list, not on wix-devs. wix-devs is for
> development of the toolset itself.
>
> Blair Murri
>
> Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for
> Windows 10
>
> From: Denis Reinoso<mailto:reinoso.denis at gmail.com>
> Sent: Wednesday, February 22, 2017 11:30 AM
> To: wix-devs at lists.wixtoolset.org<mailto:wix-devs at lists.wixtoolset.org>
> Subject: [wix-devs] Custom action at cancel uninstallation
>
> Hello, my question is:
>
> How to define a custom action to execute when the cancel button (at
> uninstallation) is pressed in WiX Toolset?
>
> I have found that the cancel button should be defined like this:
>
>     <Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56"
> Height="17" Cancel="yes" Text="Cancel">
>         <Publish Event="SpawnDialog" Value="CancelButton"/>
>     </Control>
>
> And a publish event is defined to the custom action, which could be defined
> like:
>
>     <CustomAction Id="CancelButton" Execute="immediate"
> ExeCommand='Program.exe"   Return="ignore"/>
>
> An error shows up:  **Unresolved reference to symbol
> 'Dialog:CancelButton'**
>
> A Dialog element in WiX cannot have a custom action as child, so where
> should be defined that custom action?
>
> Two links with related information:
>
>  - [How to cancel an uninstallation using CancelDlg][1]
>  - [Custom Action as event][2]
>
>   [1]:
> http://windows-installer-xml-wix-toolset.687559.n2.nabble.
> com/How-to-cancel-an-installation-using-CancelDlg-td704211.html
>   [2]:
> http://windows-installer-xml-wix-toolset.687559.n2.nabble.
> com/Custom-action-as-Event-td689561.html
> --
>
> *Denis Reinoso*
> Computer Engineer
> ---------------------------------------------------
>
>
>
> *Cordoba, ArgentinaMobile: +54 - 351 - 786 1418(AR) Skype:  denis.reinoso*
> ____________________________________________________________________
> WiX Toolset Developer Mailing List provided by FireGiant
> http://www.firegiant.com/
>
> ____________________________________________________________________
> WiX Toolset Developer Mailing List provided by FireGiant
> http://www.firegiant.com/
>



-- 

*Denis Reinoso*
Computer Engineer
---------------------------------------------------



*Cordoba, ArgentinaMobile: +54 - 351 - 786 1418(AR) Skype:  denis.reinoso*


More information about the wix-devs mailing list