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();
}.
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");
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?