Microsoft KB Archive/929744

From BetaArchive Wiki
Knowledge Base


How to modify the Browscap.ini file to enable script-based detection of Windows Internet Explorer 7 from a Web page

Article ID: 929744

Article Last Modified on 10/27/2007



APPLIES TO

  • Windows Internet Explorer 7
  • Microsoft Internet Information Services 5.0
  • Microsoft Internet Information Services 6.0



INTRODUCTION

This article describes how to modify the Browscap.ini file to enable script-based detection of Windows Internet Explorer 7 from a Web page. After you modify the Browscap.ini file on the server that is hosting the Web site, you can use the BrowserType object in Microsoft Internet Information Services (IIS) to detect Internet Explorer 7. For more information about how to use the BrowserType object to determine a browser version, click the following article number to view the article in the Microsoft Knowledge Base:

167820 How to determine browser version from a script


MORE INFORMATION

To modify the Browscap.ini file, follow these steps on the server that is hosting the Web site.

Note To modify the Browscap.ini file, you must have administrator permissions on the server.

  1. Click Start, point to Programs, point to Accessories, and then click Notepad.
  2. On the File menu, click Open.
  3. Locate the %systemroot%\System32\Inetsrv folder, click the Browscap.ini file, and then click Open.

    Note %systemroot% represents the system folder. This folder is typically C:\Windows.
  4. Locate the "Internet Explorer 6" section of the Browscap.ini file.
  5. In the "Internet Explorer 6" section, add the following text.

    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; IE 7.0
    [IE 7.0]
    browser=IE
    Version=7.0
    majorver=#7
    minorver=#0
    frames=True
    tables=True
    cookies=True
    backgroundsounds=True
    vbscript=True
    javaapplets=True
    javascript=True
    ActiveXControls=True
    Win16=False
    beta=False
    AK=False
    SK=False
    AOL=False
    Update=False
    
    [Mozilla/4.0 (compatible; MSIE 7.*; Windows NT*)]
    parent=IE 7.0
    platform=WinNT
    beta=False
    
    [Mozilla/4.0 (compatible; MSIE 7.*)]
    parent=IE 7.0
    beta=False
  6. On the File menu, click Save.


Keywords: kbhowto kbinfo kbexpertiseadvanced kbexpertiseinter KB929744