Application Uninstaller

G

Guest

Hello All,

I have recently developed a small application with VB.net.
What I wish to do is to add an uninstaller to the application that the user can use
to uninstall my application instead of having to use the windows control panel.
Can someone please show me how to do this iin VB.net?

Thanks,

Mark
 
G

Guest

Microsoft smiles upon those who use their Windows Installer service and Add/Remove panel. You can do a VS.NET Setup project pretty easily for a small app.
Otherwise it is a matter of having another .exe (possibly .inf) that deletes the installed files.
 
E

Elizabeth Newman [MS]

If you are using a VS setup project to install your application, use the following steps to create a link to unistall your application.

1. In your setup project's directory, create a new uninstall.bat file.
2. In your Setup project, copy the ProductCode property (something like [12345678-1234-1234-1234-123412341234])
3. Edit the uninstall.bat so that it has one line that says:
Msiexec /x [insert product code here]
4. Add the uninstall.bat to your setup project's application folder.
5. Right-click on the uninstall.bat to create a shortcut, and then put it in the Start menu folder you want it in (in the setup project).
6. Rename the Shortcut to something like "Uninstall MyApplication"

Hope this helps,
Elizabeth Newman

--------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top