Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.basic.visual.misc > #884
| From | GS <gs@somewhere.net> |
|---|---|
| Newsgroups | comp.lang.basic.visual.misc |
| Subject | Re: Using regsvr32 question |
| Date | 2012-03-07 23:19 -0500 |
| Organization | A noiseless patient Spider |
| Message-ID | <jj9c06$khs$1@dont-email.me> (permalink) |
| References | <jj6rk9$vj6$1@dont-email.me> <jj77ic$irb$1@speranza.aioe.org> <jj7a3o$thc$1@dont-email.me> <jj98pt$to0$1@speranza.aioe.org> |
Farnsworth used his keyboard to write :
> "GS" <gs@somewhere.net> wrote in message news:jj7a3o$thc$1@dont-email.me...
>> Thanks, Deanna. That really didn't help much because there was no detail
>> about whether a DLL is registered 'per user' or 'per machine'. My question
>> is in context to what happens when I use regsvr32 versus when an installer
>> registers components. How does it determine which hive to make the entries
>> into?
>>
>> For example, the COMAddins loaded into my auto-instance of Excel where
>> listed under HKLM. Any that were listed under HKCU weren't loaded. I'm
>> trying to determine how the DLLs under HKLM got there...
>
> There are various ways to register a DLL:
>
> 1 - By using Regsvr32, which basically calls DllRegisterServer() function in
> the DLL. The DLL decides which hive it goes to. In VB6, you don't have access
> to the code behind DllRegisterServer(), but in other languages such as
> Delphi/C++, they have access, and can modify the code and change the
> references from HKLM to HKCU.
>
> 2 - By NOT using Regsvr32 at all, and create the entries manually. Either by
> using an installer, or a REG file. That way you can choose which hive to use.
>
> To find out the registry entries, you can use this article and perhaps
> RegMon:
>
> INFO: Registry Entries Made by an ActiveX Component
> http://support.microsoft.com/default.aspx?scid=kb;en-us;183771
Thanks! I'm just used to registering my own VB6.DLLs via regsvr32,
which puts entries for COMAddin.DLLs under HKCU, -OR- using a .reg
(regedit4) to write the key. I didn't know how to access where a VB6
DLL writes to and so is why I went with regedit4.
I suspect that the author has deliberately configured to use HKLM with
disregard to the effects that has. I don't understand why users of MS
Office should not be able to manage their COM Addins via the host app's
UI dialogs. (Applies to pre v2007 releases of MS Office only)
..Brings back memories of my initial anguish over the introduction of
the Ribbon. Makes me want to dump MSO altogether and opt for using my
fpSpread.ocx instead. Problem is that clients WANT Excel-based
solutions due to popular use in general.
--
Garry
Free usenet access at http://www.eternal-september.org
ClassicVB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion
Back to comp.lang.basic.visual.misc | Previous | Next — Previous in thread | Next in thread | Find similar
Using regsvr32 question GS <gs@somewhere.net> - 2012-03-07 00:27 -0500
Re: Using regsvr32 question Deanna Earley <dee.earley@icode.co.uk> - 2012-03-07 08:51 +0000
Re: Using regsvr32 question GS <gs@somewhere.net> - 2012-03-07 04:34 -0500
Re: Using regsvr32 question Deanna Earley <dee.earley@icode.co.uk> - 2012-03-07 10:24 +0000
Re: Using regsvr32 question Deanna Earley <dee.earley@icode.co.uk> - 2012-03-07 10:31 +0000
Re: Using regsvr32 question "Mayayana" <mayayana@invalid.nospam> - 2012-03-07 09:58 -0500
Re: Using regsvr32 question GS <gs@somewhere.net> - 2012-03-07 18:52 -0500
Re: Using regsvr32 question "Farnsworth" <nospam@nospam.com> - 2012-03-07 22:24 -0500
Re: Using regsvr32 question GS <gs@somewhere.net> - 2012-03-07 23:19 -0500
Re: Using regsvr32 question "Mayayana" <mayayana@invalid.nospam> - 2012-03-08 08:53 -0500
Re: Using regsvr32 question GS <gs@somewhere.net> - 2012-03-08 09:33 -0500
csiph-web