Overview of Qt Installer Framework
Qt安装程序框架概述
With Qt Installer Framework you can create both simple and complex installers with thousands of components and deploy your installers across all the supported desktop Qt platforms without rewriting the source code. Your final installers have the native look and feel of the platform on which they run: Linux, Microsoft Windows, and macOS.
使用Qt Installer Framework,可以创建具有数千个组件的简单和复杂安装程序,并在所有支持的桌面Qt平台上部署安装程序,而无需重写源代码。最终安装程序具有其运行平台的原生外观和感觉:Linux、Microsoft Windows和macOS。
For example Qt installers are made with the Qt Installer Framework.
例如,Qt安装程序是用Qt安装程序框架制作的。
Both open-source and commercial users can download Qt Installer Framework from their Qt Account.
开源和商业用户都可以从他们的Qt帐户下载Qt安装程序框架。
Qt Installer Framework tools generate installers with a set of pages that guide the users during the installation, update, or uninstallation process. You supply the installable content and specify information about it, such as the name of the product and the installer and the text for the license agreement.
Qt Installer Framework工具生成安装程序,其中包含一组页面,在安装、更新或卸载过程中指导用户。提供可安装的内容并指定有关它的信息,例如产品和安装程序的名称以及许可协议的文本。
You can customize the installers by adding widgets to the predefined pages or by adding whole pages to offer users more options.
可以通过向预定义页面添加小部件或添加整个页面来定制安装程序,为用户提供更多选项。
Each installable package in the installer can contain one component script that gives a comprehensive API to fine-tune how the package should be installed on the system. You can, for example, add shortcuts to the desktop or register file extensions for your tool.
安装程序中的每个可安装程序包都可以包含一个组件脚本,该脚本提供了一个全面的API来微调程序包在系统上的安装方式。例如,可以向桌面添加快捷方式或为工具注册文件扩展名。
Choosing Installer Type
选择安装程序类型
You can offer end users an offline or online installer, or both, depending on your use cases.
可以为最终用户提供离线或在线安装程序,或两者兼而有之,具体取决于用例。

Both installers install a maintenance tool, which allows your end users to later add, update, and remove components. End users can use the maintenance tool to install more components from the server after the initial installation, as well as to receive automatic updates to content as soon as the updates are available on the server. However, this works for an offline installation only if you specify a repository address in the offline installer configuration or if end users specify the repository address themselves in the maintenance tool settings.
这两个安装程序都安装了维护工具,允许最终用户稍后添加、更新和删除组件。最终用户可以在初始安装后使用维护工具从服务器安装更多组件,并在服务器上有更新可用时立即接收内容的自动更新。但是,只有当在脱机安装程序配置中指定存储库地址,或者最终用户在维护工具设置中自己指定了存储库地址时,这才适用于脱机安装。
Offline Installers
离线安装程序
Offline installers contain all the installable components and do not require network connections during the installation.
脱机安装程序包含所有可安装的组件,在安装过程中不需要网络连接。
Create an offline installer to enable users to directly download the installation package on a media for installation on a computer later. You can also distribute the installation package on a CD-ROM or USB stick, for example.
创建脱机安装程序,使用户能够直接在介质上下载安装包,以便以后在计算机上安装。例如,还可以在CD-ROM或USB记忆棒上分发安装包。
Online installers
在线安装程序
Online installers install the maintenance tool and components from an online repository on a web server. After installation, the maintenance tool can be used to modify the installation from an online repository.
在线安装程序从web服务器上的在线存储库安装维护工具和组件。安装后,可以使用维护工具从在线存储库修改安装。
The size of an online installer binary is smaller and its download time is shorter than that of an offline installer binary. The total time spent downloading and running an online installer might also be shorter than downloading and running an offline installer if the end users do not install all the available components.
在线安装程序二进制文件的大小较小,下载时间也比离线安装程序二进制程序短。如果最终用户没有安装所有可用组件,下载和运行在线安装程序所花费的总时间也可能比下载和运行离线安装程序短。
Create an online installer to enable users to always install the latest versions of the content packages.
创建在线安装程序,使用户能够始终安装最新版本的内容包。
- Online repositories
- Online installer
Signing installers
签名安装程序
Signing your installer is an integral step in finalizing your product. Signing shows that your code is safe and secure.
签署安装程序是完成产品的一个不可或缺的步骤。签名表明代码是安全可靠的。
Find more information on signing your installer on Windows platform on Microsoft website. For more information on signing your installer in macOS, see Apple website for code signing and {https://developer.apple.com/documentation/security/notarizing_macos_software_before_distribution} {notarizing}.
在Microsoft网站上查找有关在Windows平台上签署安装程序的详细信息。有关在macOS中签署安装程序的更多信息,请参阅Apple网站上的代码签名和{https://developer.apple.com/documentation/security/notarizing_macos_software_before_distribution}{公证}。
Promoting Updates for Online Installers
为在线安装者推广更新
Make online repositories available to promote updates to end users who install your product. The easiest way to offer an update is to recreate the repository and upload it to the web server. For large repositories, you can update only the changed components.
提供在线存储库,以便向安装产品的最终用户推广更新。提供更新的最简单方法是重新创建存储库并将其上传到web服务器。对于大型存储库,只能更新已更改的组件。
Providing Content for Installers
为安装人员提供内容
You can enable other content providers to add components to the installer as add-on components. The component providers must set up repositories that contain the installable components and deliver the URL that points to the repositories to end users. End users must then configure the URL in the installer. The add-on components are visible in the package manager.
可以允许其他内容提供商将组件作为附加组件添加到安装程序中。组件提供商必须设置包含可安装组件的存储库,并将指向存储库的URL传递给最终用户。然后,最终用户必须在安装程序中配置URL。附加组件在包管理器中可见。
Qt Installer Framework ManualGetting Started
© 2021 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. The Qt Company, Qt and their respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.
2万+



被折叠的 条评论
为什么被折叠?



