Chry Cheng
Chry Cheng

Reputation: 3468

UI for uninstall

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

Answers (1)

smirkingman
smirkingman

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

Related Questions