How can I create a shortcut to uninstall MyApplication using the Visual Studio Installer?

Posted by Coder7862396 on Stack Overflow See other posts from Stack Overflow or by Coder7862396
Published on 2010-05-23T09:52:40Z Indexed on 2010/05/23 10:00 UTC
Read the original article Hit count: 266

I have created an installer for MyApplication using the Visual Studio Installer (VSI) Setup Project. I would like to create a shortcut in the user's Start Menu to uninstall MyApplication (instead of having to go through the Add/Remove Programs control panel).

I cannot simply create a batch/script file to run the command "msiexec /uninstall {MyGUID}" because, although it does succeed in running the uninstaller, when the uninstall completes the program folder (wherever the user has chosen to install the app) does not get deleted. It stays empty.

How can I create a shortcut that can uninstall the program but not leave behind an empty program folder?

© Stack Overflow or respective owner

Related posts about visual-studio

Related posts about deployment