如何根据 WIX 中的属性动态设置文件源?
我们有四个区域(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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
虽然可能有多种方法可以实现您的要求,但传统方法是包含所有四个文件,并对其各自的组件进行调节,以便您的命令行属性恰好选择要安装的其中一个。
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.