How to find all the browsers installed on a machine

前端 未结 5 2133
粉色の甜心
粉色の甜心 2020-12-05 04:58

How can I find of all the browsers and their details that are installed on a machine.

5条回答
  •  误落风尘
    2020-12-05 05:58

    This solution seems to work for me:

    RegistryKey browserKeys;
    //on 64bit the browsers are in a different location
    browserKeys =   Registry.LocalMachine.OpenSubKey(@"SOFTWARE\WOW6432Node\Clients\StartMenuInternet");
    if (browserKeys == null)
        browserKeys = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Clients\StartMenuInternet");
        string[] browserNames = browserKeys.GetSubKeyNames();
    

    Enjoy coding! Chagbert.

提交回复
热议问题