systemInfo QML Type | Qt Installer Framework Manual

- Qt Installer Framework Manual
- scripting
- systemInfo

# systemInfo QML Type

Provides information about the operating system. More...

Import Statement: | import scripting

- List of all members, including inherited members

## Properties

- buildCpuArchitecture : string
- currentCpuArchitecture : string
- kernelType : string
- kernelVersion : string
- prettyProductName : string
- productType : string
- productVersion : string

## Detailed Description

## Property Documentation

buildCpuArchitecture : string

The architecture of the CPU that the application was compiled for, in text format.

Possible values include:

- "i386"
- "x86_64"
- "arm64"

Note that this may not match the actual CPU that the application is running on if there's an emulation layer or if the CPU supports multiple architectures (like x86-64 processors supporting i386 applications). To detect that, use `installer.currentCpuArchitecture()`

See also QSysInfo::buildCpuArchitecture(), sa, and currentCpuArchitecture().

currentCpuArchitecture : string

The architecture of the CPU that the application is running on, in text format.

Possible values include

- "i386"
- "x86_64"

Note that this function depends on what the OS will report and may not detect the actual CPU architecture if the OS hides that information or is unable to provide it. For example, a 32-bit OS running on a 64-bit CPU is usually unable to determine whether the CPU is actually capable of running 64-bit programs.

See also QSysInfo::currentCpuArchitecture().

kernelType : string

The type of the operating system kernel the installer was compiled for. It is also the kernel the installer is running on, unless the host operating system is running a form of compatibility or virtualization layer.

For Windows, Linux, and macOS this will return

- "winnt"
- "linux"
- "darwin"

On Unix systems, it returns the same as the output of `uname -s` (lowercased).

See also QSysInfo::kernelType().

kernelVersion : string

Example values are

- "6.1.7601" for Windows 7 with Service Pack 1
- "3.16.6-2-desktop" for openSUSE 13.2 kernel 3.16.6-2
- "12.5.0" last release of OS X "Mountain Lion"

The release version of the operating system kernel. On Windows, it returns the version of the NT or CE kernel. On Unix systems, including macOS, it returns the same as the `uname -r` command would return.

See also QSysInfo::kernelVersion().

prettyProductName : string

A prettier form of systemInfo::productType and systemInfo::productVersion, containing other tokens like the operating system type, codenames and other information. The result of this function is suitable for displaying to the user.

Example values are

- "Windows 7"
- "openSUSE 13.2 (Harlequin) (x86_64)"
- "OS X Mountain Lion (10.8)"

See also QSysInfo::prettyProductName().

productType : string

The product name of the operating system this application is running in.

Example values are

- "windows"
- "opensuse" (for the Linux openSUSE distribution)
- "osx"

See also QSysInfo::productType().

productVersion : string

The product version of the operating system in string form. If the version could not be determined, this function returns "unknown".

Example values are

- "7" for Windows 7
- "13.2" for openSUSE 13.2
- "10.8" for OS X Mountain Lion

See also QSysInfo::productVersion().