开发者

What's the best way to create an extension for Internet Explorer?

I'm currently researching what the best way to create an extension for Internet Explore开发者_StackOverflow社区r would be. The extension would simply consist of a button in the toolbar that when clicked, opens a program and sends info from the current page to the program.

I'm seen a few tutorials for C++ and C#, however, many of these appear dated as they are written for VS 2005. I currently have VS2008 Express Edition and VS2010 Professional.

Is there a tutorial for the 2010 version of Visual Studio I can look into? Or is there a simpler way to create an extension for Internet Explorer rather than creating a .dll (such as creating a simple .json file like for Google Chrome)?


I guess I'll answer my own question...

I started creating my toolbar in C# using Visual Studio. My project is set up as a class library, and in the project settings, I've signed my assembly with a key (so that it will work in Internet Explorer). I'm not exactly sure how to put this, but I'm using BHO.

In order to actually use the .dll that is built, I use the following command line that I put into a file called install.bat that is in the same directory as the .dll:

:: Run as admin

"C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\NETFX 4.0 Tools\x64\gacutil.exe" /f /i "%~dp0*.dll"
"C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe" /unregister "%~dp0*.dll"
"C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe" "%~dp0*.dll"
PAUSE

The paths are dependent on your file system though (also, if in Win7, you need to Run as Administrator). And viola, the toolbar appears in IE.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜