Friday, July 29, 2005

How To Add a New Search Engine to IE7 (B1)

HowTo add a new search engine to IE7

"Ok. this is something i have wanted for a while (well 24 hours or so) now: how to add a new search engine to IE7. Well, its not all that hard, though if something goes wrong, your on your own! ..."

Pretty cool. I like how the searching is built into IE7 and it's great to see that it's easily (well, kind of easily) added to. I'm sure in the release it will be easier to add new search engines (?).

Here's an edited version of the instructions from the above post.
1) Open Regedit and navigate to "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Internet Explorer/Search Scopes"
2) Add a new Key named "What ever you want it to be called". In my case, I used "MSDN"
3) In there you need to add the following: a String value named DisplayName. This is the name that is shown in the browser.
4) Add a DWORD called SortIndex which should be 5 (but if you have extra engines already there it will be one up)
5) Add another string named URL with the URL of the search engine.
6) The URL should be the results page, but where the keyword is entered, you should change it to %s. (See example below)
7) Exit any IE windows that are open
8) Open IE and your new search engine will be there.

Here's an example URL:
A) I went to the MSDN page and entered "mouse_event" in the search box.
B) This is resulting URL, http://search.microsoft.com/search/results.aspx?qu=mouse_event&View=msdn&st=b&c=0&s=1&swc=0
C) So now I'm going to replace "mouse_event" with "%s"
D) This is the final URL, http://search.microsoft.com/search/results.aspx?qu=%s&View=msdn&st=b&c=0&s=1&swc=0

Below is a RegEdit export:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\SearchScopes\MSDN]
"DisplayName"="MSDN"
"URL"="http://search.microsoft.com/search/results.aspx?qu=%s&View=msdn&st=b&c=0&s=1&swc=0"
"SortIndex"=dword:00000005

And here's the visual proof:

No comments: