注册表判断是否安装微软Edge浏览器

自己摸索的,注册表判断是否安装微软Edge浏览器:

 bool checkInstalledMsEdge()
        {
            try
            {
               
                using(var ieKey = Registry.LocalMachine.OpenSubKey(@"SOFTWAREMicrosoftWindowsCurrentVersionApp Pathsmsedge.exe",
                    RegistryKeyPermissionCheck.ReadSubTree,
                System.Security.AccessControl.RegistryRights.QueryValues))
                {
                    var s =""+ ieKey.GetValue("Path");
                    return !string.IsNullOrEmpty(s);
                }
            }
            catch
            {
                
            }
            return false;


        }

  

fffffffffffffffff
test red font.
原文地址:https://www.cnblogs.com/wgscd/p/14613700.html