/build/static/layout/Breadcrumb_cap_w.png

Shared DLL Count Clarification

Hi,
Bit of a naive question here but I'm looking for clarification on what I should do with the shared DLL count in the registry. My package increments the count for both the mfc42.dll and msvcrt.dll also adds a new one for its own SPR32X35.ocx file. Whats the best way to handle this in my package? should I remove those values or leave them in?

Many Thanks in advance

0 Comments   [ + ] Show comments

Answers (6)

Posted by: anonymous_9363 15 years ago
Red Belt
0
I'm looking for clarification on what I should do with the shared DLL count in the registry. Provided your components are marked as shared (value minimum of 8, IIRC, in the Component's 'Attribute' column), I'd leave the WI engine to do what it wants.
Posted by: jimmyx 15 years ago
Purple Belt
0
Ian, Thanks as always for your prompt response
Posted by: turbokitty 15 years ago
6th Degree Black Belt
0
If application "A" installs a dll, then application "B" tries to install the same dll, instead of copying over it, Windows Installer (WI) will increment the reference count for that file..
When uninstalling app "A" (or "B"), WI will check the reference count to see if any other applications are still using that dll. If they are, then WI will decrement the counter by 1 and leave the dll behind. When that counter hits zero, the dll will be uninstalled by the next application that tries to remove it.
Posted by: AngelD 15 years ago
Red Belt
0
TK,

I think you missed something between "When uninstalling app "A" (or "B"), " and "If they are, then".
The ref counter will first be decreased by 1 and if the counter is 0 then the file will also be removed.
Posted by: turbokitty 15 years ago
6th Degree Black Belt
0
True, in my scenario only one app was being removed... but your clarification is important.
Posted by: Inabus 15 years ago
Second Degree Green Belt
0
Just make sure your package doesnt put the referencing count down into the registry as windows will handle it! You dont want to change a 5 to a 2 now do you hehe.

P
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ