Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt IFW: How to check if we are in maintanance mode
Qt 6.11 is out! See what's new in the release blog

Qt IFW: How to check if we are in maintanance mode

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
2 Posts 2 Posters 664 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    lacuna
    wrote on last edited by
    #1

    Hi there,

    I need to determine if the actual application is the "Intial Installer or the "Maintanancetool".
    How can I do this? installer.isInstaller did not helped, because in maintenance mode it also gives a "true". Actually I am using IFW 4.11 on MacOS Tahoe or Sequoia.

    Regards Alexander

    1 Reply Last reply
    0
    • A Offline
      A Offline
      artarkia
      wrote last edited by
      #2

      Hi,

      Checking !installer.isInstaller() should be enough for determining that the current application is a Maintenance Tool.

      The installer.isInstaller() and related methods installer.isPackageManager(), installer.isUpdater(), and installer.isUninstaller() all determine their return value based on a single internal property that describes the current run mode of the application.

      Those methods are used quite extensively in the official Qt packages' installation scripts, so installer.isInstaller() returning true also for the Maintenance Tool sounds unexpected. Could you share a minimal install script example that reproduces the issue you are encountering?

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved