Windows平台的Qt封装

发布于 2024-12-16 19:43:11 字数 115 浏览 0 评论 0原文

我正在为我的针对 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 技术交流群。

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

发布评论

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

评论(5

仅此而已 2024-12-23 19:43:11

对于打包,我使用 WIX (Windows Installer XML) 工具集

使用 WIX 有几个优点:

  • 免费且开源
  • 创建 MSI 文件,使您的应用程序可以轻松地跨大型网络部署并正确卸载(也非常重要)
  • 由 Microsoft 支持和开发,由其他几个 Microsoft 团队使用内部,例如 Visual Studio 11 开发人员预览安装程序具有一些最新的 WIX 功能
  • XML 配置允许重用安装程序的组件(文件集、功能集)
  • 多种类型的用户界面,可以创建新的向导页面
  • 集成到 Visual Studio
  • 集成到 MSBuild - 可以允许一致的打包以确保您不会发布调试版本

我已将 WIX 用于工作中的安装程序和我自己在家中的项目。

它不像其他解决方案那样简单上手,但一旦创建了一个简单的包,您就会发现添加新功能很容易。

For packaging I use the WIX (Windows Installer XML) toolset.

There are several advantages to using WIX:

  • Free and open-source
  • Creates MSI files, which allows your application to be easily deployed across large networks and correctly uninstalls (also very important)
  • Supported and developed by Microsoft, it is used by several other Microsoft teams internally, e.g the Visual Studio 11 Developer Preview installer features some of the latest WIX features
  • XML configuration allows reuse of components of installers (sets of files, feature sets)
  • Several types of user interface, new wizard pages can be created
  • Integrates into Visual Studio
  • Integrates into MSBuild - can allow consistent packaging to ensure you don't ship debug versions

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.

被你宠の有点坏 2024-12-23 19:43:11

我认为 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!

若言繁花未落 2024-12-23 19:43:11

Qt 没有任何可以帮助您的东西,但是免费的 Windows 安装程序包创建者毫无疑问是 NSIS

Qt has nothing that can help you, but the free Windows installer package creator is without a doubt NSIS

谁的新欢旧爱 2024-12-23 19:43:11

Inno Setup 是另一个优秀的、免费的、轻量级的安装程序系统。

Inno Setup is a another good, free, light-weight installer system.

緦唸λ蓇 2024-12-23 19:43:11

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.)

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