Cleaning up the registry
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
I have written a program that stores data in the registry. Now I need to write an uninstaller. How do I clean up the registry programmatically? My program starts with code like: SetRegistryKey("Progname"); AfxGetApp()->WriteProfileString("section", "Filename", FileName); which stores a filename for future use. How do I reverse the effects of SetRegistryKey and/or WriteProfileString to leave the registry as it was originally? Shraddhan