Qt Installer Framework 创建安装程序

Creating Installers

创建安装程序

To create offline and online installers, do the following:

要创建脱机和联机安装程序,请执行以下操作:

1.Create a package directory for the installable components. For more information, see Package Directory.

​1.为可安装组件创建一个包目录。有关更多信息,请参阅包目录。

2.Create a configuration file called config.xml in the config directory. It has information about how to build the installer binaries and online repositories. For more information about the file format and available settings, see Configuration File.

​2.在config目录中创建一个名为config.xml的配置文件。它包含有关如何构建安装程序二进制文件和在线存储库的信息。有关文件格式和可用设置的详细信息,请参阅配置文件。

3.Create a package information file called package.xml in the packages\{component}\meta directory. It has settings for deployment and the installation process. For more information, see Meta Directory.

​3.在packages\{component}\meta目录中创建一个名为package.xml的包信息文件。它具有部署和安装过程的设置。有关更多信息,请参阅Meta目录。

4.Create installer content and copy it to the package directory. For more information, see Data Directory.

​4.创建安装程序内容并将其复制到包目录。有关详细信息,请参阅Data目录。

5.For online installers, use the repogen tool to create the repository that has the installable content and upload the repository to a web server.

5.对于在线安装程序,使用repogen工具创建具有可安装内容的存储库,并将存储库上传到web服务器。

6.Use the binarycreator tool to create the installer. For more information, see Tools.

​6.使用binarycreator工具创建安装程序。有关详细信息,请参阅工具。

For an example of how to create a simple installer that uses the predefined installer pages, see Tutorial: Creating an Installer.

​有关如何创建使用预定义安装程序页面的简单安装程序的示例,请参阅教程:创建安装程序。

The following sections describe how to create different types of installers:

以下部分描述了如何创建不同类型的安装程序:

Tutorial: Creating an InstallerCreating Offline Installers

© 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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值