C# 判断是否安装了某插件

Microsoft.Win32.RegistryKey keyroot = Microsoft.Win32.Registry.ClassesRoot;
string flashkey = @"CLSID{2105C259-1E0C-4534-8141-A753534CB4CA}";
Microsoft.Win32.RegistryKey rkFlash = keyroot.OpenSubKey(flashkey);
if (rkFlash != null)
{
MessageBox.Show("已安装");

}
else
{
MessageBox.Show("no安装");
}

原文地址:https://www.cnblogs.com/hehuarong/p/10825361.html