We have an production application that is deployed using Visual Studio\'s built-in ClickOnce deployment tool. I am writing a batch file to uninstall the application:
Don't over complicate it & keep it simple - this works on both Windows XP & 7
:
Go to Add/Remove Programs
and make note of the exact name of the program.
Open Notepad
and paste the text below:
wmic product where name="PROGRAM NAME" uninstall
but make sure to type the exact name of the program in between the quotation marks and chose Save As /All Files
and name the file Uninstall.bat
and then test it out to make sure it works.