Uploaded image for project: 'Qt Installer Framework'
  1. Qt Installer Framework
  2. QTIFW-2929

Calling gainAdminRights() in control script causes the installation to fail

XMLWordPrintable

    • Linux/X11, Windows
    • 8d72fb0c7 (master)
    • Qt Installer Sprint 79, Qt Installer Sprint 80, Qt Installer Sprint 81, Qt Installer Sprint 82

      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.

        1. ifw2929.zip
          2 kB
          Joni Poikelin
        For Gerrit Dashboard: QTIFW-2929
        # Subject Branch Project Status CR V

            arttu.tarkiainen Arttu Tarkiainen
            poikelin Joni Poikelin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes