QtSiteLicense
Create offline installer with specified license key and proxy:
The generated offline installer in the example will contain QtCreator, and Qt 6.2.0 mingw and msvc binaries. License key and proxy url is bundled into the created offline installer.
qt-unified-windows-x86-4.3.0-online.exe create-offline qt.qt6.620.win64_mingw81 qt.qt6.622.win64_msvc2019_64 --confirm-command --auto-answer telemetry-question=Yes,AssociateCommonFiletypes=Yes --default-answer --accept-licenses --default-answer --accept-licenses --root C:\Qt\MyOfflineInstaller --offline-installer-name offlineInstaller --license-keys XXXXX-XQX-FFF-XXX-RNAXX-LVVVV-1234 --proxy-url http://localhost:8080
Install with offline installer
Install with following command, make sure you have the proxy running before installing:
C:\Qt\MyOfflineInstaller\offlineInstaller install qt.qt6.620.win64_mingw81 qt.qt6.622.win64_msvc2019_64 --confirm-command --auto-answer telemetry-question=Yes,AssociateCommonFiletypes=Yes --default-answer --accept-licenses --default-answer --accept-licenses --root C:\Qt\MyOfflineInstallation
Overwriting the license keys and proxy url
License keys and proxy can be overwritten in the offline installer:
C:\Qt\MyOfflineInstaller\offlineInstaller install qt.qt6.620.win64_mingw81 --confirm-command --auto-answer telemetry-question=Yes,AssociateCommonFiletypes=Yes --default-answer --accept-licenses --default-answer --accept-licenses --root C:\Qt\MyOfflineInstallation --license-keys FFFFF-QQq-FFF-XXX-RNAXX-LLLLL-1234 --proxy-url http://anotherProxy:8080
You can also change the proxy by setting the env variable QT_API_URL=<new_proxy_url>
More information about what the installer commands and options mean can be found from:
https://wiki.qt.io/Online_Installer_4.x
or typing installer.exe --help