Open32Or64BitSoftwareKey() public static method

public static Open32Or64BitSoftwareKey ( string name ) : RegistryKey
name string
return Microsoft.Win32.RegistryKey
示例#1
0
 public bool IsInstalled()
 {
     try
     {
         var key = RegistryExtension.Open32Or64BitSoftwareKey("Microsoft\\Windows\\CurrentVersion\\Uninstall\\{f65db027-aff3-4070-886a-0d87064aabb1}");
         return((int)key.GetValue("Installed", false) == 1);
     }
     catch (FailedToOpenKey)
     {
         return(false);
     }
 }
示例#2
0
 public bool IsInstalled()
 {
     try
     {
         var key = RegistryExtension.Open32Or64BitSoftwareKey("Microsoft\\Windows\\CurrentVersion\\Uninstall\\{050d4fc8-5d48-4b8f-8972-47c82c46020f}");
         return((int)key.GetValue("Installed", false) == 1);
     }
     catch (FailedToOpenKey)
     {
         return(false);
     }
 }
 public bool IsInstalled()
 {
     try
     {
         var key = RegistryExtension.Open32Or64BitSoftwareKey("Microsoft\\VisualStudio\\11.0\\VC\\Runtimes\\x86");
         return((int)key.GetValue("Installed", false) == 1);
     }
     catch (FailedToOpenKey)
     {
         return(false);
     }
 }