Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.basic.visual.misc > #884

Re: Using regsvr32 question

Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail
From GS <gs@somewhere.net>
Newsgroups comp.lang.basic.visual.misc
Subject Re: Using regsvr32 question
Date Wed, 07 Mar 2012 23:19:11 -0500
Organization A noiseless patient Spider
Lines 53
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>
Mime-Version 1.0
Content-Type text/plain; charset="iso-8859-15"; format=flowed
Content-Transfer-Encoding 8bit
Injection-Date Thu, 8 Mar 2012 04:19:18 +0000 (UTC)
Injection-Info mx04.eternal-september.org; posting-host="UVJBuiIZprDyxzUkJsiwfw"; logging-data="21052"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/eE2qu40vWfhWmMisWdsbX"
X-Antivirus-Status Clean
X-Newsreader MesNews/1.08.03.00-gb
X-Antivirus avast! (VPS 120307-1, 03/07/2012), Outbound message
X-Face G"ln~:.wBqHZznO'(lJjjprxGYAjIF7#^u)lx,@"H'F#uXm%j`T6kxat5rq092aW;K*#<!y <6K)wt3HjA)V"XV`W3}Qts*D['Jm:qqpgttEl^wk@9{HJglN-Q'.91Af~ySM>m4jZ(2aW$34N&B&E@ j~tjGV-aC18j1y>zi.\[ZGXsd
Cancel-Lock sha1:JKaN2jvoZpkAXandYE39Et0LqDo=
X-ICQ 543516788
Xref csiph.com comp.lang.basic.visual.misc:884

Show key headers only | View raw


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 | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

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