WiX:真的没有简单的方法来开始使用 Visual Studio 吗?

发布于 2024-09-25 07:18:50 字数 678 浏览 0 评论 0原文

我使用 Visual Studio 2010 安装了 WiX 3.5,因为我读过很多人说 WiX 是 Visual Studio 安装项目这个地狱般的绝佳替代品,但看起来它确实需要付出更多的努力才能使最简单的安装程序。我错过了什么吗?

在 VS 安装项目中,我可以将项目输出添加到我的 ProgramFilesFolder 中,VS 会自动清除解决方案中其他项目的所有依赖 dll,以及第 3 方库等。从(显然有些过时的)在线文档中阅读了后,我想也许 WiX 最终有了类似的东西,但它实际上并没有引入依赖库——它只是让将单个项目的输出添加到片段中变得更容易,而无需进行大量额外的输入。

因此,我能看到的最好办法就是手动将解决方案中我想要安装程序中的每个项目添加到我的 WiX 设置项目中(并将 Harvest 设置为 true,因为这似乎不是默认设置)。我可能会写一个小 perl 脚本来做到这一点。然后我必须以某种方式确定所有非项目相关的 dll(可能最容易查看 VS 安装项目)并手动添加一些 wxs 代码来包含它们(因为显然 WiX 项目只处理对项目的引用,而不是原始的dll 的)。然后在一个简单的 UI 中进行编辑,我可以使用网上的示例。以及快捷方式的代码。

有更好的办法吗?

I installed WiX 3.5 with Visual Studio 2010, as I've read lots of people saying that WiX is a great alternative to that hellhole that is the Visual Studio Setup project, but it sure seems like it requires a lot more effort to make even the simplest installer. Am I missing something?

In a VS setup project, I can add a project output to my ProgramFilesFolder, and VS automatically sweeps up all the dependent dll's from the other projects in the solution, as well as 3rd-party libraries and such. After reading this from the (apparently somewhat out of date) online docs, I thought maybe WiX finally had something similar, but it doesn't actually pull in dependent libraries--it just makes it easier to add that single project's output to a fragment without a lot of extra typing.

So the best I can see to do is manually add to my WiX setup project every single project in my solution that I want in the installer (and set Harvest to true, since that doesn't seem to be the default). I'd probably write a little perl script to do that. Then I have to determine all the non-project dependent dll's somehow (probably easiest to look at the VS setup project for that) and add by hand some wxs code to include them (since apparently the WiX project only handles references to projects, not raw dll's). Then edit in a simple UI, for which there are samples on the web I can work from. And code for shortcuts.

Is there a better way?

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

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

发布评论

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

评论(1

救赎№ 2024-10-02 07:18:50

这是一个非常主观且长答案的问题。从质量和能力的角度来看,WiX 击败了 VDPROJ。从学习曲线的角度来看,并没有那么多。

查看 IntallShield 2010LE(限量版/免费)或查看 Industrial Strength Windows Installer XML (IsWiX)(免责声明:我我是协调员)我使用这个工具来完成大部分繁重的工作,然后手动编写少量的 WiX 将它们粘合在一起。

This is a very subjective and long answer type question. From a quality and capability perspective, WiX kills VDPROJ. From a learning curve perspective, not so much.

Check out IntallShield 2010LE ( Limited Edition / Free ) or look at Industrial Strength Windows Installer XML ( IsWiX ) (Disclaimer: I am the coordinator ) I use this tool to do the majority of my heavy lifting and then write small amounts of WiX by hand to glue it all together.

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