如何在 Visual Studio 2010 中添加对 WIX 的“Visual Studio”引用?

发布于 2024-09-07 03:58:10 字数 530 浏览 1 评论 0原文

我有一个包含许多项目和 WIX 安装项目的解决方案。我正在使用 WIX 3.5。

一个项目(从 WIX 安装项目引用)包含对以下内容的引用(VS 中的普通引用):(

C:\Program Files\WPF Toolkit\v3.5.50211.1\WPFToolkit.dll 

简单地说:安装项目 --- 参考 --> 解决方案中的另一个项目 --- 参考 --> WPFToolkit。注意,“引用”不一样 - 第一个是某种 WIX 特定引用,另一个是 Visual Studio 中的普通引用)

我认为也许安装项目中的行(自动生成):

<ComponentGroupRef Id="Product.Generated" />

可以解决它对我来说(即安装程序中还包括 WPFToolkit.dll),但事实并非如此。

显然,我可以在 wxs 文件中手动添加该文件,但维护起来会比较困难。

有更好的解决方案吗? 谢谢!

I've got a solution with many projects and WIX setup project. I'm using WIX 3.5.

One project (that is referenced from WIX setup project) contains a reference (an ordinary reference in VS) to:

C:\Program Files\WPF Toolkit\v3.5.50211.1\WPFToolkit.dll 

(simply: setup project --- reference --> another project in solution --- reference --> WPFToolkit.dll; note that the "references" are not the same - the first one is some kind of WIX specific reference and the other is ordinary reference in Visual Studio)

I thought that maybe the line (automatically generated) in setup project:

<ComponentGroupRef Id="Product.Generated" />

may solve it for me (i.e. includes also WPFToolkit.dll in installer) but it doesn't.

Obviously, I can add the file manually in my wxs file but it will be harder for maintenance.

Is there a better solution?
Thanks!

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

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

发布评论

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

评论(2

前事休说 2024-09-14 03:58:10

如果您希望安装项目在向组件添加新的 WiX 文件时更具可扩展性,我建议创建一个外部工具(可以是 ac# 控制台应用程序)来处理 WiX 文件生成并将它们添加到您的安装项目中。该工具可以有一个配置文件,您可以在其中设置与每个组件相对应的 WiX 文件。

该工具可以添加到自动构建过程中。

If you want your install project to be more extensible when adding new WiX Files to a Component, I would suggest to create an external tool (could be a c# console app) to handle the WiX Files generation and add them to your install project. This tool can have a config file where you can setup which WiX Files correspond to each Component.

This tool can be added to an Automated Build process.

电影里的梦 2024-09-14 03:58:10

您所看到的是通过 WiX 工具集完全执行您想要的操作的初步尝试。在 .wixproj 中对其他项目的引用的属性网格上,您应该能够控制“收获”以及收获哪些项目输出组。不幸的是,该功能仍然存在一些错误,因此它并不总是有效。

如果您想亲自动手,可以查看 Heat 项目收割机以及它如何连接到 .wixproj。

What you are seeing is an initial attempt to do exactly what you want via the WiX toolset. On the Property Grid for References to other projects in your .wixproj, you should have the ability to control "Harvesting" and what project output groups are harvested. Unfortunately, there are still some bugs in the feature so it doesn't always work.

If you want to get your hands dirty you can look at the Heat project harvester and how it gets wired into the .wixproj.

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