I have a tool that scans(parses) the registry for invalid entries and deletes them.
I looked for things that are considered as “invalid registry entries” and found many things that comes in the criteria, like following-
Missing shared dlls
Unused file extensions
class (Invalid or empty class) issues
My question is that how can I determine wheather an entry in a registry is invalid or not according to above criteria.
An example, every registered COM DLL have a relative registry entry. It may happen that the COM DLL is removed from disk but the registry entry still exists. So you take the registry entry and check if it points to the existing DLL, if not then this registry entry is invalid.