This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Knowledge Base
- :
- Install Different Files Based on the Operating System 32/64-Bit
Subscribe
- Mark as New
- Mark as Read
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Install Different Files Based on the Operating System 32/64-Bit
Install Different Files Based on the Operating System 32/64-Bit
Introduction
When distributing both 32 and 64-bit files in a single installer, specific files based on the OS should be installed on the machine. When you run the installer on a 32-bit machine, 32-bit files should get installed. When you run the same installer on a 64-bit machine, 64-bit files should be installed.
Instructions
- Open InstallShield and create a Basic MSI Project.
- Go to the Setup Design view and add a feature and add two components.
- Name one component 32-bit component and the other 64-bit component.
- Add a 32-bit file to the 32-bit component and add a 64-bit file to the 64-bit component.
- Now set a condition for each component.
- Select the 32-bit component and apply the condition NOT VersionNT64.
- Select the 64-bit component and add condition the condition VersionNT64.
- Now save and build the project.
- Now run the installer in a 32-bit machine. The 32-bit component files will be installed.
- Then run the same installer on a 64-bit machine. The 64-bit component files will be installed.
Reference
See Configuring Component Conditions in the InstallShield User Guide.
No ratings