32/64 bit, merge module, and build configuration - Advanced Installer Community
hsc
Posts: 117
Joined: Wed Mar 02, 2016 2:55 pm

32/64 bit, merge module, and build configuration

Hello,

I have a task of which I am not sure how to accomplish. We created a 64bit version of our application, and now separate installers are needed for 32bit and 64bit versions. The installer includes merge modules for several DLLs which also have 32bit and 64bit versions. I thought I'd use the "build configuration" feature of AI to create 32bit and 64bit merge modules, but I cannot find where to enable this feature. Instructions on https://www.advancedinstaller.com/user- ... uilds.html seem not to apply to merge modules.

Customers purchase either 32bit or 64bit software, and they should never receive both versions without paying for both. In their words, the MSI file should contain only the files for the respective bitness.

I guess someone must already have solved this problem. Would you mind to share?

Thank you
Hans

(Using AI 19.1 Enterprise or a newer version)

Edit: After playing a bit around, I created two configurations for the MSI installer AT project, and in the merge module project, I added conditions like 'AI_PACKAGE_TYPE = "x64"', but this seems not to remove 32bit files because the 64bit installer has exactly the same size as the 32bit installer. (I wonder whether it is possible to get a list of the content of an MSI file?)
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: 32/64 bit, merge module, and build configuration

Hello Hans,

First of all, I am glad you managed to get this working.
Edit: After playing a bit around, I created two configurations for the MSI installer AT project, and in the merge module project, I added conditions like 'AI_PACKAGE_TYPE = "x64"', but this seems not to remove 32bit files because the 64bit installer has exactly the same size as the 32bit installer. (I wonder whether it is possible to get a list of the content of an MSI file?)
Please note that the files are included in the setup package, it is just a matter of whether they are installed or not.

Regarding your question, you could achieve that by using a free tool such as Orca to open and view the content of your MSI database. In there, you could look at the "Files" table, which should contain a complete list of source files.

Hope this helps

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
hsc
Posts: 117
Joined: Wed Mar 02, 2016 2:55 pm

Re: 32/64 bit, merge module, and build configuration

Hi Catalin,

thank you for your reply. Is there a way to avoid a situation where both 32 and 64 bit versions of the DLL are contained in an msi package which is intended to install only one of them, other than creating separate merge modules for 32 and 64 bit?

Regards
Hans
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: 32/64 bit, merge module, and build configuration

Hello Hans,

You are always welcome!
Is there a way to avoid a situation where both 32 and 64 bit versions of the DLL are contained in an msi package which is intended to install only one of them, other than creating separate merge modules for 32 and 64 bit?
I'm afraid not, as there is no way to know at build time whether the 32-bit version of the DLL is needed or the 64-bit version.

The solution would be, as you presented, to generate separate merge modules for 32-bit and 64-bit.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”