如何在不影响XML中的现有数据的情况下重新安装.NET Windows应用程序? [英] How can I reinstall .NET windows application without affecting the existing data in XML?

查看:84
本文介绍了如何在不影响XML中的现有数据的情况下重新安装.NET Windows应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的Windows应用程序中保存了一些数据作为xml(一些主条目),这是在.net开发的。



通常,我们提供exe测试团队。他们在该特定版本中执行某些条目并保存在XML文件中。当他们安装新版本时,数据将丢失并且将生成新的空XML。



如何在不影响现有数据的情况下重新安装?



我该如何处理这种情况?



我尝试了什么:



我没理由继续。 :(

I'm keeping some data as xml(some master entries) in my windows application which is developed in .net.

Usually, we provide the exe to the testing team. They do some entries in that particular version and save in XML file. When they install the new version, the data will be lost and new empty XML will be generated.

How can I reinstall without affecting the existing data?
Or
How can I tackle this situation?

What I have tried:

I'm not getting idea to proceed. :(

推荐答案

如果您使用像 Inno Setup 这样的安装程序,您可以使用 onlyifdoesntexist 标志,请参阅: Inno Setup:不要覆盖设置文件,安装更新 - Stack Overflow [ ^ ]
If you use an installer like Inno Setup you can use the onlyifdoesntexist flag, see: Inno Setup: Do not overwrite settings file, when installing an update - Stack Overflow[^]


这篇关于如何在不影响XML中的现有数据的情况下重新安装.NET Windows应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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