Thursday, May 1, 2008

Removing InstallState files after uninstallation

Once everything from the previous post is working, one potential problem that can be encountered is that INSTALLSTATE files are not removed after uninstallation of a .NET Framework 2.0-based application. This is an issue related to custom actions and the following article from Microsoft gives a very good description of the exact problem:

An .installstate file is not removed after you uninstall a .NET Framework 2.0-based application

Since the Workarounds suggested in the article didn't make much sense to me, I have found another way to solve it.

the same custom action (that was initially used for Install custom action) to the Uninstall custom action.

Then, Override the Uninstall method in the installer class and make sure it calls the base Uninstall method.

No comments: