Hi everyone!

I'm trying to create simple browser buttons, but I'm not familiar to developing anything but web pages that's why I need your help.
Could you show me the source code (in C++ or C#) of a browser button that would perform some javascript code, i.e.:
<script type="text/javascript">
alert("Hello world");

Also I've found that IE toolbars and browser buttons can be installed from .msi and .exe files. Could you explain me the difference between them.

Thank you!

P.S. I don't want to add these buttons to my browser, rather I'd like to create some kind of an installer that would allow anyone to install my browser buttons.

Re: Internet Explorer Extension Development Browser buttons

Re: Internet Explorer Extension Development Browser buttons


Thanks for the link, I've already read it before. If only I could create string variables in registry that tutorial would certainly help, but I can't. =(
I guess, all I really need is a piece of code that writes something into registry.

Re: Internet Explorer Extension Development Browser buttons


You can create an installer with something like installshield, that can create some keys in registry, and install the script into the client file system. This is called a browser button:)

Alternatively, you can also write a COM object (A so called browser helper object, BHO), and register it on the client system. This creates a "desk band" in ie. But this way is much more complicated than former one. And executing a script is also difficult:)

See this link. Lots of useful resources for IE programming.


Re: Internet Explorer Extension Development Browser buttons

John Sudds - MSFT

Believe it or not, it's a fairly simple process to create an MSI with Visual Studio 2005; just select a Setup Project from the Other Project Types.

That said, nothing beats a simple .reg file for entering information into the registry. For example, you can copy the following text, save it into a text file with the .reg extension, then double-click it in Windows Explorer.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Extensions\{CF819DA3-9882-4944-ADF5-6EF17ECF3C6E}]
"Default Visible"="Yes"
"Icon"="\"C:\\Program Files\\Fiddler\\IE_Toolbar.ico\""
"HotIcon"="\"C:\\Program Files\\Fiddler\\IE_Toolbar.ico\""
"MenuStatusBar"="Launch the Fiddler HTTP Debugger."
"Exec"="\"C:\\Program Files\\Fiddler\\Fiddler.exe\""

This button launches Eric Lawrence's Fiddler Tool, but it could easily be modified to launch any application you choose.

Note that you will need to replace the GUID highlighted above with your own unique value. The second CLSID value refers to the type of extension (in this case, an executable toolbar extension) and should not be changed. I recommend using the Microsoft Exchange Server GUID Generator (GUIDGen), which you can download for free.

To create a button that runs script instead of the executable, simply replace the "Exec" value with "Script" and provide the full path or URI to the source file. In the following example, the IESpell add-on refers to script that has been compiled as a resource into a DLL, but you can use any fully qualified URI or file path.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Extensions\{0E17D5B7-9F5D-4fee-9DF6-CA6EE38B68A8}]
@="ieSpell Class"
"Default Visible"="Yes"
"MenuStatusBar"="Spell check text fields in the current document."
"HotIcon"="C:\\Program Files\\ieSpell\\iespell.dll,207"
"Icon"="C:\\Program Files\\ieSpell\\iespell.dll,208"
"Script"="res://C:\\Program Files\\ieSpell\\iespell.dll/SPELLCHECK.HTM"