How can I programmatically check what version of Internet Explorer is installed on a desktop. When my app launches if I simply want it to check what version of IE the user has and if it's not the one (or ones) I specify then pop a message and exit.
1. Read the Windows Registry. It is located in HKLM\SOFTWARE\Microsoft\Internet Explorer.
2. In the machine that I am using, IExplore.exe is located in "C:\Program Files\Internet Explorer\IEXPLORE.EXE"
Code:
Dim IEexe As String = "C:\Program Files\Internet Explorer\IEXPLORE.EXE"
Dim sinfo As FileVersionInfo
Dim strInfo As FileVersionInfo = FileVersionInfo.GetVersionInfo(IEexe)
MsgBox(strInfo.FileVersion)
1. Read the Windows Registry. It is located in HKLM\SOFTWARE\Microsoft\Internet Explorer.
2. In the machine that I am using, IExplore.exe is located in "C:\Program Files\Internet Explorer\IEXPLORE.EXE"
Code:
Dim IEexe As String = "C:\Program Files\Internet Explorer\IEXPLORE.EXE"
Dim strInfo As FileVersionInfo = FileVersionInfo.GetVersionInfo(IEexe)
MsgBox(strInfo.FileVersion)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.