QtSiteLicense
Create offline installer with specified license key and proxy:
The generated offline installer in the example will contain QtCreator, and Qt 5.158 binaries. License key and proxy url is bundled into the created offline installer. If you have got a valid commercial account information in qtaccount.ini, the following options are not needed --email <account@email.com> --pw <password>
Linux: qt-unified-linux-x64-4.3.0-online.run create-offline qt.qt5.5158.gcc_64 --confirm-command --auto-answer telemetry-question=Yes,AssociateCommonFiletypes=Yes --default-answer --accept-licenses --root /home/<username>/MyOfflineInstaller --offline-installer-name offlineInstaller --license-keys XXXXX-XQX-FFF-XXX-RNAXX-LVVVV-1234 --proxy-url http://localhost:8080 --email <account@email.com> --pw <password>
Mac: qt-unified-macOS-x64-4.3.0-online create-offline qt.qt5.5158.clang_64 --confirm-command --auto-answer telemetry-question=Yes,AssociateCommonFiletypes=Yes --default-answer --accept-licenses --root /Users/<username>/MyOfflineInstaller --offline-installer-name offlineInstaller --license-keys XXXXX-XQX-FFF-XXX-RNAXX-LVVVV-1234 --proxy-url http://localhost:8080 --email <account@email.com> --pw <password>
Windows: qt-unified-windows-x86-4.3.0-online.exe create-offline qt.qt5.5158.win64_msvc2019_64 qt.qt5.5158.win64_mingw81 --confirm-command --auto-answer telemetry-question=Yes,AssociateCommonFiletypes=Yes --default-answer --accept-licenses --root C:\Users\<username>\MyOfflineInstaller --offline-installer-name offlineInstaller --license-keys XXXXX-XQX-FFF-XXX-RNAXX-LVVVV-1234 --proxy-url http://localhost:8080 --email <account@email.com> --pw <password>
Install with offline installer
Install with following command, make sure you have the proxy running before installing:
Linux: /home/<username>/MyOfflineInstaller/offlineInstaller.run install qt.qt5.5158.gcc_64 --confirm-command --auto-answer telemetry-question=Yes,AssociateCommonFiletypes=Yes --default-answer --accept-licenses --root /home/<username>/MyOfflineInstallation
Mac: /Users/<username>/MyOfflineInstaller/offlineInstaller install qt.qt5.5158.clang_64 --confirm-command --auto-answer telemetry-question=Yes,AssociateCommonFiletypes=Yes --default-answer --accept-licenses --root /Users/<username>/MyOfflineInstallation
Windows: C:\Users\<username>\MyOfflineInstaller\offlineinstaller.exe install qt.qt5.5158.win64_msvc2019_64 qt.qt5.5158.win64_mingw81 --confirm-command --auto-answer telemetry-question=Yes,AssociateCommonFiletypes=Yes --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. Use the platform specific commands above with: --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