Windows平台的Qt封装
我正在为我的针对 Windows 平台的 Qt 应用程序寻找 Qt 打包程序。
我需要它来创建一个很好的安装程序来在 Windows PC 上部署和分发我的产品。
哪个是最好的和推荐的免费打包程序?
I'm looking for Qt packager for my Qt application targeted for windows platform.
I need it to create a nice installer to deploy and distribute my product on windows PC.
Which is best and recommended FREE packager?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
对于打包,我使用 WIX (Windows Installer XML) 工具集。
使用 WIX 有几个优点:
我已将 WIX 用于工作中的安装程序和我自己在家中的项目。
它不像其他解决方案那样简单上手,但一旦创建了一个简单的包,您就会发现添加新功能很容易。
For packaging I use the WIX (Windows Installer XML) toolset.
There are several advantages to using WIX:
I have used WIX for installers at work and for my own projects at home.
It isn't as simple as other solutions to get started, but once you've created a simple package, you'll find it easy to add new features.
我认为 NSIS 是可行的方法。直接的脚本编写,与所有 Microsoft 操作系统兼容并支持用户级别。
此外,它还有一个庞大的活跃论坛,可为您可能需要的任何具体帮助提供帮助。我使用 HMNSIS 编辑器来编写脚本,但还没有遇到任何它无法完成的事情!
NSIS is the way to go in my opinion. Straight forward scripting, compatible with all Microsoft Operating Systems and with support for User Levels.
Plus it has a huge active forum for any specific help you may need. I use the HMNSIS editor to write the scripts and have not come across anything it hasn't been able to do yet!
Qt 没有任何可以帮助您的东西,但是免费的 Windows 安装程序包创建者毫无疑问是 NSIS
Qt has nothing that can help you, but the free Windows installer package creator is without a doubt NSIS
Inno Setup 是另一个优秀的、免费的、轻量级的安装程序系统。
Inno Setup is a another good, free, light-weight installer system.
有 Qt 安装程序框架。这是其手册的链接。它是多平台的。使用它,您可以在目录结构中编写 XML 文件,以交付目录中的组件(称为包)。它有脚本。然后,您可以将其编译成适合您的目标平台的设置。
如果我错了,请纠正我,但我的印象是他们直到最近的版本才向社区版的用户提供它。当写早期的回复时,它很可能只是商业版本。
唉,似乎没有任何东西警告你必须收集组件,也没有告诉你它们是什么,甚至没有谈论这个过程;除了第三个。派对,但免费(仅限 Windows),Dependency Walker 可以告诉您正在使用哪些动态库。我不认为这是必要的,但它可能会有所帮助。 (提示:无论如何,在 Windows 上,请务必将“qwindows.dll”与 exe 一起放入“platforms”目录中。提示 #2:确保 Qt DLL 或静态库是为您的编译器编译的。)
There is the Qt Installer Framework. That is a link to the manual for it. It is multi-platform. With it, you write XML files in a directory structure for delivery of components in the directories, called packages. It has scripting. You then compile it into a setup for your target platform.
Correct me if I'm wrong, but I was under the impression that they did not make it available to users of the Community edition until recent versions. When the earlier replies were written, it may well have been commercial version only.
Alas, nothing seems to warn you that you have to collect up components, nor tell you what they are, or even talk about the process; except that the 3rd. party, but free (Windows only), Dependency Walker can tell you what dynamic libraries are being used. I don't find it a necessity, but it can be helpful. (Tip: On Windows anyway, be sure to put "qwindows.dll" in a "platforms" directory with the exe. Tip #2: Make sure the Qt DLL's or static libraries are ones compiled for your compiler.)