Qt Installer Framework创建在线安装程序

Qt Installer Framework翻译(5-3) 推广更新 创建在线安装程序,以便能够向安装产品的用户推广更新。 为了推广更新,需要执行以下步骤: 将待更新内容复制到package文件夹。 在package.xml文件中增加待更新组件的 元素的值。 使用repogen工具重新创建具有待更新内容的联机存储库,并在存储库的根目录中生成Updates.xml文件。 将存储库上传到Web服务器。 使用bina... 阅读详情

Creating Online Installers

创建在线安装程序

Online installers fetch the repository description (Updates.xml), in addition to the one stored inside of the binary. Create a repository and upload it to a web server. Then specify the location of the repository in the config.xml file that you use to create the installer.

除了存储在二进制文件中的描述外,在线安装程序还会获取存储库描述(Updates.xml)。创建一个存储库并将其上传到web服务器。然后在用于创建安装程序的config.xml文件中指定存储库的位置。

Creating Repositories

创建存储库

Use the repogen tool to create online repositories of all packages of one package directory:

使用repogen工具创建一个包目录中所有包的在线存储库:

repogen.exe -p <package_directory> <repository_directory>

For example, to create a repository that contains only org.qt-project.sdk.qt and org.qt-project.sdk.qtcreator, enter the following command:

例如,要创建仅包含org.qt-project.sdk.qt和org.qt-prject.sdk.qtcreator的存储库,请输入以下命令:

repogen.exe -p packages -i org.qt-project.sdk.qt,org.qt-project.sdk.qtcreator repository

When the repository has been created, upload it to a web server. You must specify the location of the repository in the installer configuration file.

创建存储库后,将其上传到web服务器。必须在安装程序配置文件中指定存储库的位置。

Configuring Repositories

配置存储库

The <RemoteRepositories> element in the installer configuration file (config.xml) can contain a list of several repositories. Each of them can have the following settings:

安装程序配置文件(config.xml)中的<RemoteRepositories>元素可以包含多个存储库的列表。它们中的每一个都可以有以下设置:

  • <Url>, which points to a list of available components.
  • <Url>,指向可用组件的列表。
  • <Enabled>, with 0 disabling this repository.
  • <Enabled>,0禁用此存储库。
  • <Username>, which is used as user on a protected repository.
  • <Username>,在受保护的存储库中用作用户。
  • <Password>, which sets the password to use on a protected repository.
  • <Password>,用于设置在受保护的存储库上使用的密码。
  • <DisplayName>, which optionally sets a string to display instead of the URL.
  • <DisplayName>,它可以选择设置要显示的字符串而不是URL。

The URL needs to point to the Updates.xml file that lists the available components. For example:

URL需要指向列出可用组件的Updates.xml文件。例如:

<RemoteRepositories>
     <Repository>
             <Url>http://www.example.com/packages</Url>
             <Enabled>1</Enabled>
             <Username>user</Username>
             <Password>password</Password>
             <DisplayName>Example repository</DisplayName>
     </Repository>
</RemoteRepositories>

The installer works only if it can access the repository. If the repository is accessed after the installation, the maintenance tool rejects installation. However, uninstallation is still possible. A repository can be enabled or disabled by default. For repositories requiring authentication, the details can also be set here, although entering a password here is usually not advisable as it is saved in plain text. Authentication details not set here will be gotten at runtime using a dialog. The user can work around these settings at runtime.

安装程序只有在可以访问存储库时才能工作。如果在安装后访问存储库,维护工具将拒绝安装。但是,卸载仍然是可能的。默认情况下,可以启用或禁用存储库。对于需要身份验证的存储库,也可以在此处设置详细信息,但通常不建议在此处输入密码,因为它以纯文本形式保存。此处未设置的身份验证详细信息将在运行时使用对话框获取。用户可以在运行时绕过这些设置。

Configuring Repository Categories

配置存储库类别

The <RepositoryCategory> element in the installer configuration file (config.xml) can contain a list of several <RemoteRepositories> elements. Each <RemoteRepositories> element within the <RepositoryCagetory> element is considered a category. Each catecory can have a <DisplayName>, a <Tooltip>, a <Preselected> element and several <Repository> elements. Repository categories are shown in the component selection page, on the left side of the component selection widget:

安装程序配置文件(config.xml)中的<RepositoryCode>元素可以包含几个<RemoteRepositories>元素的列表。<RepositoryCagetory>元素中的每个<RemoteRepositories>元素都被视为一个类别。每个类别可以有一个<DisplayName>、<Tooltip>、一个<Preselected>元素和几个<Repository>元素。存储库类别显示在组件选择页面的组件选择widget左侧:

By default, only repositories with no category are shown in the component selection widget. Checking one or several repositories and pressing Fetch will update the widget to show content also from the selected categorized repositories. Components in the repository categories are marked as unstable meaning that you can install other components although some components have missing dependencies, script errors and so on. For more information about unstable components, see Summary of Configuration File Elements.

​默认情况下,组件选择widget中只显示没有类别的存储库。检查一个或多个存储库并按Fetch将更新widget,以显示所选分类存储库中的内容。存储库类别中的组件标记为不稳定,这意味着可以安装其他组件,尽管某些组件缺少依赖关系、脚本错误等。有关不稳定组件的更多信息,请参阅配置文件元素摘要。

Example of creating a repository category:

创建存储库类别的示例:

<RepositoryCategories>
    <RemoteRepositories>
         <Displayname>Category 1</Displayname>
         <Preselected>true</Preselected>
         <Tooltip>Tooltip for category 1</Tooltip>
         <Repository>
                 <Url>http://www.example.com/packages</Url>
                 <Enabled>1</Enabled>
                 <Username>user</Username>
                 <Password>password</Password>
                 <DisplayName>Example repository</DisplayName>
         </Repository>
    </RemoteRepositories>
</RepositoryCategories>

Creating Installer Binaries

创建安装程序二进制文件

To create an online installer by using the binarycreator tool, enter the following command:

要使用binarycreator工具创建在线安装程序,请输入以下命令:

<location-of-ifw>\binarycreator.exe -t <location-of-ifw>\installerbase.exe -p <package_directory> -c <config_directory>\<config_file> -e <packages> <installer_name>

For example, enter the following command to create an installer binary called SDKInstaller.exe that will not contain data for org.qt-project.sdk.qt and org.qt-project.qtcreator, because those packages are downloaded from a remote repository:

例如,输入以下命令以创建名为SDKInstaller.exe的安装程序二进制文件,该文件不包含org.qt-project.sdk.qt和org.qt-prject.qtcreator的数据,因为这些包是从远程存储库下载的:

binarycreator.exe -p installer-packages -c installer-config\config.xml -e org.qt-project.sdk.qt,org.qt-project.qtcreator SDKInstaller.exe

Reducing Installer Size

减小安装程序大小

Even if the components are fetched from a web server, binarycreator adds them to the installer binary by default. However, when the installer checks the web server for updates, end users are spared a download if new versions are not available.

即使组件是从web服务器获取的,默认情况下binarycreator也会将它们添加到安装程序二进制文件中。但是,当安装程序检查web服务器是否有更新时,如果新版本不可用,最终用户可以免下载。

Alternatively, you can create online installers that do not contain any data and that fetch all the data from the web server. Use the -n parameter of the binarycreator tool and only add the root component to the installer. Usually the root component is empty and hence only adds the XML description of the root.

或者,可以创建不包含任何数据的在线安装程序,并从web服务器获取所有数据。使用binarycreator工具的-n参数,只将根组件添加到安装程序中。通常根组件是空的,因此只添加根的XML描述。

For more information about the options that you have, see Summary of binarycreator Parameters.​
有关拥有的选项的更多信息,请参阅binarycreator参数摘要

Creating Offline InstallersPromoting Updates

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

Qt官方的安装包制作框架 Qt installer framework 以前打包都用第三方的NSIS,很简单也很方便。无意了解到Qt Installer Framework,是Qt官方的安装包制作框架。所以还是了解学习一下官方的打包安装方法吧。在网上看到Qt Installer Framework, Qt默认包的发布框架。 现在从零开始记录下Qt Installer Framework的安装使用方法: 下载地址:http://download.qt.io/offic 阅读详情

相关推荐

使用 Qt Installer Framework (QtIFW) 制作安装包全流程

​一文看懂如何利用QtIFW制作安装包,小白也能看懂且学会的软件安装包制作教程。更新:团队现在改成使用 Installer Studio 这个软件来打包了,用过NSIS, Inno Setup,InstallShield,Qt Installer Framework(QtIFW),Advanced Installer和 Installer Studio,还是觉得 Installer Studio 好用太多了

qts_apps的博客 3144

Qt Installer Framework在线安装程序示例

使用重新生成工具和配置文件设置在线安装程序。Online Installer演示了如何设置在线安装程序,该安装程序从服务器获取原始包并对其进行更新。

aggs1990的专栏 312

Qt Installer Framework打包基础

本文介绍了Qt Installer Framework框架,并使用它来创建一个基本的安装程序。

王の领土 1242

Qt Installer Framework 使用说明(二)

目录 4、教程: 创建一个安装程序 创建软件包目录 创建配置文件 创建程序包信息文件 指定组件信息 指定安装程序版本 添加许可证 选择默认内容 创建安装程序内容 创建安装程序二进制文件 5、创建安装程序 Creating Installers 创建离线安装程序 Creating Offline Installers 创建在线安装程序 Creating Online Installers 创建存...

weixin_34232617的博客 1392

使用 Qt IFW 制作自己的在线安装程序

在使用 Qt Creator 的情况下,可以在“帮助”菜单中找到“安装外观和工具”,然后选择“Qt Installer Framework”进行安装。在 Qt IFW 的帮助下,我们可以轻松创建自己的在线安装程序,并根据需要定制不同的组件和安装选项。在 Qt Creator 的菜单栏中选择“构建”,然后选择“构建解决方案”或者“构建独立的安装程序”。在 Qt Creator 的菜单栏中选择“项目”,然后选择“添加新文件”,并选择“Qt Installer Framework”模板。

HackLogic的博客 320

Qt IFW 创建在线安装程序

与其他打包工具相比,Qt IFW 有很多优点:简单、易上手、跨平台...此外,它既能创建离线安装程序,又能创建在线安装程序。 如果看过之前的 Qt IFW 相关教程,你会发现创建在线安装程序并不困难,它只不过是多了一些存储库的创建、以及配置过程而已。

青春不老,奋斗不止! 2531

Qt Installer Framework Manual : Qt Installer Framework Manual

Qt Installer Framework Manual : Qt Installer Framework Manual Qt Installer Framework Manual : Qt Installer Framework ManualVersion 1....

183

使用Qt IFW创建自定义的在线安装程序

Qt Installer Framework(IFW)是一个强大的工具,可以帮助开发人员创建定制化的安装程序。例如,Name元素指定安装程序的名称,Version元素指定版本号,Title元素指定安装程序的标题,Publisher元素指定发布者等。通过使用Qt IFW,您可以轻松创建定制化的在线安装程序。本文介绍了创建安装程序的基本步骤,并提供了相应的源代码示例。安装程序的配置文件是一个XML文件,用于指定安装程序的设置和行为。按照安装向导的指示进行操作,并确保安装过程中的操作和行为与您的预期一致。

UhxzCombined的博客 314

Qt Installer Framework 使用说明(一)

目录 Qt Installer Framework 使用说明 1、Qt Installer Framework概述 选择安装包类型 促进更新 提供安装内容 2、入门指南 支持的平台 从源代码构建 支持的编译器 配置Qt 设置Qt安装程序框架 3、最终用户工作流程 初次安装 启动安装程序 选择目标目录 选择组件 接受许可协议 选择Windows程序组 安装组件 添加组件 启动程序包管理器 ...

weixin_33749242的博客 1528

使用Qt Installer Framework创建软件安装程序

我们创建了一个项目文件来定义安装程序的设置和配置,创建了必要的代码文件来实现安装程序的逻辑,并创建了一个安装向导页面来指导用户完成安装过程。通过使用Qt Installer Framework,开发人员可以轻松地创建跨平台的软件安装程序,并提供良好的用户体验。本文将介绍如何使用Qt Installer Framework来创建一个基本的软件安装程序,并提供相应的源代码示例。然后,使用Qt的uic工具将.ui文件转换为对应的头文件。在开始之前,我们需要创建一个项目文件,该文件将定义安装程序的设置和配置。

ByteWhizX的博客 281

QT Installer Framework 从入门到打包实战

随着软件开发的不断演进,应用的分发与安装变得越来越重要。QT Installer Framework正是在这样的背景下应运而生,它是一个用于创建跨平台安装程序的开源框架,专为解决软件部署的复杂性问题而设计。本章将介绍QT Installer Framework的基本概念、特点以及如何利用它来简化安装包的生成过程。QT Installer Framework是一个基于Qt开发的工具集,它允许开发者为自己的应用程序创建专业的安装包。

weixin_42515392的博客 1812

Qt Installer Framework实战

Qt Installer Framework是Qt发布的安装程序支持框架,只需要简单的配置就可以生成安装文件,同时可以通过javascript脚本来定制安装过程。 目录结构 config packages data meta 配置文件 config/config.xml packages/[product]/meta/package.xml packages/[produ...

weixin_33831196的博客 114

目标检测数据集 第069期-基于yolo标注格式的玻璃清洁状态检测数据集(含免费分享)

但这类技术的落地,离不开大量标注规范、场景丰富的数据集作为算法训练的支撑,玻璃清洁状态检测数据集的出现,正是为了满足这一市场与技术需求。在高校与科研机构的计算机视觉研究中,该数据集可作为基础研究素材,用于探索物体状态识别的算法优化方向,比如针对玻璃这类透明物体的检测算法改进,或是小样本场景下的状态识别研究。通过摄像头采集车窗、挡风玻璃的图像,算法自动检测玻璃清洁度,若识别到脏污影响视线,及时提醒运维人员清洁,避免因玻璃脏污引发的安全事故,提升交通出行的安全性。

深度学习算法工程师,专注于前沿算法研究与实战应用。在这里,我将分享深度学习领域的实战经验、优质数据集资源以及最新论文解读与精度分析,旨在与广大技术爱好者共同探索人工智能的奥秘,助力技术成长与创新。 130

Qt Installer Framework自定义安装程序

operationspackagesand aScript​可以使用组件脚本和控制脚本来自定义安装程序。通过在组件的package.xml文件的Script元素中指定它,组件脚本与特定组件相关联。在获取组件的元数据时加载脚本。有关组件脚本的更多信息,请参阅组件脚本。​通过在安装程序的config.xml文件的ControlScript元素中指定控制脚本,控制脚本与整个安装程序相关联。控制脚本可以是安装程序资源的一部分,也可以在命令行上传递。它们可用于在加载组件之前修改呈现给用户的安装程序页面。

aggs1990的专栏 1562

期权专题9:雪球期权(一)(BSM+蒙特卡罗定价)

python;雪球定价;蒙特卡罗

mhmh123789的博客 8108

AI全景之第八章第三节:时间序列分析与预测技术

摘要 时间序列分析与预测技术从传统统计模型发展到深度学习方法。传统方法包括ARIMA模型(处理趋势和季节性)、指数平滑(加权平均预测)和状态空间模型(概率框架分解)。机器学习方法通过特征工程和树模型提升非线性建模能力。深度学习方法中,RNN/LSTM处理序列依赖,TCN利用因果卷积,Transformer通过注意力机制捕获长程依赖。当前研究趋势结合神经符号方法和生成模型,以提高预测精度和可解释性。不同方法各具优势,需根据数据特性和预测需求选择。

技术引领业务创新 996

Qt Installer Framework修改提取安装程序示例

使用组件脚本中的提取存档挂钩修改目标路径。Modify Extract Installer演示了如何覆盖component.createOperationsForArchive()函数,以便能够将组件安装到修改后的路径。

aggs1990的专栏 931

java对接海康实现页面实时播放和回放

前言:之前已经写过一篇关于视频的文章,因为觉得有很多优化的地方,也谢谢同行们加我微信跟我提了一些需求和意见,所以在过年的假期重新写了一个比较能扩张的版本。 上一个版本的连接:https://blog.csdn.net/weixin_45848110/article/details/119363602 与之前的版本不同之处: 1.不需要安装ffmpeg 2.不需要安装nginx 3.直接运行jar即可 4.之前是完全脱离海康sdk,回放的录像是保存到本地服务,现在是直接在海康硬盘录像机获取录像回放 5.实时播

weixin_45848110的博客 1万+

Qt Installer Framework 创建安装程序

​2.在config目录中创建一个名为config.xml的配置文件。它包含有关如何构建安装程序二进制文件和在线存储库的信息。有关文件格式和可用设置的详细信息,请参阅配置文件。​3.在packages\{component}\meta目录中创建一个名为package.xml的包信息文件。5.对于在线安装程序,使用repogen工具创建具有可安装内容的存储库,并将存储库上传到web服务器。​有关如何创建使用预定义安装程序页面的简单安装程序的示例,请参阅教程:创建安装程序。有关更多信息,请参阅包目录。

aggs1990的专栏 178

智能车竞赛走马观碑组:如何高效识别目标板并优化绕行策略(附实战代码)

本文深入探讨了智能车竞赛走马观碑组中,如何构建从图像识别到路径决策的全栈优化方案。针对目标板识别与绕行策略的核心难点,文章详细解析了基于MobileNetV2的高效识别流水线、结合预瞄点与纯追踪算法的平滑路径规划,以及横向与纵向协同控制策略,并提供了实战代码与调试指南,旨在全面提升小车的比赛表现。

o5p6q的博客 888

运行时安全引擎RSE

该博客重点介绍了运行时安全引擎(Runtime Security Engine,简称 RSE)与应用处理器(Application Processor,简称 AP)之间的关系。 根据 ARM 的参考设计,RSE 是位于同一芯片(die)上的一个独立核心,与 AP 和系统控制处理器(System Control Processor,简称 SCP)并列存在。RSE 为整个系统提供基本的安全保障和运行时服务,例如:可信启动(trusted boot)、度量启动(measured boot)、平台认证(platf

AI-安全-功耗 1371

Qt Installer Framework隐藏复选框示例

使用组件的package.xml文件隐藏项目的复选框。隐藏复选框说明了如何隐藏项目的复选框。

aggs1990的专栏 1075

c++ webrtc基础(1) :webrtc源码下载与编译、项目模块介绍、学习资料推荐

本篇博客介绍webrtc源码的下载与编译,以及推荐webrtc学习资料。 源码下载 电脑环境:win10/win11 64bit,合理的上网环境,没有合理的网络环境无法拉取、下载webrtc代码和工具,宽带速度要快,尽量50M. 主要步骤如下: (1) 安装git (2) 打开cmd控制台,下载google开发工具depot_tools: git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git (3) 新建一个目

琅嬛福地 3303

Qt Installer Framework依赖性解决示例

使用组件的package.xml文件定义组件之间的依赖关系和自动依赖关系。依赖性解决说明了如何在包信息文件中指定组件之间的依赖关系和自动依赖关系,以及这如何影响安装和维护过程。

aggs1990的专栏 837

NTscan扫描工具

ntscan是一个扫描器,可以扫描没有密码和弱密码的共享,先到配置文件中填写猜测的用户名和密码,扫描过程中右侧出现的是扫描日志。

廖雪峰Python教程[完整版]

廖雪峰的python教程整理的,已经排好版了,而且还是完整的,适合小白

上一篇: Qt Installer Framework创建离线安装程序
下一篇: Qt Installer Framework自定义安装程序
꧁白杨树下꧂
博客等级 码龄15年 1019粉丝 209原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

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

抵扣说明:

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

余额充值
⌂ 换网址