注册表项编辑访问被拒绝 [英] Registry key edit access denied

查看:208
本文介绍了注册表项编辑访问被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个在第一次运行时创建注册表的项目,并在以后的运行中检查键的值。



但是在第一次运行时它给出了错误注册表编辑访问被拒绝

解决方案

不要使用注册表!自首次引入以来,对注册管理机构的访问受到限制,并且这些限制可能会变得更加繁重而不是更少 - 由于程序过度使用,以及安全问题与存储数据越来越难的相同应用程序安装文件夹中的文件和配置信息。



而是将文件存储在您可以访问的合理位置。这可以提供帮助:我应该在哪里存储数据? [ ^ ]

您似乎没有足够的权限在注册表中进行更改。尝试在管理模式下运行它。


I have made a project which creates registry on first time run, and checks the value of the key on later run.

but on the first run it give an error registry edit access denied

解决方案

Don't use the registry! Access to the registry has been restricted since it was first introduced, and the restrictions are likely to get more heavy duty rather than less - due to programs overusing it, and security concerns in the same way that it is harder and harder to store your data files and config info in the application installation folder.

Instead store a file in a sensible place that you will have access to. This can help: Where should I store my data?[^]


It seems that you do not have sufficient permission for making changes in registry. Try to run this in administrative mode.


这篇关于注册表项编辑访问被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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