如何在 WiX 中设置具有依赖关系的条件?

发布于 2024-08-28 20:36:32 字数 113 浏览 1 评论 0原文

我正在制作一个安装程序,它需要读取注册表项并获取一个值,然后使用该值访问另一个注册表,然后获取安装目录。 如果出现上述任何情况,安装将停止。

如何设定一个依赖另一个的条件?

谢谢。

I am making an installer, which need read a registry key and get a value, then use this value to access another registry then get the INSTALL dir.
Any condition mentioned above will stop the installation if fails.

How to set such conditions that one is dependent on the other?

Thanks.

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

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

发布评论

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

评论(1

傲世九天 2024-09-04 20:36:32

使用RegistrySearch,然后使用RegistrySearch 结果中的Property 在Product 元素中使用Condition 元素。

Use RegistrySearch then a Condition element in the Product element using the Property from the result of the RegistrySearch.

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