Reputation: 2869
I am making an InstallShield Basic MSI setup. It is outside of Visual Studio. I want to save a registry value only if it is 64 bit OS. See image:
How do I configure the setup project to save a registry value only if it is 64-bit?
Upvotes: 0
Views: 187
Reputation: 1079
Create a new component using Setup design option in left navigation pane. In Condition field, enter VersionNT64 for 64-bit operating system condition. Now back to registry option, check 'View Filter' option in upper middle section and select the component which you had created. Now create whatever registry you want to create. It will be created only on 64-bit OS at the time of installation.
Upvotes: 1
Reputation: 530
You can condition the registry creation based on the VersionNT64 property.
The installer sets the VersionNT64 property to the version number for the operating system only if the system is running on a 64-bit computer. The property is undefined if the operating system is not 64-bit.
Upvotes: 1