C#根据注册表获取本机计算机软件列表

        private void 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");
                Response.Write(s + "<br/>"); 
            }
        }
原文地址:https://www.cnblogs.com/cnaspnet/p/1496261.html