-
Bug
-
Resolution: Fixed
-
P2: Important
-
4.8.1
-
None
-
-
8ba95c0c0 (dev)
-
Qt Installer Sprint 119
In the example script about "Populating the Maintenance Tool Component"
https://doc.qt.io/qtinstallerframework/ifw-updates.html#populating-the-maintenance-tool-component
there is only for mac a check if version <4.8.0 when setting the path to the installerbase. Under Windows and Linux this check is missing. If version is >= 4.8.0 the installerbase is in the folder @TargetDir@/tmpMaintenanceToolApp/ and not in @TargetDir@.
if (installer.value("os") == "win") {
// check missing, If version is >= 4.8.0 wrong path
component.installerbaseBinaryPath = "@TargetDir@/installerbase.exe";
} else if (installer.value("os") == "x11") {
// check missing, If version is >= 4.8.0 wrong path
component.installerbaseBinaryPath = "@TargetDir@/installerbase";
} else if (installer.value("os") == "mac") {
// all good here
if (installer.versionMatches(component.ifwVersion, "<4.8.0"))
component.installerbaseBinaryPath = "@TargetDir@/MaintenanceTool.app";
else
component.installerbaseBinaryPath = "@TargetDir@/tmpMaintenanceToolApp/MaintenanceTool.app";
}