PDA

View Full Version : Shared DLL question



NewsArchive
04-10-2009, 02:05 AM
Hi,

my application can be installed multiple times and in the same or in
different versions. I have a shared DLL. Older versions of my
application can use newer DLLs but NOT vice versa.

In the "Install File" Statement, I have set the following options:

"Register as Shared File" - so windows can count how many pplications
use this DLL

and

"Replcaement Option = Check File (Version then Date/Time)" - so newer
versions will not be replaced.

I've created the following test scenario:

1.) Install V2.0 ==> Setup installs DLL 2.0 [OK]

2.) Install V1.0 ==> Setup does NOT replace DLL 2.0 and App V1.0 uses
DLL 2.0 [OK]

3.) Uninstall V2.0 ==> Setup shows a message: "DLL V2.0 is not longer in
use. yadayadayada"

So it seems Setup V1.0 has not incremented the DLL counter. Why?

Thanks for any suggestions.

Markus

NewsArchive
04-10-2009, 02:06 AM
Hi Markus,

>
> So it seems Setup V1.0 has not incremented the DLL counter. Why?
>

IMO, it's definitely a bug. The compiler generates the correct
instructions, but the installer runtime does not increment the shared DLL
counter if the "Install File" function is skipped.

Item in review.

Thanks,
Friedrich

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

SetupBuilder "point. click. ship"
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
05-06-2011, 01:01 PM
Hi Friedrich,

some news about this?

Markus

NewsArchive
05-06-2011, 01:02 PM
Hi Markus,

>
> some news about this?
>

Hmm, I don't see anything in the release history for this item. We'll check
it.

Friedrich

NewsArchive
05-06-2011, 01:54 PM
BTW: The installer runtime does not register the file at all if the file
is present but not registered yet.

Markus Zander

NewsArchive
05-10-2011, 12:47 AM
> BTW: The installer runtime does not register the file at all if the file
> is present but not registered yet.

Fixed in the latest internal source code. Thank you!

---
FIX : (sync from SB8) [SB#105062] Runtime: The install file action
did not increase the Shared DLL reference count if the same or
a never version of the file already existed.
---

Friedrich