如何根据 WIX 中的属性动态设置文件源?

发布于 2024-08-05 11:38:07 字数 150 浏览 1 评论 0原文

我们有四个区域(dev、test、qa、prod),它们都需要特定于环境的配置文件。我正在尝试开发一个 WIX 安装,它将接受来自 msiexec 命令行的属性分配并动态设置配置文件的文件源。我已经尝试了几乎所有内容并阅读了每一页,但我似乎无法使其发挥作用。这似乎是一个微不足道的问题。

We have four regions (dev, test, qa, prod) that all require environment specific config files. I am trying to develop a WIX install that will accept a property assignment from the msiexec command line and dynamically set the file source of a config file. I've tried just about everything and read about every page and I can't seem to make it work. This seems like a trivial probleml.

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

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

发布评论

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

评论(1

飘过的浮云 2024-08-12 11:38:07

虽然可能有多种方法可以实现您的要求,但传统方法是包含所有四个文件,并对其各自的组件进行调节,以便您的命令行属性恰好选择要安装的其中一个。

While there are probably ways to pull off what you ask, the traditional approach would be to include all four files, with their respective components conditioned such that your command line property selects exactly one of them to be installed.

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