I use Qt Installer Framework.
How to make sure, at the time of uninstallation, that only certain files or folders are deleted, and not all files in the installation folder as is currently the case?
Thank you in advance
I use Qt Installer Framework.
How to make sure, at the time of uninstallation, that only certain files or folders are deleted, and not all files in the installation folder as is currently the case?
Thank you in advance
You could possibly override the default behavior of component.createOperations
for uninstallers then manually specify each path for uninstallation using component.registerPathForUninstallation
.
That might look something like this:
function Component() {
pathsToUninstall = [];
pathsToUninstall.forEach(function(path) {
component.registerPathForUninstallation(path);
});
}
At the moment (version 3.1.1) the installer removes only those component files that it has installed. If you add something of your own (regardless of the installer), then your files will remain intact.
If you want to manually control this process you can overload functions createOperationsForArchive, createOperationsForPath and removeComponent for remove companent