How to determine if Internet Explorer 6 or above is installed using VBScript

  • Thread starter Thread starter Nobil Kurian
  • Start date Start date
N

Nobil Kurian

In the Installshield set up i have to check whether IE 6
or above is installed on my machine using VBScript else i
have to quit the installation
 
Please direct future programming questions to a newsgroup like
inetexplorer.ie5.programming.
I think I have seen this before somewhere. Try this logic, see if it works
1.Store window.navigator.userAgent.indexOf("MSIE ") in some variable x
2.If it is IE, then the string would be of the nature "MSIE 6.0"
3.Check the substring starting from x+5 (so that you skip "MSIE ") and check
for "."
4.The value before that "." should give you version number
5.If it is greater than 6, it is IE 6.0
 
Back
Top