Qt IFW: How to check if we are in maintanance mode
-
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
-
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?