Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.5.1
-
-
8d72fb0c7 (master)
-
Qt Installer Sprint 79, Qt Installer Sprint 80, Qt Installer Sprint 81, Qt Installer Sprint 82
Description
If the target directory does not exist yet and control script calls gainAdminRights during installationStarted(), then the installation fails.
Warnings like this are produced and also it gives an error dialog that it couldn't write a file:
[4285] Warning: Target "/opt/installation_test/subdir/installerResources" does not exists. [4285] Warning: Target "/opt/installation_test/subdir/installerResources/com.foo" does not exists. [4285] Warning: Target "/opt/installation_test/subdir/installerResources/com.foo" does not exists. [4285] Warning: Cannot open file for writing "/opt/installation_test/subdir/installerResources/com.foo/00.00.01content.txt" : "No such file or directory"
If the target directory already exists when running the installer, or if those admin privileges are dropped before returning from installationStarted(), then it seems to succeed.