Let’s say you have an install program that creates some registry entries. Normally, when you do an uninstall, the registry entries will be deleted from the registry. That is usually the behavior you want.
However, what you if want to prevent registry entries from being during the uninstall? It is possible. Here’s how.
You simply Disable the logging before the registry entries are made, then Enable logging after the changes. Here’s an example:
Disable(LOGGING);
// registry creation statement 1
// registry creation statement 2
// registry creation statement 3
// ….and so on….
Enable(LOGGING);
