How a 32-bit C # application can use a 64-bit DLL

I have a C # application that is 32-bit with x86 target installer. This application can be run on x64 without any problems. However, the third-party piece of equipment from the vendor (which is integrated into the software) now requires the use of a 64-bit DLL whenever we install on x64 systems.

Currently, I have placed a 32-bit DLL and a 64-bit DLL in my project. However, the x86 target installer clearly does not like the 64-bit DLL.

Is it possible to create a solution in which I can deploy a 64-bit DLL and / or 32-bit DLL and still have only one installer project? (I looked at third-party software called Advanced Installer, but I don’t know for sure if this will help me in the solution)

Or can you create a common installer project?

Note. Deployment with two installers (x86 and x64) is impractical because we have a process for automatic updates that I do not want to override. It is important for me to maintain a single .msi file.

Advice is much appreciated.

+5
source share
1 answer

Installing a file from MSI x86 is not a problem in Advanced Installer, the following article explains how to do it: http://www.advancedinstaller.com/user-guide/qa-OS-dependent-install.html

In addition, if you have two versions of the DLL with the same name that you want to put in the folder, you should look here: http://www.advancedinstaller.com/user-guide/qa-install-file-with-same- name.html

, x64 DLL, .

0

All Articles