mfcregistryopera

Detecting if the Opera Browser is installed using MFC


I have written some code which reads the registry to find out which browsers are installed. It gets the browser name and path.

I know that it does not include Microsoft Edge yet. But my question concerns Opera. For some reason it is not listed.

The registry key is:

HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Clients\StartMenuInternet

My PC has the following listed:

Installed Browsers

So:

  1. How do we find out if the Opera Browser is installed?
  2. How do we find out what the path is to the Opera Browser?

Solution

  • Simple:

    HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\opera.exe