To get the list of installed software programs in a machine use this code:

RegistryKey rk = RegistryKey.OpenRemoteBaseKey(RegistryHive.LocalMachine, "pvn");
RegistryKey rkprograms = rk.OpenSubKey(@"SoftwareMicrosoftWindowsCurrentVersionUninstall");
foreach (string s in rkprograms.GetSubKeyNames())
{
listBox1.Items.Add(s);
}

Namespace: Microsoft.Win32

VN:F [1.1.6_502]
Rating: 1.0/5 (2 votes cast)
Share:
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • DotNetKicks
  • LinkedIn
  • Live
  • MySpace
  • StumbleUpon
  • Technorati

Related posts:

  1. Get list of installed softwares with Managed C++
  2. Get list of WinForms Controls from an assembly
  3. Visual SourceSafe Programming
  4. Populate listbox in a thread in .net
  5. Get Environment Variables