延迟 CA 的回滚 CA 会删除文件夹/清理残留物 - INSTALLSHIELD
要求是: 最后清理产品卸载期间剩余的所有注册表或文件夹。 由于它正在对系统进行更改,因此我编写了一个延迟自定义操作来删除该文件夹。 现在我如何为此编写回滚脚本,以便在出现问题并发生回滚时,这些已删除的文件夹会再次出现?可以这样做吗? 所有延迟 CA 都必须回滚 CA 吗?
Requirement is :
Cleaning up all the registry or folders remaining during uninstallation of the products at the end.
Since it is making changes to system , I have written a Deferred Custom Action that deletes the folder .
Now how do I write a rollback script to this , so that when there is issue and rollback takes place, these deleted folders comes up again ? Is it possible to do so ?
Is rollback CA must for all deferred CA?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的。可以编写回滚自定义操作,该操作将在失败时运行,但不必为每个延迟的 CA 编写。
在执行延迟的自定义操作之前,您必须先进行备份。如果发生故障,回滚自定义操作将从备份中复制并删除备份。如果成功,延迟 CA 应在成功返回代码时删除备份。
您可以按照以下步骤了解如何使用回滚CA。
https://www.revenera.com/blog/software-installation/i-take-it-all-back-using-windows-installer-msi-rollback-actions/
Yes. It's possible to write rollback custom action which will run in case of failure but it's not mandatory to write for each deferred CA.
You have to do a backup first before the deferred custom action. In case of failure, rollback custom action will copy from backup and delete the backup one. in case of success, deferred CA should delete the backup one on success return code.
You may follow below for how to use rollback CA.
https://www.revenera.com/blog/software-installation/i-take-it-all-back-using-windows-installer-msi-rollback-actions/