I need to check if msdia100.dll is registered on a computer system that I\'m running in order to register the dll with the command regsvr32.exe. How can I do th
Verify if key exists using Microsoft.Win32.RegistryKey
var key = Microsoft.Win32.RegistryKey.OpenBaseKey(
Microsoft.Win32.RegistryHive.ClassesRoot,
Microsoft.Win32.RegistryView.Default)
.OpenSubKey("Interface")
//replace with your COM object GUID
.OpenSubKey("{a3560000-0000-0000-c63b3-000000cbadf0000}");
return key != null;