Reputation: 3468
The installer is created using a Visual Studio 2010 Setup project. The Setup project provides a way for developers to customize the UI during installation. Is there a way to do the same for uninstallation?
Upvotes: 1
Views: 221
Reputation: 6358
Add a project to your solution called (for example) PostUnInstall.
Right-click the setup project, select "Custom Actions".
Add a custom action to UnInstall, pointing to "PostInstall project output". Uncheck "Installer class" (very important, or it won't work).
At the end of the uninstall, your PostUnInstall will be executed.
Upvotes: 1