Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > I don't understand how stop my installer Class on Cancel_Button Clicking
 

I don't understand how stop my installer Class on Cancel_Button Clicking

hi,
first, sorry for my english�
I have made an Installer Class, it works, but my trouble is when the user want to stop the installation, it doesn’t stop�I have a message, but the installation goes on.
I have made method override for “RollBack�, but the programm doesn’t get in on clicking Cancel_Button.
How can I made for stopping or calling the rollback method, when the Cancel_Button is clicking?
thanks

Geof75  Tuesday, May 06, 2008 2:39 PM

Hi,

The way is to throw out an installation exception which will triggers the RollBack method. Here are two similiar posts, hope them help~

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2158650&SiteID=1

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1382390&SiteID=1

Regards,

Jacob

Jacob Sui - MSFT  Monday, May 12, 2008 2:35 AM

Hi,

The way is to throw out an installation exception which will triggers the RollBack method. Here are two similiar posts, hope them help~

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2158650&SiteID=1

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1382390&SiteID=1

Regards,

Jacob

Jacob Sui - MSFT  Monday, May 12, 2008 2:35 AM

You can use google to search for other answers

Custom Search

More Threads

• Moving Hosting location of a Deployed Application
• How to the whole install Rollback in custom installer?
• Remote Debugging in ClickOnce Application
• Exception occurred while initializing the installation: System.BadImageFormatException: The format of the file '<myfilename> is invalid..
• Adding MMC 3.0 Snap-in to setup
• creating an istallation package of a project
• Custom Folder Deployment
• Referenced Assembly Error???
• Setup project removes com reference
• Multiple download of the same assembly