|
|
#1 |
|
Junior Member
Join Date: Jun 2010
Posts: 1
|
Register a BHO through an NSIS installer
I have an IE BHO which I was packaging through the Visual Studio setup and deployment project. I now want to the package it through an NSIS installer.
My BHO was registering in the following way: [ComRegisterFunctionAttribute] public static void Register(Type t) { string guid = t.GUID.ToString("B"); RegistryKey rkClass = Registry.ClassesRoot.CreateSubKey(@"CLSID\"+guid ); RegistryKey rkCat = rkClass.CreateSubKey("Implemented Categories"); string name = toolbarName; string help = toolbarHelpText; rkClass.SetValue(null, name ); rkClass.SetValue("MenuText", name ); rkClass.SetValue("HelpText", help ); if( 0 != (style & BandObjectStyle.Vertical) ) rkCat.CreateSubKey("{00021493-0000-0000-C000-000000000046}"); if( 0 != (style & BandObjectStyle.Horizontal) ) rkCat.CreateSubKey("{00021494-0000-0000-C000-000000000046}"); if( 0 != (style & BandObjectStyle.TaskbarToolBar) ) rkCat.CreateSubKey("{00021492-0000-0000-C000-000000000046}"); if( 0 != (style & BandObjectStyle.ExplorerToolbar) ) Registry.LocalMachine.CreateSubKey(@"SOFTWARE\Microsoft\Internet Explorer\Toolbar").SetValue(guid,name); } While this is taken care of by the msi installer that is made by VS, I want to know how can I do the same using NSIS? Any help would be appreciated! Kapil |
|
|
|
|
|||||||
| Tags |
| ie bho com register dll |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|