Feb-01-2019, 10:04 AM
def isAlreadyInstalled(lookupRegistryKey):
consoleLines = os.popen('reg query "' + APP_REGISTRY_KEY + "\\" + VERSION_SYSTEM_NAME + '"').readlines()
if len(consoleLines) == 0:
return False
return TrueI have this snippet. The problem is that it gives this error in the command line without stoping the execution ( wich is ok for my cas), I just want to ignore this error.ERROR: The system was unable to find the specified registry key or value.
