如果自定义操作失败,则回滚安装[InstallFinalise之后] -Basic Msi -Installshield 2012 [英] RollBack Installation if custom action fails [After InstallFinalise] -Basic Msi -Installshield 2012

查看:162
本文介绍了如果自定义操作失败,则回滚安装[InstallFinalise之后] -Basic Msi -Installshield 2012的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 installshield 2012 spring professional 创建一个基本的msi安装程序,在这里,我有一个自定义对话框,可以从用户那里收集一些数据,我称之为自定义对话框dll操作在安装文件夹中创建一个数据库.

I am creating a basic msi installer using installshield 2012 spring professional , here i have a custom dialog to collect some data from the user based on which i call a custom dll action to create a database inside the installation folder .

我安排了一个dll自定义操作来运行 InstallFinalise 之后,我想检查dll的返回值,如果该值指示失败,则需要中止并回滚安装过程.

I have a scheduled a dll custom action to run After InstallFinalise , I want to check the return value from the dll and if the value indicates a failure i need to abort and rollback the installation process.

我设法捕获了错误并中止了安装,但是回滚是问题..现在安装中止了,但是文件已经创建了.如何使安装回滚?有可能..任何想法吗?

I have managed to catch the error and abort the installation but the issue is with the rollback .. Right now the installation aborts but the files are already created . How do i get the installation rolled back ? Is it possible .. Any ideas ??

推荐答案

在InstallFinalize之后无法回滚. InstallInitialize和InstallFinalize标记Windows Installer事务的边界.

It is impossible to rollback after InstallFinalize. InstallInitialize and InstallFinalize mark the boundries of the windows installer transaction.

我建议阅读和理解:

Windows Installer中自定义操作的安装阶段和脚本内执行选项

这篇关于如果自定义操作失败,则回滚安装[InstallFinalise之后] -Basic Msi -Installshield 2012的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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