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

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

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.
Answered 02/13/2009 by: VBScab
Red Belt

Please log in to comment
0
Ian, Thanks as always for your prompt response
Answered 02/13/2009 by: jimmyx
Purple Belt

Please log in to comment
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.
Answered 02/13/2009 by: turbokitty
Sixth Degree Black Belt

Please log in to comment
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.
Answered 02/13/2009 by: AngelD
Red Belt

Please log in to comment
0
True, in my scenario only one app was being removed... but your clarification is important.
Answered 02/13/2009 by: turbokitty
Sixth Degree Black Belt

Please log in to comment
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
Answered 02/16/2009 by: Inabus
Second Degree Green Belt

Please log in to comment
Answer this question or Comment on this question for clarity