Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在编写一个 Qt 安装程序框架脚本,我希望允许用户使用参数启动安装程序,然后以各种方式应用这些参数。例如,自动接受 EULA 的开关、直接传递目标目录的方法、要安装的组件列表等。
将参数传递给 QIFW 安装程序的语法是 Key=Value。
您可以提供如下命令行参数
YouInstaller.exe Arg1=true
然后您可以在组件或控制器脚本中获取此值,如下所示
var Arg1 = installer.value('Arg1')
安装程序 QML 类型
控制器脚本