views:

62

answers:

2

I would like to create an uninstall file for my windows application but I am having a difficult time finding information on them. Could sombody breifly explain the workings of a uninstall file and/or provide me with a link to a walkthrough.

vs2008,c#, .net

A: 

Visual Studio can handle installation and uninstallation for you:
- Google : Creating Visual Studio 2008 Installer

http://flatlinerdoa.spaces.live.com/blog/cns!17124D03A9A052B0!412.entry

http://www.devx.com/vb2themax/Article/19893

Dems
+1  A: 

If you create an installer for your app using a visual studio installer project, you get the uninstaller with it. This works the same way with the NullSoft installer and WiX. The way this works is the MSI file (installer file) is not an executable, but rather a database file packaged with your application files, and it tells windows where to put the files. When Windows installs your app, it logs what it does, and so when it uninstalls, it undoes what is in the log. It's actually a lot more complicated than that, but basically that's how it works.

NullSoft and WiX are way better than the basic visual studio installer project, which is difficult and very cryptic, so try to use one of those if you can.

dan
I have created the install package...but an uninstaller file or link never appeared...are you saying this happens by default?
Brad
@Brad The uninstaller is not a separate thing. An entry will be created in Add/Remove programs when you install, and you can use that to uninstall. Also, you can right click on the MSI file and select UnInstall.
dan