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 API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,443 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,383 questions
0 comments No comments
{count} vote

Accepted answer
  1. Tong Xu - MSFT 2,036 Reputation points Microsoft Vendor
    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 15,756 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,416 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