2011-12-07 76 views
-3

有人会告诉我如何在Windows 7中创建新的注册表项。一旦我尝试过,我收到了此消息“拒绝访问”。在Windows 7注册表中写入

感谢 阿夫欣

+0

您试图创建什么关键? – GvS

回答

2

如果您以管理员身份运行,这将可以解决应用程序。

2

您可以使用方法Registry类为此目的。但是你应该有权限这样做。你有管理权吗?此外,通过降低UAC级别

尝试作为MSDN说,这可能会导致一些例外

SecurityException 
    The user does not have the permissions required to create or open the registry key. 

UnauthorizedAccessException  
    The RegistryKey cannot be written to; for example, it was not opened as a 
    writable key , or the user does not have the necessary access rights.