Hello,
As another approach you can try to add your DLL in a merge module which will install and register the DLL as a 32-bit DLL based on specific condition. Next you can add the DLL in your main installation project and configure it to be installed and registered as a 64-bit DLL based on specific condition and, then add the merge module to your main project.
Also, you can enable the registration synchronization option for DLL files from your merge module and main installation project. In the main project you should also add a
pre-build event which will
build the merge module project.
Here are the steps to proceed:
- create a merge module project and in "Files and Folders" page add the DLL file
- check its "Auto register file (DLL, OCX, etc)" option with the synchronization enabled
- go to "Organization" page, select the DLL component and from its context menu choose "Configurable -> Condition" option
- from "Edit Substitution Parameter" dialog add a new parameter like this:
- Name: DLLComponentCondition
Display Name: DLL Component Condition
Description:
Type: Text
Default Value: IS_OFFICE_64 = "x86"
- open your main project and in "Files and Folders" page add the DLL file
- check its "Auto register file (DLL, OCX, etc)" option with the synchronization enabled
- go to "Organization" page, drag the DLL component under "Common" feature, enable its "64-bit component" option and in the "Condition" field use a condition like this:
- go to "Merge Modules" page and add the above merge module into your main project
- in the "Configure Merge Module" dialog select your "Common" feature
- go to "Media -> Build Events" tab and add a pre-build event which will build the MSM project
Let us know if this helped.
All the best,
Daniel
FOLLOW US
Get the latest news in Application Packaging