Tue
19
Jun '07
To get the list of installed software programs in a machine use this code:
Namespace: Microsoft.Win32
RegistryKey rk = RegistryKey.OpenRemoteBaseKey(RegistryHive.LocalMachine, “pvn”);
RegistryKey rkprograms = rk.OpenSubKey(@“Software\Microsoft\Windows\CurrentVersion\Uninstall”);
foreach (string s in rkprograms.GetSubKeyNames())
{
listBox1.Items.Add(s);
}
Namespace: Microsoft.Win32

Leave a passing comment »