|
5鱼币
代码
- if "System" not in Key_list:
- reg = winreg.CreateKeyEx(winreg.HKEY_CURRENT_USER, r"SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System", reserved=0, access=winreg.KEY_ALL_ACCESS)
- print(1)
复制代码
报错
- Traceback (most recent call last):
- File "C:\Users\macbook\Desktop\Python\error.py", line 23, in <module>
- reg = winreg.CreateKeyEx(winreg.HKEY_CURRENT_USER, r"SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System", reserved=0, access=winreg.KEY_ALL_ACCESS)
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- PermissionError: [WinError 5] 拒绝访问。
复制代码
权限不足????怎么办!!!
|
最佳答案
查看完整内容
通过 Inno Setup 打包的安装包可以通过这种方法
https://blog.csdn.net/biggbang/article/details/125064116
|