一般情况下要知道的注册表位置
SoftwareMicrosoftWindowsCurrentVersionUninstall
要知道的根目录集合
List<RegistryKey> registryKeys = new List<RegistryKey>
{
Registry.ClassesRoot,
Registry.CurrentConfig,
Registry.CurrentUser,
Registry.LocalMachine,
Registry.PerformanceData,
Registry.Users
};
注册表要的信息
//获取软件名
string softwareName = registryKey2.GetValue("DisplayName", "").ToString();
//获取软件版本
string installLocation = registryKey2.GetValue("DisplayVersion", "").ToString();
//获取发布者
string publish = registryKey2.GetValue("Publisher", "").ToString();