Click here to Skip to main content
16,019,983 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to perform some checking before my application gets uninstall.
How can i do it?
Is there any event like Application_Uninstall.
I am working on C#3.5 windows application.

Please help.
Thanks.
Posted
Comments
[no name] 23-Sep-13 6:30am    
You would need to check whatever installation creation package you are using to see what event it supports. Applications do not have installation or uninstallation events.
Sergey Alexandrovich Kryukov 23-Sep-13 9:49am    
It depends on what installation framework you are using...
—SA
RhishikeshLathe 24-Sep-13 2:33am    
i am using inno installation

1 solution

In case if you are using VS setup & Deployment, you can use OnBeforeUninstall to write your custom code. Before calling your custom code, call the base.OnBeforeUninstall(savedState) so that registered delegates receive the event thereby allowing your custom code to execute before the uninstall.

Hope it helps.
 
Share this answer
 
Comments
RhishikeshLathe 24-Sep-13 2:34am    
Thanks Sir,
But i am using inno setup for deployment.

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