I am building a IE add on. I have a DLL from which I can create an installer using bitrock. I have an image included in the DLL which needs to show up on the add-on bar. I am able to install the DLL and register it and the add-on works fine. But the problem is IE shows a default icon on the IE add-on bar. How do I register my custom icon so that it shows on the IE Add-on bar.

asked 11 May '12, 20:01

Adam%20Roman's gravatar image

Adam Roman
1111
accept rate: 0%


Unfortunately we are not familiar with IE add-ons, installing and registering them. However, it seems an issue related to registering the add-on itself.

Do you use a system API, regsvr32 or any other tool to register the add-on?

From a quick search on MSDN, Creating Add-ons for Internet Explorer: Toolbar Buttons article mentions that both Icon and HotIcon should be set - from the page:

        val 'Icon' = s 'C:\icons\WinXP\search4doc.ico'
        val 'HotIcon' = s 'C:\ icons\WinXP\search4doc.ico'

Are you setting these keys as well?

link

answered 14 May '12, 05:00

wojciechka's gravatar image

wojciechka ♦♦
7.8k61122
accept rate: 26%

Yes , we are setting these two keys. I wanted to know how these can be set using the bitrock installer. I am using regserv32 to register the dll.

(14 May '12, 13:50) Adam Roman

Setting registry keys can be done using <registryGet> action - for the example Key from link from MSDN, it would be:

 <registrySet>
   <key>HKLM\SOFTWARE\Microsoft\Internet Explorer\Extensions\{5D578929-E74E-46A2-A810-4F33D011DC51}</key>
   <name>${installdir.dos}\icon.ico</name>
   <type>REG_SZ</type>
   <value>Icon</value>
 </registrySet>
 <registrySet>
   <key>HKLM\SOFTWARE\Microsoft\Internet Explorer\Extensions\{5D578929-E74E-46A2-A810-4F33D011DC51}</key>
   <name>${installdir.dos}\icon.ico</name>
   <type>REG_SZ</type>
   <value>HotIcon</value>
 </registrySet>

Deleting a key at uninstallation can be done using <registryDelete> action - for example:

<registryDelete>
  <key>HKLM\SOFTWARE\Microsoft\Internet Explorer\Extensions\{5D578929-E74E-46A2-A810-4F33D011DC51}</key>
  <name>Icon</name>
</registryDelete>
<registryDelete>
  <key>HKLM\SOFTWARE\Microsoft\Internet Explorer\Extensions\{5D578929-E74E-46A2-A810-4F33D011DC51}</key>
  <name>HotIcon</name>
</registryDelete>
link

answered 15 May '12, 04:19

wojciechka's gravatar image

wojciechka ♦♦
7.8k61122
accept rate: 26%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×30
×1
×1

Asked: 11 May '12, 20:01

Seen: 4,042 times

Last updated: 15 May '12, 04:19