Unistall MFC app - Need to cleanup registry on uninstall
Posted on 2009-07-02
One of my Win32/MFC apps stores some config data in the registry, but this is done during the first application run (after the install from the cab). So when I remove by normal Uninstall or Remove Programs, the registry values stay. My app creates the values using SetRegistryKey(_T("mycompany")) plus the standard Read/WriteProfile* methods.
What are my options? I do not want a special utility or function for the user to use, I want it automated for cleanup.
I guess I could create the registry settings in the installer somehow, would that then cause the settings to also be removed?
I am using Visual Studio 2008 and the standard Smart Device Cab project. Windows Mobile 5 and 6.
Looking for some specifics here, not vague direction.