Visual Studio: Create An Uninstaller Shortcut In Your Installer Wizard
Posted by tech on
February 6, 2009
Creating a setup wizard within Visual Studio does not include an uninstall shortcut with it. The
easiest and quickest way would be to do the following. This post assumes you already know how to create a setup wizard.
Create a batch file (say name it uninstall.bat) with the contents below
@echo off
msiexec /x {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}
Where {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} is the product code that is found in your setup project’s product code. Make sure you include the brackets as well.
Under Application Folder, right click, choose ADD, then FILE and browser to where uninstall.bat is located. Under User’s Program Menu, right click and create a shortcut. Then browser to Application Folder and choose the uninstall.bat file that you just added.
Rebuild your project and voila! Your uninstall shortcut is now included when the setup wizard installs your application.
Found this post useful? Donations appreciated. Every little $ helps.








July 8th, 2009 at 10:19 pm
thanks for this great read i enjoyed it
July 8th, 2009 at 10:38 pm
you are welcome
August 10th, 2009 at 7:07 am
Thnks man that was great
August 10th, 2009 at 7:12 am
welcome dude
December 10th, 2009 at 2:52 am
Simple & just what I needed.
Thanks