How can I search for specific value in the registry keys?
For example I want to search for XXX in
HKEY_CLASSES_ROOT\\Installer\\Products
In case you don't want to take a dependency on LogParser (as powerful as it is): I would take a look at the Microsoft.Win32.RegistryKey
class (MSDN). Use OpenSubKey
to open up HKEY_CLASSES_ROOT\Installer\Products, and then call GetSubKeyNames
to, well, get the names of the subkeys.
Open up each of those in turn, call GetValue
for the value you're interested in (ProductName, I guess) and compare the result to what you're looking for.