How to get the IE version number from the Windows registry?
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.'
Comments
-
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 about 11 yearsThanks mate ...It even helped me ... Cheers :)
-
vt. almost 11 yearsMore info here: support.microsoft.com/kb/969393
-
Sheng Jiang 蒋晟 over 10 yearsMicrosoft 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 almost 10 yearsDuplicate of jrun1's answer?
-
juckele almost 10 yearsI've accepted your answer as being more up to date than my original one.
-
Krzysztof Gapski over 9 yearsJust explain what exacly Version contains. It has proper value but after '9.' *I cannot yet comment answers.
-
Beems about 9 yearsI ran across this problem this morning. The proper locations are:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\svcUpdateVersion
andHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\svcVersion
. You can expect to receive data from the values like this:svcVersion = 11.0.9600.17691
whilesvcUpdateVersion = 11.0.7