2011-12-07 75 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.