def RunInstaller():
 try:
  os.makedirs(os.path.dirname(config_lib.CONFIG['Installer.logfile']))
 except OSError:
  pass
 handler = logging.FileHandler(config_lib.CONFIG['Installer.logfile'], mode='wb')
 handler.setLevel(logging.DEBUG)
 logging.getLogger().addHandler(handler)
 config_lib.CONFIG.Initialize(filename=flags.FLAGS.config, reset=True)
 config_lib.CONFIG.AddContext('Installer Context', 'Context applied when we run the client installer.')
 logging.warn('Starting installation procedure for GRR client.')
 try:
  Installer().Init()
 except Exception as e:
  logging.exception('Installation failed: %s', e)
  InstallerNotifyServer()
  sys.exit((-1))
 sys.exit(0)

def RunInstaller ( ) : try : os . makedirs ( os . path . dirname ( config_lib . CONFIG [ 'Installer.logfile' ] ) ) except OSError : pass handler = logging . FileHandler ( config_lib . CONFIG [ 'Installer.logfile' ] , mode = 'wb' ) handler . setLevel ( logging . DEBUG ) logging . getLogger ( ) . addHandler ( handler ) config_lib . CONFIG . Initialize ( filename = flags . FLAGS . config , reset = True ) config_lib . CONFIG . AddContext ( 'Installer Context' , 'Context applied when we run the client installer.' ) logging . warn ( 'Starting installation procedure for GRR client.' ) try : Installer ( ) . Init ( ) except Exception as e : logging . exception ( 'Installation failed: %s' , e ) InstallerNotifyServer ( ) sys . exit ( ( - 1 ) ) sys . exit ( 0 )
run all registered installers .