I'm updating a legacy app and it has some functionality that detects the version of Internet Explorer that's installed, just for display and error reporting not because any components are required. The code used for IE version detection is basically the code from VBnet - DllGetVersion: Detailed Internet Explorer Version Info (Author: Kay-Christian Hansen, VBnet - Randy Birch). Unfortunately this code doesn't detect IE version greater than IE6.
So I'm wondering what the accepted VB6 method of detecting the installed version of Internet Explorer is these days?
Thanks.
I searched around and I couldn't really find anything. Kind of obscure for some reason. I did find this link where someone posted a solution but I coulnd't get it to fully work! :) I'm not really a vb guy so maybe you could. Here's the link if your interested:
http://www.visualbasicscript.com/m_64130/tm.htm
Edit:
I actually missed some code on the bottom of that page and that code seemed to work well in getting the version of IE. I kinda simplified his code a little bit:
Hope this helps!
You could access registry to do that.
For IE 10 and above you should to check
Look at KB 969393
Here is a class I use to get file version information:
These are my results for IE 8.
Company name: Microsoft Corporation
File description: Internet Explorer
Product version: 8.00.6001.18702 (longhorn_ie8_rtm(wmbla).090308-0339)
Internal name: iexplore
Legal copyright: © Microsoft Corporation. All rights reserved.
Original file name: IEXPLORE.EXE
Product name: Windows® Internet Explorer
Comments: Windows® Internet Explorer
Trademarks: Windows® Internet Explorer
File version: 8.00.6001.18702 (longhorn_ie8_rtm(wmbla).090308-0339)
Private build:
Special build: