错误消息:MSI安装程序中处于提交阶段的1001 [英] Error Message : 1001 in commit phase in MSI Installer

查看:271
本文介绍了错误消息:MSI安装程序中处于提交阶段的1001的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

海,

我正在从事Web安装项目.在这里,我正在使用自定义操作.在Installer类中
我正在使用

Hai,

I am working on Web Setup project. Here I am using custom action. In Installer class
I am using

protected override Install(IDictionary savedServer) { 
base.Install(savedServer);
frmShow f=new frmShow();
f.ShowDialog();
}.


所以在这里,我从安装程序类中调用我的frmShow Windows窗体.在我的frmShow表单中
我有取消按钮.当我单击取消"按钮时,安装应回滚.

在提交阶段,我正在使用


So here i am calling my frmShow windows form from my Installer class. In my frmShow form
I have cancel button. When I am clicking Cancel button Install should be rollback.

In commit phase i am using

throw new InstallException("My Message");


现在的问题是,当我单击取消"按钮时,我会收到错误消息.
但这还包括其他一些信息.我收到错误消息是
错误1001:在安装的提交阶段发生了异常.该异常将被忽略,安装将继续.但是,安装完成后,应用程序可能无法正常运行.我的消息.

在这里,我不想显示此消息.我只想显示我给出的错误消息.


What is the problem now is, I will get the error message when I am clicking "Cancel" button.
But it is including some more additional message. I am getting the error message is
"Error 1001: An exception occured during commit phase of the installation. This exception will be ignored and installation will continue. However, the application might not function correctly after the installation is complete. My Message.

Here i don''t want to show this message. Just i want to display only what i have given my error message.

Please guide me how to do?

推荐答案

很奇怪,放入Google时,代码不会在任何地方显示.
Oddly enough that code does not show up anywhere when put into Google.


这篇关于错误消息:MSI安装程序中处于提交阶段的1001的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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