Reader Level:
Articles

Making a uninstall shortcut with Visual studio setup project

By Nipun Tomar on February 05, 2009
In this Article you will learn how to Make a uninstall shortcut with Visual studio setup project.
  • 0
  • 0
  • 40684

A simple solution that I use:

Make a batch file (Uninstall.bat) with the following call
@echo off
msiexec /x {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}
(Path depends of your Windows version, check where your system32 folder is located)
That last part is the product code which you can find in the properties of your setup project.

  1. Add the Uninstall.bat in application folder

    right click on Application Folder > Add > File > Uninstall.bat



     
  2. Right click on "User's Programs Menu" and select "Create Shortcut to User's Programs Menu".


     
  3. Rename it to Uninstall
     
  4. Change the target of Uninstall shortcut to the Uninstall.bat.

    Uninstall shortcut > Properties Window > Target > Application Folder > Uninstall.bat


     
  5. Rebuild the project and you are done.

Article Extensions
Contents added by z z on Jul 01, 2010
HOW TO HIDE THE COMMAND WINDOW THAT APPEARS WHILE UNINSTALLING THE PROJECT.
Nipun Tomar

Nipun is competent and experienced project leader, with 9 years of experience in managing multi-disciplinary teams of varying sizes and complex programs of work. Has the ability to build strong relationships wit... Read more

COMMENT USING

Trending up