I am writing an installer for my web app and I struggle with the uninstaller part. Despite the fact that I created a custom action on Uninstall in my Application Setup Project, the InstallerClass is set to true, the method:
public override void Uninstall(IDictionary savedState)
{
//MessageBox.Show("Attach debugger!", "Viper.Setup");
Cleanup();
base.Uninstall(savedState);
}
on the installer class doesn't seem to be called. Any ideas what could be the reason?
EDIT: I also noticed that it not only doesn't run the Installer, but also doesn't delete my main dll file. To make it worse, when I install a new version after uninstalling the previous one, this dll is still the old one (even though installation and uninstallation were successful)
Got the same issue. Read the answers here, but at first sight misunderstood the helpful answer from dynaclips.
So here to make it more clear, screenshots...
And finally here the same overrides but in VB.net