How can I create a shortcut to uninstall MyApplication using the Visual Studio Installer?
- by Coder7862396
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?