我需要 Qt 运行时安装程序或帮助构建一个 (WiX)

发布于 2024-10-28 03:04:52 字数 939 浏览 1 评论 0原文

我正在尝试为我工作的公司构建一套产品的安装程序。该软件是基于 Qt 构建的。该产品套件将一起分发,因此我不想将 Qt 的 dll 包含/复制到每个应用程序文件夹中。我要么想找到 Qt 4.7 运行时的安装程序(希望作为合并模块),要么创建自己的安装程序。现在,我正在创建自己的 WiX 合并模块,但是当我尝试编译合并模块时,我收到以下错误:

error LGHT0104 : Not a valid manifest file; detail: Unexpected XML declaration. The XML declaration must be the first node in the document, and no white space characters are allowed to appear before it. Line 1, position 4.

I am new to the hell of dlls, so I am not certain is bad from the manifest file 或者 if我做错了别的事。这是我创建的清单。我不确定它是否完整(18 个 dll 中的 1 个的 1 个清单):

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
     version="4.7.2.0" 
     processorArchitecture="x86" 
     name="QtScript4.dll" 
     type="win32" />
    <file name="QtScript4.dll"></file>
</assembly>

I am trying to build an installer for a suite of products for a company I work for. The software was built on Qt. The suite of products will be distributed together and so I don't want to include/copy the dll's for Qt into each application folder. I would either like to find an installer for Qt 4.7 runtime (hopefully as a merge module), or create my own. Right now, I am creating my own WiX merge module, but when I try to compile the merge module I get the following error:

error LGHT0104 : Not a valid manifest file; detail: Unexpected XML declaration. The XML declaration must be the first node in the document, and no white space characters are allowed to appear before it. Line 1, position 4.

I am new to the hell of dlls, so I am not sure what is wrong with the manifest file or if I am doing something else wrong. Here is the manifest I created. I am not sure if it is complete (1 manifest for 1 of 18 dlls):

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
     version="4.7.2.0" 
     processorArchitecture="x86" 
     name="QtScript4.dll" 
     type="win32" />
    <file name="QtScript4.dll"></file>
</assembly>

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

流星番茄 2024-11-04 03:04:52

尝试以 UTF-8 格式编写不带 BOM 的 .manifest 文件。由于错误消息指示第 4 列,因此前三个字节可能是错误的 BOM。

Try writing the .manifest file in UTF-8 without a BOM. Since the error message indicates column 4, the first three bytes might be a bad BOM.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文