Click here to Skip to main content
15,888,527 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

How can I create an uninstall package in a C# application. I would like the users to be able to uninstall my application by clicking a shortcut.

Regards,
Purnananda Behera.
Posted
Updated 3-Nov-11 4:25am
v2

Create a Setup Project in Visual Studio and this will include functionality to uninstall:

http://msdn.microsoft.com/en-us/library/19x10e5c.aspx[^]
 
Share this answer
 
Comments
Wayne Gaylard 3-Nov-11 10:26am    
Good Advice
lukeer 3-Nov-11 10:41am    
To add to jim lahey: setup projects are not supported under Express versions of Visual Studio.
BobJanova 3-Nov-11 12:29pm    
I think this actually doesn't provide an uninstall shortcut, does it? Only in Add/Remove Programs.
If you don't want to use VS's setup project, your uninstaller must do the opposite of what the installer does. Any installation software should provide an uninstaller which will know what files, registry keys etc it needs to kill.
 
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