需要回滚安装 [英] need to rollback installation

查看:76
本文介绍了需要回滚安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在C#的安装提交阶段调用一个表单.
因此,我在提交阶段添加了项目的主要输出.
现在,如果发生任何错误,我想从我的项目表单中回滚安装.
我该怎么做.

I need to call a form during the commit phase of the installation in C#.
So i add a primary output of my project in the commit phase.
Now if any error occurs i want to do rollback of the installation from my project''s form.
How can i do this.

推荐答案

在回滚阶段也添加项目输出.
最好使用Installer类来处理此问题,该类提供Install和Uninstall接口.

看到这个:
http://msdn.microsoft.com/en-us/library/d9k65z2d.aspx [ ^ ]
Add Project output in Rollback phase as well.
It is bettter to handle this using Installer class, which provides both Install and Uninstall interfaces.

See this :
http://msdn.microsoft.com/en-us/library/d9k65z2d.aspx[^]


这篇关于需要回滚安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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