Re: Register add-in to HKLM automatically

From: Peter Young (youngpa_at_comcast.no.net.spam.please)
Date: 06/10/04


Date: Thu, 10 Jun 2004 10:11:01 -0500


"JvF" <vanfrank@predicate.com> wrote in message news:11827299.0406100646.275f210d@posting.google.com...
> I have built an add-in using VB6 for outlook. When I build the DLL it
> places the registry entries automatically into HKCU as I expect. What
> I want is to have the registry entries (all of them) go to HKLM
> instead when I make the DLL (this is important as I plan to send this
> out as an install and I want them to run it and forget it - not have
> to change the registry manually). I can add almost all to HKLM myself
> using the Advanced Tab of the AddInDesigner but the DLL fails to load
> when I put LoadBehavior there.
>
> On a possibly similar note, this may be because whenever I make my DLL
> it loads the original settings I once had for DisplayName and
> Description even though I have removed these from the General tab
> before I create my DLL - What is going on there?

I don't know about Office, but VB6 add-in registry entries must be located in HKCU. You can't put them in HKLM - which
is good because otherwise, how would each user be able to specify their own add-in settings?

>
> Also, when I put CommandLineSafe and LoadBehavior in Addin Specific
> Data as DWORDs when they do appear in the registry the values are
> different than what I entered...???

Note that setting a VB add-in to load at startup and from the command line is not possible - the two are mutually
exclusive, and the startup setting will take precedence. I don't know that this is documented anywhere, I just know it
to be true from observation.

-Pete



Relevant Pages

  • Re: Register add-in to HKLM automatically
    ... When I build the DLL it ... > places the registry entries automatically into HKCU as I expect. ... but VB6 add-in registry entries must be located in HKCU. ... how would each user be able to specify their own add-in settings? ...
    (microsoft.public.office.developer.outlook.vba)
  • Re: Register add-in to HKLM automatically
    ... When I build the DLL it ... > places the registry entries automatically into HKCU as I expect. ... but VB6 add-in registry entries must be located in HKCU. ... how would each user be able to specify their own add-in settings? ...
    (microsoft.public.office.developer.com.add_ins)
  • Re: Register add-in to HKLM automatically
    ... When I build the DLL it ... > places the registry entries automatically into HKCU as I expect. ... but VB6 add-in registry entries must be located in HKCU. ... how would each user be able to specify their own add-in settings? ...
    (microsoft.public.outlook.program_addins)
  • Re: Convert InProcServer to OutProc
    ... searching the web, however, I didn't save a reference to them. ... Use regasm to register your .dll and create a type library ... Manually add appropriate AppId registry entries ... > I created a COM Server .NET dll that works fine as an InProcServer. ...
    (microsoft.public.dotnet.framework.interop)
  • Re: How to Change the Class id of an ActiveX control?
    ... > The application uses a custom ActiveX control that gets embedded in Pocket ... > dll have new class ids. ... > I have changed the class ids in the .idl file as below, ... > seeing registry entries with the new CLASSIDs instead of the old ones. ...
    (microsoft.public.pocketpc.developer)