Qt Installer Framework自定义安装程序

Customizing Installers

自定义安装程序

You can use scripting to customize installers by:

可以使用脚本通过以下方式自定义安装程序:

  • Adding Qt Installer Framework operations that are prepared by the scripts and performed by the installer.
  • 添加由脚本准备并由安装程序执行的Qt安装程序框架操作。
  • Adding new pages that you specify in the package.xml file and place in the packages directory.
  • 添加在package.xml文件中指定的新页面,并将其放置在packages目录中。
  • Modifying existing pages by inserting custom user interface elements into them as single widgets.
  • 通过将自定义用户界面元素作为单个widget插入现有页面来修改它们。
  • Adding language variants.
  • 添加语言变量。

You can use both component scripts and a control script to customize installers. A component script is associated with a particular component by specifying it in the Script element of the package.xml file of the component. The script is loaded when the component's metadata is fetched. For more information about component scripts, see Component Scripting.

​可以使用组件脚本和控制脚本来自定义安装程序。通过在组件的package.xml文件的Script元素中指定它,组件脚本与特定组件相关联。在获取组件的元数据时加载脚本。有关组件脚本的更多信息,请参阅组件脚本。

A control script is associated with the whole installer by specifying it in the ControlScript element of the config.xml file of the installer. Control scripts can be part of the installer resources or be passed on the command line. They can be used to modify the installer pages that are presented to users before components are loaded. Also, you can use them to modify pages in the uninstaller. For more information, see Controller Scripting.

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

For more information about the global JavaScript objects that can be used in component and control scripts, see Scripting API.

​有关可在组件和控制脚本中使用的全局JavaScript对象的更多信息,请参阅编写API脚本。

Adding Operations

添加操作

You can use component scripts to perform Qt Installer Framework operations during the installation process. Typically, operations manipulate files by moving, copying, or patching them. Use the 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

꧁白杨树下꧂

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值