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安装");
}

posted @ 2019-05-07 14:44  何华荣  阅读(491)  评论(0)    收藏  举报