Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.basic.visual.misc > #879
| Path | csiph.com!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail |
|---|---|
| From | Deanna Earley <dee.earley@icode.co.uk> |
| Newsgroups | comp.lang.basic.visual.misc |
| Subject | Re: Using regsvr32 question |
| Date | Wed, 07 Mar 2012 10:24:02 +0000 |
| Organization | Aioe.org NNTP Server |
| Lines | 63 |
| Message-ID | <jj7d08$21f$1@speranza.aioe.org> (permalink) |
| References | <jj6rk9$vj6$1@dont-email.me> <jj77ic$irb$1@speranza.aioe.org> <jj7a3o$thc$1@dont-email.me> |
| NNTP-Posting-Host | rjApkXnSOjrT83QpZ8fKqg.user.speranza.aioe.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Complaints-To | abuse@aioe.org |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 |
| X-Notice | Filtered by postfilter v. 0.8.2 |
| Xref | csiph.com comp.lang.basic.visual.misc:879 |
Show key headers only | View raw
On 07/03/2012 09:34, GS wrote: > Deanna Earley has brought this to us : >> On 07/03/2012 05:27, GS wrote: >>> Hi all, >>> >>> I recently ran into a situation where my VB6.exe encountered loaded COM >>> Addins in an automated instance of Excel. Whenever I registered >>> DLLs/OCXs with regsvr32 the entries would appear under HKCU. Typically, >>> COM Addins listed here do not load in auto-instances of their respective >>> MS Office host app. >>> >>> The question I have is why would some software use HKLM for their COM >>> Addins, and how would this be done since (by default) regsvr32 uses >>> HKCU? >>> >>> Does regsvr32 support options as to what Registry hive is used? >> >> regsvr32 has no control over where the entries are placed, its sole >> job is to load the DLL and call its DLLRegisterServer function. What >> that does is entirely down to the author of the DLL. >> >> By convention, this is used to register a COM DLL and Most ONLY write >> to HKLM but some have special checks to register themselves to HKCU if >> they don't have access. >> You'll need to check with the authors to confirm what their DLL does. >> >> More details: >> http://blogs.msdn.com/b/oldnewthing/archive/2011/11/10/10235540.aspx > > Thanks, Deanna. That really didn't help much because there was no detail > about whether a DLL is registered 'per user' or 'per machine'. It's entirely down to the author of the DLL. regsvr32.exe itself has no control over that. > My question is in context to what happens when I use regsvr32 versus > when an installer registers components. There is no inherent difference, as most installers just use regsvr32.exe. (Note that Windows does apply a compatibility shim to regsvr32.exe but I don't know the details off hand) > How does it determine which hive to make the entries into? Ask the author of the DLL how they determine which hive. (Or check what the framework they use does when asked to register) > 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... As I said, it may have been a difference in permissions at the time it was registered, maybe file location, maybe the moon phase. -- Deanna Earley (dee.earley@icode.co.uk) i-Catcher Development Team http://www.icode.co.uk/icatcher/ iCode Systems (Replies direct to my email address will be ignored. Please reply to the group.)
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