📅  最后修改于: 2022-03-11 14:49:10.605000             🧑  作者: Mango
// A 32-bit application on a 64-bit OS will be looking at
// HKLM\Software\Wow6432Node node by default.
// To read the 64-bit version of the key,
// you'll need to specify the RegistryView:
var hklm = RegistryKey.OpenBaseKey(
RegistryHive.LocalMachine, RegistryView.Registry64));
var key = hklm.OpenSubKey(
@"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"));