Exclude a DLL reference at built time - Advanced Installer Community
kiranchauhan91
Posts: 24
Joined: Fri Jan 29, 2016 10:21 am

Exclude a DLL reference at built time

Hello,

I have used advanced installer to create installer for our product. We have created two separate installers using two separate visual studio build configurations. In one of the project (say project A), we have used DLL reference from another project (say project B) in VS solution. Project A is used & built in both build configurations and project B is only used & built in one build configuration.

The situation is that when you select a build configuration in which project B is not built and project A throws missing dll error. So, I would like to get expert opinion for,

1. Is it possible to ignore DLL reference for certain build configuration? or
2. Is it possible to include DLL reference at build time so that I can only include reference when needed.

Any help would be appreciated. Thanks in advance!

Regards,
Kiran Chauhan
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Exclude a DLL reference at built time

Hi Kiran,
We have created two separate installers using two separate visual studio build configurations.
Can you please tell us if you had added multiple Advanced Installer projects to the VS solution ? If YES, please note that we do not support this yet. Although the UI allows to add multiple Advanced Installer projects, the same data will be used for build.

This improvement will be available in a future version of Advanced Installer. The fix for this issue will be available in our 12.9 version of Advanced Installer as our next version (12.8) is already in the beta stage of the development. We will notify you as soon as the fix will be officially out.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
kiranchauhan91
Posts: 24
Joined: Fri Jan 29, 2016 10:21 am

Re: Exclude a DLL reference at built time

Hi Dan,

We have created two AIP files for installers. Basically, we use commandline to buid AI files and command is executed via post build script of a VS project. VS project selects AIP file based on the build type.

This is not an issue for us. May be I have confused you by mentioning advanced installer related stuff. The real issue is that one project is using a dll which is not available for a particular VS build configuration and it throws error. As I mentioned in my original post, is there a way to not consider referenced dll in a VS project at build time any how?

Regards,
Kiran Chauhan

Return to “Common Problems”