+ Reply to Thread
Results 1 to 4 of 4

Thread: Shared DLL counter

  1. #1

    Default Shared DLL counter

    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)).

  2. #2
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Shared DLL counter

    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

  3. #3

    Default Re: Shared DLL counter

    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).

  4. #4
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Shared DLL counter

    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

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •