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:
以下部分描述了如何创建不同类型的安装程序:
- Creating Offline Installers
- 创建离线安装程序
- Creating Online Installers
- 创建在线安装程序
- Promoting Updates
- 发布更新
- Customizing 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.