Please try the following code, it will work:
 获取本机已安装的软件列表C#/VB.NET(Get the list of installed software in local pc) 
 getSoftwareList()   
  {   
  Microsoft.Win32.RegistryKey rk = Microsoft.Win32.Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall");   
    
  String[] names 
= rk.GetSubKeyNames();   
    
  
foreach(String s in names)     
  {   
      textbox1.Text
+=(s+"\r\n");
  }   
  }
  
 getSoftwareList()
    Dim rk As Microsoft.Win32.RegistryKey = Microsoft.Win32.Registry.LocalMachine.OpenSubKey("SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall")     
    
Dim names As String() = rk.GetSubKeyNames     
    
For Each s As String In names     
      textbox1.Text
&=s+vbCtrf;  
    
Next     
  
End   Sub

 

http://forums.asp.net/t/1306676.aspx

 

相关文章:

  • 2021-08-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-06
猜你喜欢
  • 2021-09-07
  • 2022-12-23
  • 2021-12-08
  • 2022-01-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案