-3
A
回答
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.
0
这似乎是UAC问题。请参阅http://msdn.microsoft.com/en-us/library/bb756929.aspx寻求帮助。
0
相关问题
- 1. 使用c#代码在Windows 7注册表读取/写入
- 2. NSIS:无法写入注册表(HKLM \ Software \ ...)在Windows 7
- 3. 在Python中编辑Windows 7注册表?
- 4. 在Windows 7中创建注册表项
- 5. VBScript中,写入注册表
- 6. 使用Delphi 7在Windows 7上进行注册表写入权限
- 7. VB.NET - 写入到注册表
- 8. C++写入注册表
- 9. 注册表项在Windows 7 64位
- 10. 在Windows 7上访问注册表C#
- 11. 无法写入注册表
- 12. 无法写入注册表
- 13. 通过JNIWrapper在Windows 7 64位上写入注册表 - 性能问题
- 14. 重写注册表文件在Windows
- 15. 无法在Windows注册表中写入适当的位置
- 16. NSIS写入注册表
- 17. Windows 7注册表%ProgramFiles%问题
- 18. 了解Windows 7的注册表C#
- 19. 将密钥写入C#中的Windows注册表中
- 20. 写入/读取Windows注册表 - Windows服务
- 21. 在Windows 7注册dll在C#
- 22. Windows注册表
- 23. 使用JAVA和JNA读取/写入Windows注册表64bit Win 7使用JAVA和JNA读取/写入Windows注册表
- 24. Windows 7 64位dll注册与Windows 8.1 64位dll注册
- 25. 注册表中的RUNASADMIN似乎无法在Windows 7中工作
- 26. InstallSheild没有写入注册表或Windows 8.1中的ProgramData
- 27. 从chrome扩展中写入Windows注册表
- 28. Windows XP:在哪里写入注册表从IE?
- 29. 如何在Windows Mobile 5设备上向注册表写入值?
- 30. C#写注册表
您试图创建什么关键? – GvS