使用 WiX 动态更新 app.config 文件
我有一个使用 WiX 构建的 msi。安装程序的一部分会收集一些设置,这些设置将输入到已安装应用程序的 app.config 文件中。
现在,如果我为 wxs 文件中将要更改的每个设置定义
现在我的问题是:有没有一种方法可以动态创建这个 util:XmlFile 标记(例如,从自定义操作),这样我就不必将其硬编码到 wxs 中来更新 app.config 的每个设置。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它是如何进行采集的呢?您正在执行 AppSearch 并填充属性吗?您可以在 XmlFile 元素中使用 [PROPERTY] 吗?注意 [PROP] 是 MSI 中 PROP 的值。
How does it do the collection? Are you doing an AppSearch and populating properties? Can you just use the [PROPERTY] in your XmlFile element? Note [PROP] is the value of PROP in MSI speak.