what is SharedDLLs for

G

Guest

Guest
Archived from groups: microsoft.public.windowsxp.basics (More info?)

and do the values in reg_sz in there mean?


I should have mentioned the registry full key
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\SharedDLLs
What does XP do with them?
 
G

Guest

Guest
Archived from groups: microsoft.public.windowsxp.basics (More info?)

gs wrote:
> and do the values in reg_sz in there mean?
>
>
> I should have mentioned the registry full key
> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\SharedDLLs
> What does XP do with them?

Let's say I write a program that uses MFC. The MFC libraries are
contained in mfc71.dll. As I don't know if the target workstation will
have that dll, I include mfc71.dll in my program's installation package,
marking it as a shared dll.

When my application gets installed on a Windows workstation, since I
have marked the mfc71.dll file as shared, the fact that it has been
installed gets recorded to the SharedDLLs registry key. This allows
Windows to keep track of how many times that dll has been installed.
You'll notice the Data for each one of the entries is a number. This
represents the number of times a setup package has installed that dll.

If some other app has also installed mfc71.dll and you then decide to
uninstall my application, the information is now recorded that I am not
the only application on the machine using that shared dll, and so my
uninstall should not remove the file. If my uninstall did remove the
file, then the other application(s) that had also needed the file would
stop functioning properly.

Granted that for this to work correctly requires some participation on
the part of application install package developers, and it isn't
completely full-proof.
--
Tom Porterfield
MS-MVP Windows
http://support.telop.org

Please post all follow-ups to the newsgroup only.
 
G

Guest

Guest
Archived from groups: microsoft.public.windowsxp.basics (More info?)

Hi

That entry in the Registry pertains to any .DLL files that are/can be used
by more than one program. Please don't alter anything there!!

--

Will Denny
MS-MVP Windows Shell/User
Please reply to the News Groups


"gs" <gs@nomail.nil> wrote in message
news:u9CA2f8iFHA.1248@TK2MSFTNGP12.phx.gbl...
> and do the values in reg_sz in there mean?
>
>
> I should have mentioned the registry full key
> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\SharedDLLs
> What does XP do with them?
 
G

Guest

Guest
Archived from groups: microsoft.public.windowsxp.basics (More info?)

Hi Tom

Yup, that's what I said in one line!!

--

Will Denny
MS-MVP Windows Shell/User
Please reply to the News Groups


"Tom Porterfield" <tpporter@mvps.org> wrote in message
news:OfwPg18iFHA.1968@TK2MSFTNGP14.phx.gbl...
> gs wrote:
>> and do the values in reg_sz in there mean?
>>
>>
>> I should have mentioned the registry full key
>>
>> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\SharedDLLs
>> What does XP do with them?
>
> Let's say I write a program that uses MFC. The MFC libraries are
> contained in mfc71.dll. As I don't know if the target workstation will
> have that dll, I include mfc71.dll in my program's installation package,
> marking it as a shared dll.
>
> When my application gets installed on a Windows workstation, since I have
> marked the mfc71.dll file as shared, the fact that it has been installed
> gets recorded to the SharedDLLs registry key. This allows Windows to keep
> track of how many times that dll has been installed. You'll notice the
> Data for each one of the entries is a number. This represents the number
> of times a setup package has installed that dll.
>
> If some other app has also installed mfc71.dll and you then decide to
> uninstall my application, the information is now recorded that I am not
> the only application on the machine using that shared dll, and so my
> uninstall should not remove the file. If my uninstall did remove the
> file, then the other application(s) that had also needed the file would
> stop functioning properly.
>
> Granted that for this to work correctly requires some participation on the
> part of application install package developers, and it isn't completely
> full-proof.
> --
> Tom Porterfield
> MS-MVP Windows
> http://support.telop.org
>
> Please post all follow-ups to the newsgroup only.
 
G

Guest

Guest
Archived from groups: microsoft.public.windowsxp.basics (More info?)

On Mon, 18 Jul 2005 22:00:02 +0100, Will Denny wrote:

> Yup, that's what I said in one line!!

The reader's digest version?
--
Tom Porterfield
MS-MVP Windows
http://support.telop.org

Please post all follow-ups to the newsgroup only.