Why are my files not being removed during uninstallation?
There are four common reasons for why files may not be removed during uninstallation:
- The components to which these files belong are marked as permanent. (This is done through the Attributes column of the Component table.)
None of the components to which these files belong have component GUIDs. (The value for the component in the ComponentId column of the Component table is NULL). Components without GUIDs are not managed by Windows Installer.
If the keypath of the component has a shared DLL refcount, then the component will not be uninstalled.
If the component is installed in the system folder and at the time of uninstallation there is an external shared DLL refcount for any one file in the component, then the component will not be uninstalled.