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

查看:130
本文介绍了在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进行重大升级期间修改的现有条目./p>

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天全站免登陆