我正在尝试使用winregpython 库来访问 Adobe 产品(Photoshop、After Effects 等)的注册表项,虽然我可以HKEY_LOCAL_MACHINE在注册表编辑器中看到子键,但 Python 似乎看不到相同的键。是否有需要更改的权限,或者我以错误的方式接近这个?
我正在运行的代码是:
import winreg
i=0
while True:
try:
# self.aeKey = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, "SOFTWARE\\Adobe\\After Effects\\16.0")
key = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, r"SOFTWARE\Adobe\Setup\Reader")
printTest = winreg.EnumKey(key, i)
print(printTest)
i+=1
except WindowsError:
break
这导致我返回
Acrobat Distiller
Acrobat PDFMaker
Adobe AIR
Adobe ARM
CommonFiles
ExtendScript Toolkit
ExtensionManager
PDF Admin Settings
Registration
Repair
Setup
但不是
Adobe Bridge, Adobe Acrobat, After Effects,Photoshop等
编辑:我目前正在运行 32 位 Python。