Home > DeveloperSection > Forums > How to get installed browser in my local machine to using registry
Anupam Mishra

Total Post:135

Posted on    January-20-2016 6:12 AM

 C# C#  .NET 

 1 Reply(s)
 401  View(s)
Rate this:
I want to programatically, retrieve how many browser installed in my computer.Please give me a solution using registry key.
thank you.

Anupam Mishra

Total Post:135

Posted on    January-20-2016 7:12 AM

All kind of system related information will be present in Registry. We are also open regedit, we may find various HKEY. For checking browser we go through this path:

" HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Clients\StartMenuInternet"

We can find many folders inside this location, in which the name of the folder will be encrypted. Those folders indicates the installed application in the current machine.

In each folder there will be many key and data pair of values. In that you can find DisplayName and DisplayVersion. 

Here, we using registry class to find how many browser installed in my client machine:

static void Main(string[] args)
            RegistryKey browserKeys;
           browserKeys = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\WOW6432Node\Clients\StartMenuInternet");
            if (browserKeys == null)
                browserKeys = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Clients\StartMenuInternet");
            string[] name = browserKeys.GetSubKeyNames();
            foreach (string item in name)
                string[] strsplit = item.Split(new[] { ".EXE", ".exe" }, StringSplitOptions.RemoveEmptyEntries);


Don't want to miss updates? Please click the below button!

Follow MindStick