开发者

WIX - Run custom action on installation cancellation

开发者 https://www.devze.com 2022-12-27 12:09 出处:网络
I\'m wirintg an installer using WIX and I need to execute a custom action when a user press the \"cancel\" button.

I'm wirintg an installer using WIX and I need to execute a custom action when a user press the "cancel" button.

I've created a custom action but I don't seem to find where to use that action.

开发者_运维问答

Any ideas how can I do that?


Try something like:

<Custom Action="MyAction" OnExit="cancel">1</Custom>


OnExit="cancel" may fail if standard WIX UI is used (WIX assigns another action to "cancel" event). Action execution could be assigned to finish button in this case

<Publish Dialog="UserExit" Control="Finish" Event="DoAction" Value="MyAction">NOT Installed</Publish>
0

精彩评论

暂无评论...
验证码 换一张
取 消