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


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

Re: Using regsvr32 question

From "Farnsworth" <nospam@nospam.com>
Newsgroups comp.lang.basic.visual.misc
Subject Re: Using regsvr32 question
Date 2012-03-07 22:24 -0500
Organization Aioe.org NNTP Server
Message-ID <jj98pt$to0$1@speranza.aioe.org> (permalink)
References <jj6rk9$vj6$1@dont-email.me> <jj77ic$irb$1@speranza.aioe.org> <jj7a3o$thc$1@dont-email.me>

Show all headers | View raw


"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

Back to comp.lang.basic.visual.misc | Previous | NextPrevious in thread | Next in thread | Find similar


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