Symptom

When you try to add a Search Provider in Internet Explorer 7, a script error occurs, and the provider is not added successfully. When you double-click the script error notification icon in the Internet Explorer Status bar, the following error message may be shown:

Line: 110
Char: 1
Error: Element not found
Code: 0
URL: http://www.microsoft.com/windows/ie/searchguide/en-en/default.mspx

Also, when you try to create your own Search Provider, the following error message may appear:

Unable to add search provider. The Create Your
Own tool requires Internet Explorer 7. [32811]

Resolution

This problem may happen if you've registered the module shdocvw.dll, after Internet Explorer 7 (7.0.5730.11) was installed. This is just another side-effect caused by the registration of shdocvw.dll in a system running Internet Explorer 7. (Refer to the blog entry: Why doesn't the "You've opened a new tab" message go away?)

To fix the problem, follow these steps:

  • Click Start, Run and type Regedit.exe
  • Navigate to the following location:

HKEY_CLASSES_ROOT \ TypeLib \ {EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B} \ 1.1 \ 0 \ win32

  • Double-click (default) and set C:\WINDOWS\system32\ieframe.dll as its data
  • Quit Registry Editor.

Automate

To automate the above steps, you can use the REG file (ie7tlbfix.reg) available at the bottom of this page.

Note: The above assumes that Windows is installed in the C:\ drive. The REG fix is hard coded for C:\ as well. If you have Windows installed in a different drive, change the drive letter accordingly in the REG file. REG files can be opened using Notepad or any other plain text editor.