Python code to read registry

from _winreg import * """print r"*** Reading from SOFTWAREMicrosoftWindowsCurrentVersionRun ***" """ aReg = ConnectRegistry(None,HKEY_LOCAL_MACHINE) aKey = OpenKey(aReg, r"SOFTWAREMicrosoftWindowsCurrentVersionUninstall") for i in range(1024): try: asubkey=EnumKey(aKey,i) val=QueryValueEx(asubkey, "DisplayName") print val except EnvironmentError: break Could anyone please correct the error…i just want to display the “DisplayName” within the subkeys of the key the HKLMSOFTWAREMicrosoftWindowsCurrentVersionUninstall This is the error … Read more