WIX安装程序。在installFinalize之后排序的自定义操作的回滚自定义操作 [英] WIX Installer. Rollback custom action for a custom action sequenced after installFinalize

查看:348
本文介绍了WIX安装程序。在installFinalize之后排序的自定义操作的回滚自定义操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的安装程序中有一些自定义操作。这些顺序在InstallFinalize操作之后进行。

I have some custom actions in my installer. These are sequenced after InstallFinalize action.

我需要对这些自定义操作实施回滚。

I need to implement rollback for these custom actions.

我读过,我只能对在InstallInitialize和InstallFinalize之间排序的自定义操作实施回滚。

As Far as i read, I can only implement rollback for custom actions sequenced between InstallInitialize and InstallFinalize.

有什么办法吗?

推荐答案

正如您所说,回滚仅适用于安装的事务部分,介于InstallInitialize和InstallFinalize之间。那就是安装事务,并且在这些边界之外没有回滚。如果您在InstallFinalize之后执行某些操作失败,则为时已晚-安装已结束。如前所述,如果要回滚,请不要将您的CA放在那儿。

As you say, rollback applies only to the transaction part of the installation, which is between InstallInitialize and InstallFinalize. That is the install transaction and there is no rollback outside these boundaries. If you do something after InstallFinalize that fails, it's too late - the install is over. As has been said, don't put your CA there if you want rollback.

这篇关于WIX安装程序。在installFinalize之后排序的自定义操作的回滚自定义操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆