Click here to Skip to main content
15,943,093 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hai,

I am working on Web Setup project. Here I am using custom action. In Installer class
I am using
C#
protected override Install(IDictionary savedServer) { 
base.Install(savedServer);
frmShow f=new frmShow();
f.ShowDialog();
}.

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
C#
throw new InstallException("My Message");

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?
Posted
Updated 12-Jan-12 23:04pm
v2

1 solution

Oddly enough that code does not show up anywhere when put into Google.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900