def _RegistryKeyExists(key):
  if not _RegistryQuery(key):
    return False
  return True
Use reg.exe to see if a key exists.
dataset/ETHPy150Open adobe/brackets-shell/gyp/pylib/gyp/MSVSVersion.py/_RegistryKeyExists