Uploaded image for project: 'Qt Installer Framework'
  1. Qt Installer Framework
  2. QTIFW-592

Expose OS information to script

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 2.0.0
    • None
    • General
    • None
    • de748023e53ce84afd01cde0ca380cddad057a4d

      The Installer Framework should provide an API to expose the Operation System type, version, and bitness to script. This could be written as a wrapper to the - greatly enhanced - QSysInfo API in Qt5Core / Qt 5.4.

      Motivation

      The current IFW features a few hooks to get information about the OS:

      installer.value("os"): Returns either "win", "x11", or "mac" . The names cannot be updated anymore.

      installer.environmentVariable("ProgramFiles(x86)"): Is the current ad-hoc way to check for x32 bit or x64 bit windows.

      There's no easy check to e.g. test for the Windows version (say to exclude XP). Older attempts to mitigate tried to enumerate all possible Windows / OS X versions , which is however cumbersome.

      API

      The exposed API should be just a wrapper for QSysInfo:

      sysInfo.buildAbi()
      sysInfo.currentCpuArchitecture()
      sysInfo.productType()
      sysInfo.productVersion()
      sysInfo.kernelType()
      sysInfo.kernelVersion()
      sysInfo.prettyProductName()
      

      Alternative root objects: "system", or "installer.system".

        For Gerrit Dashboard: QTIFW-592
        # Subject Branch Project Status CR V

            kkohne Kai Köhne
            kkohne Kai Köhne
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes