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

Offline installer does not accept license if specified via --lu, --lk

    XMLWordPrintable

Details

    Description

      Qt user reported following:
      "
      We have a setup in which we first create an offline installer. We
      archive this installer and then later install it in the build environments.

      I'm currently upgrading from Qt 6.5 to 6.8 and from installer 4.6.1 to 4.8.1. I've run into some license issue with this new installer. It does not to accept my license when specified via --lu, --lk.

      Example:

      > ./offline-installer-6.8.0-1.run -d --lu QTUSER@email.com --lk <LICENSE> --accept-licenses --root /opt/Qt search
      Gives:
      [1] Operations sanity check succeeded.
      [2] Discarding existing items from cache with version: "1.1.0" . New version: "1.2.0"
      [2] Using metadata cache from "/home/user/.cache/qt-unified-linux-online"
      [2] Found 0 cached items.
      [2] License type read from resource file: "commercial"
      [2] License display name read from resource file: "commercial"
      [2] Product read from resource file: ""
      [2] This is an unofficial offline installer created on "2024-11-12 - 12:57:12" using Qt Account with the email "QTUSER@email.com".
      [2] Reading Qt Account settings from disk: "/home/user/.local/share/Qt/qtaccount.ini"
      [2] Warning: Qt Account settings file [/home/user/.local/share/Qt/qtaccount.ini] does not exist.
      [2] No Qt Account credentials found, asking for login:
      Qt Account email:

      The offline installer was created with:
      ./qt-online-installer-linux-x64-4.8.1.run -m "${QTUSER}" --pw "${QTPASSWORD}" --root $PWD/tmp --accept-licenses --confirm-command --no-force-installations --no-default-installations --offline-installer-name offline-installer-6.8.0-1.run --auto-answer telemetry-question=No create-offline qt.qt6.680.linux_gcc_64 qt.qt6.680.qtwaylandcompositor qt.qt6.680.addons.qtshadertools qt.qt6.680.addons.qt5compat extensions.qtpdf.680.linux_gcc_64 qt.qt6.680.addons.qtcharts qt.qt6.680.addons.qtserialbus qt.qt6.680.addons.qtserialport qt.qt6.680.addons.qtwebsockets qt.tools.qtcreator_gui

      Same setup with 4.6.1 works fine.
      "
      Apparently since 4.8 CLI login prompt will be requested if qtaccount.ini file is not been found locally.

      Attachments

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

        Activity

          People

            installerteam Installer Team
            tero.pelkonen Tero Pelkonen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes