How to get the IE version number from the Windows registry?

34,819

Solution 1

Stumbled across this while trying to solve the same problem.

Andrew's answer from 2010 is correct, but since then, newer Internet Explorers (10 and 11) do not show their true version number in the registry value: 'Version'. Instead, it is recorded in the registry value: 'svcVersion'.

Solution 2

Reading this key using the "reg query" OS command:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer

... with this value:

Version

Returns a number like this:

8.0.7600.16385

Or returns errorCode 1 if that entry does not exist, which presumably indicates that IE is not installed.

Solution 3

In newer version IE 10 and 11 true version is recorded in value 'svcVersion' and value 'Version' contains at the beginning '9.'

Share:
34,819
juckele
Author by

juckele

Senior developer on the JIRA team with Atlassian.

Updated on July 09, 2022

Comments

  • juckele
    juckele almost 2 years

    My Java application needs to know what version of IE (if any) is installed on the local machine, and querying the registry seems like the easiest way. What registry key and value should I look up?

    This needs to work on Windows XP, Windows Server 2003, and later.

  • Makky
    Makky about 11 years
    Thanks mate ...It even helped me ... Cheers :)
  • vt.
    vt. almost 11 years
  • Sheng Jiang 蒋晟
    Sheng Jiang 蒋晟 over 10 years
    Microsoft lies about the version value in IE10 to avoid breaking programs that can only recognize a single digit version number. A more (hackish) way is to check IE version is to check the file version of mshtml.dll
  • juckele
    juckele almost 10 years
    Duplicate of jrun1's answer?
  • juckele
    juckele almost 10 years
    I've accepted your answer as being more up to date than my original one.
  • Krzysztof Gapski
    Krzysztof Gapski over 9 years
    Just explain what exacly Version contains. It has proper value but after '9.' *I cannot yet comment answers.
  • Beems
    Beems about 9 years
    I ran across this problem this morning. The proper locations are: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\svcUpdateVersion and HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\svcVersion. You can expect to receive data from the values like this: svcVersion = 11.0.9600.17691 while svcUpdateVersion = 11.0.7