How to .NET package JavaScript/bookmarklet as Interner Explorer 8/9 Plugin?

Posted by Don on Stack Overflow See other posts from Stack Overflow or by Don
Published on 2011-01-02T14:05:18Z Indexed on 2011/01/03 12:53 UTC
Read the original article Hit count: 239

How to .NET package JavaScript/bookmarklet as Interner Explorer 8/9 Plugin?

I have recently finished writing JavaScript code for a browser addon, which basically (once the JS is included) runs on page-load, for given domains it then checks for certain elements in the DOM and adds new relevant elements(/information) to the page.

Since the JavaScript only reads/affects the HTML DOM independently (and does not need any toolbar buttons or anything else) the JS purely needs adding to the browser's webpages.

I have packaged the code to work with Firefox and Chrome and those are both working well, and I can run the code for IE in 'bookmarklet' form without problems, but I would like to learn how to package JavaScript as an actual .NET .MSI addon/plugin that will install for the current Internet Explorer 8/9.

Does anyone know of a suitable guide or method I might refer to please? I have tried searching online for tutorials but most walkthroughs refer to writing the plugin body itself (which might involve unnecessary stages/includes) and are thus not regarding packing existing JS.

I hope someone might have the solution please?

Note: Someone packaged an old version for me as a MSI installer for Internet Explorer 7 a year ago, which installed into Program Files with a plugin.dll plugin.tlb and plugin.InstallState plus BandObjectLib.dll Interop.SHDocVw.dll and Microsoft.mshtml.dll if that is useful.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about .NET