Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted

1 solution

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[^]
 
Share this answer
 
Comments
markand911 16-Aug-10 0:57am    
Thanx Abhishek for this link.
I read it but i didnt find any solution.
I need to call a form during the commit phase of the installation.
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.
Abhishek Sur 18-Aug-10 16:18pm    
Did you tried Custom installation forms ?

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