将 Wix 与 MSBuild 集成
我们正在寻求为我们正在开发的产品自动生成 MSI。 目前,我们使用 MSBuild 将源代码构建到网络位置,这对于测试来说很好,但在发布软件时,我们需要将其包装在 MSI 中。
该软件都是 .Net bar 1 COM 组件,需要在安装它的每台计算机上注册。
我想知道如何将 Wix 与 MSBuild 集成,以便生成新的 wix 脚本以及能够处理全新安装和升级安装的 MSI。
非常感谢对此的任何帮助。
谢谢,
布伦丹
we are looking to automate an MSI generation for a product we are developing. Currently we have MSBuild building out the source to a network location, this is fine for testing but when it comes to releasing the software we will need to wrap it in an MSI.
The software is all .Net bar 1 COM component that will need registered on each machine it gets installed to.
What I was wondering was how to integrate Wix with MSBuild so that a new wix script will get generated along with an MSI that is able to handle fresh and upgrade installs.
Any help with this is very much appreciated.
Thanks,
Brendan
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
当然,MS Build 中的一些任务可以满足您从 WiX 构建 MSI 所需的所有任务。 您可以将其集成到构建/集成服务器上吗?
Wix 的较新版本实际上包含一个名为“wix.targets”的文件,它应该可以帮助您入门。
另请查看有关该主题的这些精彩文章:
它们更详细地介绍了该主题,对于入门非常有帮助。
Sure, there are tasks in MS Build that can do all you need to build an MSI from WiX. Can you integrate this on a build / integration server?
Newer builds of Wix actually include a file called "wix.targets", which should get you started.
Also check out these fine articles on the topic:
They cover the topic in much more detail and are extremely helpful to get started.
您应该下载并安装Votive。 这将创建一个 Visual Studio 项目文件,您可以将其与 MSBuild 一起使用来创建基于 WiX 的 MSI。
You should download and install Votive. This will create a Visual Studio project file which you can use with MSBuild to create a WiX-based MSI.
WiX 手册中还有一个关于如何与 MSBuild 集成的主题,名为 将 WiX 与 MSBuild 结合使用< /a>.
There is also a topic in the WiX manual about how to integrate with MSBuild called Using WiX with MSBuild.