如何检查系统上是否安装了特定的Web浏览器?

问题描述:

如何检查系统上是否安装了特定的网页浏览器(chrome,firefox,opera)? (C ++ / Windows平台)。也许这可以在注册表中的某个地方进行检查?

How to check if specific web browser (chrome, firefox, opera) is installed on system? (C++/Windows platform). Maybe this can be check in somewhere in registry?

像安德烈所说,没有办法检测到所有的东西

Like Andrey says, there is no way to detect everything

您应该先查看浏览器特定的注册表项:

You should probably start off by looking for browser specific registry keys:

HKEY_LOCAL_MACHINE\SOFTWARE\Mozilla\Mozilla Firefox
HKEY_CURRENT_USER\Software\Opera Software

然后移动到

<HKEY_CURRENT_USER|HKEY_LOCAL_MACHINE>\SOFTWARE\Clients\StartMenuInternet

最后

and finally

HKEY_CLASSES_ROOT\HTTP and HKEY_CLASSES_ROOT\.htm[l]