How do I install different versions of a registry entry based on the Operating System (32-bit/64-bit)?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 registry key. In this How-To, the package must create a 32-bit version and a 64-bit version of the HKEY_LOCAL_MACHINE\Software\MyKey registry key. The tree control in the Registry page does not support duplicate entries, but the "Registry" table inside the MSI supports them. Therefore, a solution is to create a key which uses a property in its name. Here are the steps for the HKEY_LOCAL_MACHINE\Software\MyKey registry key (you can adapt the example to your custom registry keys):
HKEY_LOCAL_MACHINE\Software\MyKey HKEY_LOCAL_MACHINE\Software\[MY_REG_KEY]
If the 32-bit values are in the same feature as the 64-bit values, the components of the values with the same name will be different. For example, if you add the "MyValue" registry value in one key and then add it in another key, the components will be named:
If you use this approach, the package will determine the type of the target system (32-bit/64-bit) by using the "VersionNT64" property. Also, it will install only the components which correspond to the system type. | |
|
| Privacy Policy | Windows Installer | Search Engine Ranking | Link Analyzer | ||
| © 2002 - 2008 Caphyon Ltd. Trademarks belong to their respective owners. All rights reserved. | ||