How to detect if Internet Explorer is available

Cdm77 26 Reputation points
2022-10-06T09:13:38.15+00:00

Hi,
I'm developing a desktop application that needs to run Internet Explorer to open particular addresses. So I have to detect if IE is available correctly. By code I can detect the os version: on Windows 11, I know that IE is not available but on Windows 10 or earlier, IE may be uninstalled. So to verify this I'm reading the key: "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\IEXPLORE.EXE"
Is the right way? Is there a smarted method? What about rights? Can any user access that registry path?
Thanks in advance.

Windows development Windows API - Win32
Windows for business Windows Client for IT Pros User experience Other
0 comments No comments
{count} vote

Accepted answer
  1. Tong Xu - MSFT 2,546 Reputation points Microsoft External Staff
    2022-10-07T06:36:49.293+00:00

    As mentioned above, Windows 11 has stopped using the IE explorer.
    The easiest way to do this is to check if there are folders C:\ProgramFiles(x86)\InternetExplorer or ProgramFiles\InternetExplorer.
    And the registry can only be accessed and obtained with native administrator privileges. If IE exists, you can open it using the way you get Pid.

    1 person found this answer helpful.
    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. S.Sengupta 24,476 Reputation points MVP
    2022-10-06T14:22:19.343+00:00

    Microsoft has removed Internet Explorer from Windows 11

    If you wish to actually open and use the Internet Explorer browser in Windows 11, do the following:

    Using Search, Open Internet Options
    Click open the Program tab
    Click on Manage Addons button
    In the next Manage Addons window, click on Learn more about toolbars and extensions
    Internet Explorer browser will launch.

    0 comments No comments

  2. Limitless Technology 39,916 Reputation points
    2022-10-10T07:15:45.33+00:00

    Hi,

    This registry key:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer contains the attribute Version with the IE version.

    Any user should be able to interrogate the registry path, they just wouldn't be able to edit it if they are a standard user.

    I hope this answers your question.

    ----------------------------------------------------------------------------------------------------------------------------------------------------

    --If the reply is helpful, please Upvote and Accept as answer--

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.