有时,当我在 Windows 上使用带有“更新组件”的 maintenancetool.exe 时,下载并安装更新后会显示一条错误消息:
安装过程中出错 (com.myapp.windows_x86_64):无法写入许可证文件:C:\Program Files(x86)/MyApp/Licenses\license.txt
可选择忽略错误、重试或退出。我不知道如何防止这个错误。我的 package.xml 文件有以下行:
<Licenses>
<License name="MyApp Public License Agreement" file="license.txt" />
</Licenses>
并且 license.txt 按照https://doc.qt.io/qtinstallerframework/ifw-tutorial.html#adding-licenses中的说明存储在与 package.xml 相同的目录中。
编辑:我意识到我无意中使用了 qt 安装程序框架版本 1,所以这可能是Sergio 指出的错误QTIFW-315 。我已经更新到第 3 版,这似乎解决了这个问题。