QT Installer Framework setAllowedRunningProcesses seems not working on maintenance tool
-
Good day everyone.
I'm adding few services in my IFW script to be ignored on maintenancefunction Component()
{
component.loaded.connect(installerLoaded);
installer.setAllowedRunningProcesses([process1, process2]);
}And they are successfully added, installer.allowedRunningProcesses() return them both. But if after installation i call maintenance tool via CLI with purge or update, it says that these processes still interfere uninstallation, and "please stop them". Am i using it wrong or what?
-
I stumbled upon the solution, I had to use the full path + filename + extension to match the processes detected in maintenancetool 4.3.0+
function Controller()
{
console.log("configuring allowedRunningProcesses")
var installationPath = installer.value("InstallerDirPath")
installer.setAllowedRunningProcesses([installationPath + "/process1.exe",installationPath + "/process2.exe"])
}