QtSiteLicense: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
==Create offline installer with specified license key and proxy:==
==Create offline installer with specified license key and proxy:==
The generated offline installer in the example will contain QtCreator, and Qt 6.2.2 binaries.
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>
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.qt6.622.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 --at <nowiki>https://ordp.qt.io/qtsdkrepository/linux_x64/desktop/tools_qtcreator_test</nowiki> --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.qt6.622.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 --at <nowiki>https://ordp.qt.io/qtsdkrepository/mac_x64/desktop/tools_qtcreator_test</nowiki> --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.qt6.620.win64_mingw81 qt.qt6.622.win64_msvc2019_64 --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 --at <nowiki>https://ordp.qt.io/qtsdkrepository/windows_x86/desktop/tools_qtcreator_test</nowiki> --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>
 
 
NOTE: The --at <url>/tools_qtcreator_test  is only for temporary testing and can be removed once the final 6.0.2 QtCreator is released.


==Install with offline installer==
==Install with offline installer==
Install with following command, make sure you have the proxy running before installing:
Install with following command, make sure you have the proxy running before installing:


Linux:  /home/<username>/MyOfflineInstaller/offlineInstaller.run install qt.qt6.622.gcc_64 --confirm-command --auto-answer telemetry-question=Yes,AssociateCommonFiletypes=Yes --default-answer --accept-licenses --root /home/<username>/MyOfflineInstallation
'''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.qt6.622.clang_64 --confirm-command --auto-answer telemetry-question=Yes,AssociateCommonFiletypes=Yes --default-answer --accept-licenses --root /Users/<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.qt6.620.win64_mingw81 qt.qt6.622.win64_msvc2019_64 --confirm-command --auto-answer telemetry-question=Yes,AssociateCommonFiletypes=Yes --default-answer --accept-licenses --root C:\Qt\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==
==Overwriting the license keys and proxy url==
License keys and proxy can be overwritten in the offline installer:
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'''
 
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>
You can also change the proxy by setting the env variable QT_API_URL=<new_proxy_url>

Latest revision as of 12:02, 2 February 2022

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