AnswerWhen distributing a mixed 32-bit/64-bit package, the
application installed by the package may use a 32-bit or 64-bit version
of the same file. In this How-To, the package must install a 32-bit
version or a 64-bit version of the C:\Program Files\Your
Company\Your Application\MyApp.exe file. Windows Installer does not support duplicate files in the same
folder. However, you can try this workaround: - create a new Advanced Installer project (or you can use an
existing one)
- go to the Files and Folders
page
- add the 32-bit "MyApp.exe" file in "Application
Folder"
- right-click the file and select the "Go to component" context menu
or press the F8 key to go to the component of the
file in the Organization
page
- in the Component
Properties pane set the Condition field
to:
NOT VersionNT64 - go to the "Files and Folders" page
- create a new folder under "Application Folder"
- right-click it and select the "Properties" menu (or you can
double-click it)
- in the Properties
tab of the "Edit Folder" dialog check the Install folder content
into the parent folder option
- add the 64-bit "MyApp.exe" file in this custom
folder
- right-click the file and select the "Go to component" context menu
or press the F8 key to go to the component of the
file in the Organization
page
- in the Component
Properties pane set the Condition field
to:
VersionNT64 The Install folder content into the parent
folder option will make sure that the file in the custom
folder will also be installed in "Application Folder". The mutually
exclusive conditions of the files will make the package install only one
of the two files on the target machine. This approach can be used for any file in your
project.
When using multiple files you can use two features, one for 32-bit
files and one for 64-bit files. For this features you can set conditional installation
levels based on the VersionNT64
property.
|