在 wix 安装程序升级期间更新并保留 web.config 文件 [英] Update and retain web.config file during upgrade in wix installer

查看:17
本文介绍了在 wix 安装程序升级期间更新并保留 web.config 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

主要升级期间处理web.config文件的标准方法是什么.我知道升级期间如何处理未版本化的文件,如果文件已被用户修改,该文件将不会被替换.

What is the standard way to handle web.config files during major upgrade.I'm aware how the unversioned files are handled during upgrade,the file will not be replaced if the file has been modified by the user.

有没有办法处理在配置文件中添加了新条目与需要安装的最新安装程序捆绑在一起的情况,并且还保留了用户在 Wix 主要升级期间修改的现有条目.

Is there a way to deal with the scenario where in there are new entries added to config file bundled with the latest installer that needs to be installed,and also retain the existing entries modified by the user during major upgrade in Wix.

推荐答案

我知道问题是针对 Wix,但我只是想指出商业工具在这种情况下可以节省多少时间.

I know the question is for Wix, but just wanted to point out how much time commercial tools can save in such scenarios.

例如,使用高级安装程序,您可以读取并加载到MSI 属性任何 XML 值,然后使用 XML 文件更新程序 在安装(升级)时将动态内容写入文件中.(查看每篇文章末尾的视频以获得更快的概览)

For example, using Advanced Installer you can read and load into an MSI property any XML values and then use the XML Files updater to write dynamic content in the files, at install(upgrade) time. (check the videos at the end of each article for a quicker overview)

免责声明:我在团队建设 Advanced Installer 工作.

这篇关于在 wix 安装程序升级期间更新并保留 web.config 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆