I am trying to use the winreg
library of python to access the registry keys for Adobe products (Photoshop, After Effects, Ect.), and while i can see the HKEY_LOCAL_MACHINE
subkeys in the Registry Editor, Python can't seem to see the same keys. Is there a permission that needs to be changed or am I approaching this the wrong way?
Here is a Screen cap summarizing the results so far
The code I'm running to see this is:
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
Which results in me having the return of
Acrobat Distiller
Acrobat PDFMaker
Adobe AIR
Adobe ARM
CommonFiles
ExtendScript Toolkit
ExtensionManager
PDF Admin Settings
Registration
Repair
Setup
But not
Adobe Bridge
, Adobe Acrobat
, After Effects
, Photoshop
, etc.
Edit: I'm Running 32-Bit Python currently.
@martineau from the comments hit it right on the head! I needed to change the Access key in order to allow 64 bit registries to be found.
Now produces
Thanks for all the help!