NinethSense oWnZ mE!: Praveen’s drawing book

Choose a Topic:

Tue
19
Jun '07

Programatically get list of Installed Programs

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(@“Software\Microsoft\Windows\CurrentVersion\Uninstall”);
            foreach (string s in rkprograms.GetSubKeyNames())
            {
                listBox1.Items.Add(s);
            }



Namespace: Microsoft.Win32
The CodeProject Microsoft Developer Network Official ASP.NET Forums Microsoft .NET Framework Community Microsoft Most Valuable Professional Kidoos forums Microsoft Visual Studio Developer Home Professional Information Technology Solutions Microsoft Research Home Kerala Microsoft Users Group Community Website