卸载后仍保留Properties.Settings值 [英] Properties.Settings value remains after uninstallation

查看:93
本文介绍了卸载后仍保留Properties.Settings值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

在我们应用程序的登录"表单中,有一个名为记住我"的选项,其中我存储用户ID和公司详细信息,以便在用户登录会话期间显示该用户的登录之前的信息(不包括需要赋予用户价值的密码).为了存储用户名和公司详细信息,我正在使用"Properties.Settings".它工作正常,但我面临的问题是,在卸载应用程序并安装新版本的应用程序之后,用户名和公司详细信息仍保留在登录屏幕中.谁能帮助我解决这个问题.

渴望等待最早的答复

问候
kumaran

Hi everbody,

In Login form of our application there is an option called "Remember Me" where i store userid and company details previous login to show during login session of the user excluding password which user need to give value. For storing userid and company details i am using "Properties.Settings". It working fine but the problem i am facing is that after uninstallation of the application and installing new version of the application still the userid and copany details are remain in the login screen. can anybody help me to over come this problem.

eager waiting for earliest replies

regards
kumaran

推荐答案

您将需要编写代码来检测旧设置并将其删除.您的应用创建的任何文件都不会被更新删除.另一种方法是使新版本的安装程序写入一个空白的首选项文件,以便强制删除这些设置.
You would need to write code to detect the old settings and remove them. Any file created by your app, is not removed by an update. The other way, is to make the installer of the new version write a blank preferences file, so it forces the erasing of those settings.


这篇关于卸载后仍保留Properties.Settings值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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