How to find out from the Windows registry where IE is installed?

13,171

Solution 1

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\IEXPLORE.EXE

Solution 2

IE is included in Windows Features. Every windows operating system (XP and later) have IE installed by default. And the installation directory is always:

%PROGRAMFILES%\Internet Explorer
Share:
13,171
juckele
Author by

juckele

Senior developer on the JIRA team with Atlassian.

Updated on June 04, 2022

Comments

  • juckele
    juckele almost 2 years

    I can find out where Firefox is installed as follows; query this key to get the current version:

    HKEY_LOCAL_MACHINE\SOFTWARE\Mozilla\Mozilla Firefox
        CurrentVersion
    

    ... then query this key to get the installed path (where "nnn" is the version number obtained above):

    HKEY_LOCAL_MACHINE\SOFTWARE\Mozilla\Mozilla Firefox\nnn\Main
        Install Directory
    

    But I can't work out how to find where IE is installed. What key or keys will work on Windows XP, Windows Server 2003, and later?

  • Alex Jasmin
    Alex Jasmin over 13 years
    Is there any risk of this path being localized?
  • juckele
    juckele over 13 years
    Sorry, I'm after the installed location, not the version number.
  • juckele
    juckele over 13 years
    Works in Win 7 and Win XP and invulnerable to localisation issues.