Wix 组件的文件位于不同的目录中

发布于 2024-08-09 01:47:08 字数 82 浏览 2 评论 0原文

我可以使用 Wix 创建一个在不同目录/子目录中包含文件的组件吗?或者一个组件的所有文件都应该在同一个目录中?

我该如何设置 XML?

Can I create a component with Wix that has files in different directories/subdirectories? Or all the files of a component should be in the same directory?

How do I set the XML for that?

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

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

发布评论

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

评论(1

不乱于心 2024-08-16 01:47:09

否。

请参阅有关组件的 Windows Installer 文档。 .. 主要规则之一是每个组件必须存储在一个文件夹中。

组件规则很容易违反,最好的解决方案是如果有机会,坚持每个组件一个文件任何文件都会在以后的版本中发生变化。

将多个文件放入一个组件中可能会导致麻烦,如果可能的话请避免这样做,除非您有正当理由 - 并且更容易维护 WiX 源并不是一个正当理由:)

No.

See the Windows Installer documentation on Components... one of the main rules is that Each component must be stored in a single folder.

Component rules are very easy to violate, the best solution is to stick to one file per component if there is any chance at all any of the files will change in a later version.

Putting multiple files into a component can cause headaches down the line, avoid it if possible unless you have a valid reason - and having easier to maintain WiX sources isn't a valid reason :)

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