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

Qt installer/maintenance tool requires administrative privileges

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: Not Evaluated
    • Resolution: Unresolved
    • Affects Version/s: 4.0.1
    • Fix Version/s: None
    • Component/s: CLI, General
    • Labels:
      None
    • Platform/s:
      Windows

      Description

      As part of automated testing, I'm downloading the installer, and install it on a Windows VM via

      [0] Arguments: ./qt-unified-windows-x86-online.exe, install, qt.tools.conan, --root, C:/Users/vagrant/QtPackage, --accept-licenses, --auto-answer, telemetry-question=No,AssociateCommonFiletypes=No,OverwriteTargetDirectory=Yes,installationErrorWithCancel=Ignore, --confirm-command
      

      It later on bails out with

      [115413] Saving uuid for: "volker.hilsheimer@qt.io"
      [115414] Updating resource file: C:/Users/vagrant/QtPackage/update.rcc
      [115414] backup  operation: Mkdir
      [115414]        - arguments: C:/Users/vagrant/QtPackage
      [115414] Done
      [115415] perform  operation: Mkdir
      [115415]        - arguments: C:/Users/vagrant/QtPackage
      [115415] Done
      [115415] Preparing the installation...
      [- 1%]
      [115415] Install size: 18 components
      [115423] installationError : Error : Cannot elevate access rights while running from command line. Please restart the application as administrator.
      [115423] ROLLING BACK operations= 1
      [115423] undo  operation: Mkdir
      [115423]        - arguments: C:/Users/vagrant/QtPackage
      [115426] Done
      [115426] Warning: QFile::remove: Empty or null file name
      [115426] Installation aborted!
      

      There's IMNSHO no reason why the installer should require administrative privileges. I'm installing it as user 'vagrant', into that users' home directory.

      Running the installation from an administrator command line makes the installer search for the qtaccount.ini file in c:\windows\system32\config\systemprofile... which then fails as well.

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            installerteam Installer Team
            Reporter:
            vhilshei Volker Hilsheimer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes