chriserickson
Posts: 8
Joined: Tue Apr 17, 2012 9:26 pm

Include different versions of a dll (with same name)

Tue Apr 17, 2012 9:31 pm

Hi,
Our software is dependent on a 3rd party package and we have to compile several of our dlls linked against different versions of their libraries. In the installer, I'd like to detect the version of the 3rd party software and install the correct version of our dll. I'm running into problems because I can't include multiple copies of the dlls.

Here is what I'd like to do:

Read 3rd party version from registry (working)
If it is version x, then install OurDllA
If it is version y, then install OurDllB

OurDll[AB] has the same name compiled, and has to go to the same target location.

So far I've tried having different components that are enabled based on the version, and assigning the dll to each component, but I am told that I can't have the dll duplicated. I tried installing them in with different names and copying the appropriate one based on version, but it won't let me do that either.

Help...?

Daniel
Posts: 8237
Joined: Mon Apr 02, 2012 1:11 pm
Contact:  Website

Re: Include different versions of a dll (with same name)

Wed Apr 18, 2012 10:03 am

Hi,

I think our tutorial How do I install two files with the same name in the same folder would be useful for your scenario.

Regards,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

chriserickson
Posts: 8
Joined: Tue Apr 17, 2012 9:26 pm

Re: Include different versions of a dll (with same name)

Wed Apr 18, 2012 8:10 pm

That's exactly what I needed, I'll give it a try. Thanks!

Return to “Building Installers”