How do I install resources based on the Operating System version?AnswerA complete installation package should be able to install an application on any version or type of the Windows Operating System. Since the application or installation may use different resources or custom actions, you need to condition them based on the OS. This way, the installation package will install only the resources which meet the OS condition. Windows Installer offers for this purpose three built-in properties:
The values of the VersionNT property are:
Install a component or run a custom action based on the Windows versionFor the installation of a component you can set the Condition field in the Component Properties page to the Version9X or VersionNT property. The same condition can be set for a custom action in the Expression field of the Custom Action Properties page. For example, if the component (or custom action) should be installed (or run) only on Windows 95/98/Me, the condition is: Version9X If the component (or custom action) should be installed (or run) only on Windows 2000, the condition is: VersionNT=500 If the component (or custom action) should be installed (or run) only on Windows XP, the condition is: VersionNT=501 If the component (or custom action) should be installed (or run) only on Windows Server 2003, the condition is: VersionNT=502 If the component (or custom action) should be installed (or run) only on Windows Vista or Windows Server 2008, the condition is: VersionNT=600 Install a component or run a custom action based on the Windows OS type (32-bit or 64-bit)This can be done by using the VersionNT64 property in the "Condition" field for a component or the "Expression" field for a custom action. If the component (or custom action) should be installed (or run) only on a 32-bit system, the condition is: NOT VersionNT64 If the component (or custom action) should be installed (or run) only on a 64-bit system, the condition is: VersionNT64 | |
|
| Privacy Policy | Windows Installer | Search Engine Ranking | Link Analyzer | ||
| © 2002 - 2008 Caphyon Ltd. Trademarks belong to their respective owners. All rights reserved. | ||