PDA

View Full Version : Shared DLL counter



Chris
06-21-2012, 07:51 AM
Can you tell me how SetupBuilder behaves with regard setting the registry entry SharedDLLs for files it installs and uninstalls.

1. if I go to install a DLL (with check version set), and SB finds it does
not need to actually install the file, does the counter get incremented?

2. if I go to install a DLL (with ALWAYS set), then I guess SB will
increment the counter?

3. When SB is told uninstall a DLL, I guess that if counter is > 1
then the counter is decreased by 1 but the file not removed?

4. When SB is told to uninstall a DLL, if counter is 1 then
I guess SB will remove the file and the registry entry??


(I find that in my registry some counters for MY software have high values due to me having installed it many times (using previous installer)).

linder
06-21-2012, 08:08 AM
Chris,

Assuming, you have the "Register as Shared File" option enabled. If a shared file registry entry exists, the count will be incremented by one (if file already exists and date/version of the file is equal or newer). If a shared file registry entry does not exist, one will be added and set to one.

If a shared file registry entry exists, the file will only be "removed" if the counter is 0.

Friedrich

Chris
06-27-2012, 09:09 AM
Ooh. Almost but not quite answered my question :-)

Assuming "Register as Shared File" option enabled.
Shared File registry entry exists.
File already exists, but is same version as SB is wanting to install.
1. SB does not install or overwrite file.
2. Does SB increment the counter by 1 ? (I think it should do. Because file may be also used by another app).

linder
06-27-2012, 10:13 AM
Yes, if the file already exists, the "Check File" replacement option is enabled and the installer does not replace the file then the installer increments the Shared counter by 1.

Friedrich