为何使用 Windows Installer XML (WiX) 而不是 VDPROJ?
当我们有内置的 .net MSI 安装程序时,为什么要选择 Windows Installer XML (WiX)?
Why should one go for Windows Installer XML (WiX) when we have in built .net MSI installer?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
我要花好几个小时才能吐槽我讨厌 VDPROJ 的一切。我不会,因为在我(专家)看来,VDPROJ 很糟糕已经是既定的法律。如果您的安装非常简单,以至于您没有注意到任何问题,那么请按照我的猜测并坚持下去。但是,如果您已经发现自己正在与该工具作斗争,试图让它做它不做的事情,那么请听从我的建议,快速将其转储到 WiX。
我讨厌 VDPROJ 的 10 件事:
线,但效果没那么好。
一个组件。每个文件/注册表密钥都是其自己组件的密钥文件。
行动。
自定义操作。太抽象了。
CA 计划使用模拟,但在 Vista 上会中断。
在后期构建期间克服所有限制。结果是
非常糟糕的构建自动化黑客。
创作不正确。
现在还记得。
It would take me hours to rant about everything I hate about VDPROJ. I won't because in my (expert) opinion it's already settled law that VDPROJ sucks. If your install is so simple that you haven't noticed any problems, then be my guess and stick with it. But if you already find yourself fighting the tool trying to get it to do things it doesn't do, then take my advice and dump it fast for WiX.
10 things I hate about VDPROJ
line but it's not as good.
a component. Every file/reg key is a keyfile of it's own component.
actions.
custom actions. Too abstracted.
CA's are scheduled with Impersonation which breaks on Vista.
during postbuild to get around all the limiations. Results in a
very poor build automation hacks.
are authored incorrectly.
remembering right now.
WiX 教程介绍给出了 WiX 与其他设置开发工具(包括VS 设置项目):
安装程序功能
信息组装
构建
对团队发展的发展
内部和第三方
希望这会有所帮助。
The introduction of WiX tutorial gives the basic idea about WiX advantages comparing to other setup development tools (including VS setup projects):
Installer functionality
assembly of information
build processes
development
in-house and third-party
Hope this helps.
Visual Studio 部署包只能由 Visual Studio 构建。它们不能使用普通的 MSBuild 命令行来构建,这使得它们不太适合构建服务器等。
Visual Studio deployment packages can only be built by visual studio. They cannot be built using plain MSBuild command lines, which makes them less than ideal for e.g. build servers.
上述所有答案都包含了 Visual Studio 安装项目 (.VDPROJ) 的大部分烦人的功能,这是大多数人都错过的一件事。
All the above answers have included most of the annoying features of Visual studio setup projects (.VDPROJ), one thing that most people have missed.