2011-12-07 9 views
-3

誰か教えてください。Windows 7で新しいレジストリキーを作成する方法を教えてください。このメッセージが「アクセスが拒否されました。Windows 7での書き込み

おかげ アフシン・

+0

どのようなキーを作成しようとしていますか? – GvS

答えて

2

あなたが管理者としてアプリケーションを実行する場合、これは解決されます。

2

この目的でCreateSubKeyメソッドをRegistryクラスにすることができます。しかし、そのために必要な権限が必要です。管理者権限がありますか? MSDNには、それはUACの問題であると思われるいくつかの例外

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. 
関連する問題