日期:2014-05-17 浏览次数:21049 次
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");
}
}
RegistryKey regkey = Registry.LocalMachine;
install = regkey.OpenSubKey("Software\\公司名\\软件名").GetValue("路径").ToString();