def UnregisterPythonExe(exeAlias):
 try:
  win32api.RegDeleteKey(GetRootKey(), ((GetAppPathsKey() + '\\') + exeAlias))
 except win32api.error as exc:
  import winerror
  if (exc.winerror != winerror.ERROR_FILE_NOT_FOUND):
   raise
  return

def UnregisterPythonExe ( exeAlias ) : try : win32api . RegDeleteKey ( GetRootKey ( ) , ( ( GetAppPathsKey ( ) + '\\' ) + exeAlias ) ) except win32api . error as exc : import winerror if ( exc . winerror != winerror . ERROR_FILE_NOT_FOUND ) : raise return
unregister a .