一般情况下要知道的注册表位置

Software\Microsoft\Windows\CurrentVersion\Uninstall

要知道的根目录集合

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();

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-20
  • 2022-12-23
  • 2021-10-02
猜你喜欢
  • 2021-09-01
  • 2021-11-15
  • 2021-08-27
  • 2021-11-18
  • 2022-12-23
  • 2021-09-10
  • 2022-12-23
相关资源
相似解决方案