Re: HKLM\Software\Microsoft\Windows\CurrentVersion\Sha redDlls



On 23 Oct, 00:19, Rob Kennedy <m...@xxxxxxxxxxx> wrote:
alangll...@xxxxxxx wrote:
What is the impact of a DLL filepathname stored in the above key.
Does
it have any effect on normal DLL access. Is it put there by any
automatic process or by a utility program.

If a DLL really is to be shared by multiple products, then installers
should mention the DLL in that key so that uninstallers know when it's
safe to delete it. That registry key provides a reference count for
shared DLLs.

You might try RegMon to see whether your program (or the program
starting your program) accesses that key during normal operation. I
doubt it will.

Thanks Rob, RegMon is a good suggestion. I wondered what the value
meant, would that value be specified by the installer , or somehow
generated by the OS when it was accessed.

Alan Lloyd


.



Relevant Pages

  • Re: =?UTF-8?B?SEtMTVxTb2Z0d2FyZVxNaWNyb3NvZnRcV2luZG93c1xDdXJyZW4=?= =?UTF-8?B?dFZlcnNpb25cU
    ... it have any effect on normal DLL access. ... automatic process or by a utility program. ... If a DLL really is to be shared by multiple products, then installers should mention the DLL in that key so that uninstallers know when it's safe to delete it. ... That registry key provides a reference count for shared DLLs. ...
    (comp.lang.pascal.delphi.misc)
  • Re: How to register my application
    ... have version N of DLL A, which requires version M of DLL B, and both require version K of ... DLL C. Installers make sure that the suites are consistent, ... Trying to figure out how to get all the Registry entries created to get something in the ... I've been on the wrong side of tech support calls when this happens, ...
    (microsoft.public.vc.mfc)
  • Re: .NET, a technical question
    ... COM was also a big cause of DLL hell. ... and with proper file versioning there shouldn't have been any ... An ill-behaved installers misdemeanours could be ...
    (borland.public.delphi.non-technical)
  • Re: How to register my application
    ... There is no concept of "registering" an application unless it is automation-enabled. ... The problem with mechanisms that don't involve installers is that you can't really know if ... have version N of DLL A, which requires version M of DLL B, and both require version K of ... DLL C. Installers make sure that the suites are consistent, ...
    (microsoft.public.vc.mfc)
  • Re: Registering COM DLLs in Set projects
    ... I assume that there is some way that I can look at / test a DLL to see ... In the past most installers have called DllRegisterServer when ... these keys to HKEY_CURRENT_USER instead. ... set them to self register and warn if the user has inadequate permissions. ...
    (microsoft.public.dotnet.languages.csharp)