Windows 7注册表 - 为所有用户保存设置的位置 [英] Windows 7 Registry - Where to save setting for ALL users

查看:200
本文介绍了Windows 7注册表 - 为所有用户保存设置的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我们有一个源自Windows XP的应用程序。我们发现用户报告的问题是由Windows 7上的文件夹和注册表虚拟化引起的。我正在尝试重新安装,以便它可以与Windows 7一起工作,而不是绕过它,可以这么说。我需要保存一个注册表设置*某处*,但我不再确定它应该去哪里。我阅读了关于注册表虚拟化的MS页面,虽然我理解它是如何工作的,但它并没有真正帮助我做我应该做的事情。



据我了解,我需要完全避免使用HKLM,那么可以在HKEY_USERS下创建一个新密钥吗?如果我这样做了,它最终会被虚拟化吗?



提前感谢您的帮助。

Hi,

We have an application that originated on Windows XP. We are finding problems reported by users that are caused by both folder and registry virtualisation on Windows 7. I am trying to re-jig things so that it works "with" Windows 7, rather than working "around" it, so to speak. I need to save a registry setting *somewhere*, but I''m no longer sure where it ought to go. I read the MS page on registry virtualisation, and whilst I understand how it works, it doesn''t really help me on what I ought to do instead.

As far as I understand, I need to avoid using HKLM at all, so would it be ok to create a new key underneath HKEY_USERS? If I did, would it end up being virtualised?

Thanks in advance for any help.

推荐答案





您可以在没有管理员权限的情况下编写HKEY_LOCAL_USER。如果您想与所有用户共享您应具有管理员权限,或者您可以创建所有用户都可以访问的文件夹,您可以在此文件夹中创建一个ini文件。所有用户都有自己的HKEY_LOCAL_USER,因此所有用户的'HKEY_LOCAL_USER都不同。如果您的计划可能没有管理员权限,则必须避免使用HKLM。如果拥有管理员权限的用户可以使用HKLM,或者我之前说过,您可以创建一个ini文件。
Hi,

You can just write HKEY_LOCAL_USER without Admin priviligies. If you want to share with all users you should have admin priviligies or you can create a folder all user can reach and in this folder you can create an ini file. All users have their own HKEY_LOCAL_USER so all users'' HKEY_LOCAL_USER are different. You must avoid HKLM, if your program may not have admin rights. If users who can have admin rights you can use HKLM or as I said before you can create an ini file.


这篇关于Windows 7注册表 - 为所有用户保存设置的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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