Detecting If the End User is Running a Particular Operating System

InstallShield 2024

Your installation can determine which operating system is on a target system.

Using Windows Installer Properties to Detect the Operating System

The Windows Installer properties VersionNT, Version9X, ServicePackLevel, and WindowsBuild describe the target operating system.

Project: You can use these Windows Installer properties in conditions for items such as features, components, and custom actions in the following project types:

Basic MSI
DIM
InstallScript MSI
Merge Module

Note:Property names are case-sensitive, so Version9X and Version9x are considered different properties.

Using an InstallScript Structure Variable to Detect the Operating System

The InstallScript structure SYSINFO is automatically initialized to describe the operating system on the target system. You can use this structure in your InstallScript code to trigger specific behavior on certain platforms. For specific values to check, see SYSINFO.

Project: You can use the SYSINFO structure in event-driven InstallScript code in the following project types:

InstallScript
InstallScript MSI
InstallScript Object

You can also use this structure in InstallScript custom actions in the following project types:

Basic MSI
InstallScript MSI
Merge Module