'Checks if the installer installed correctly.'

def _CheckInstallSuccess(self):

    if (not os.path.exists(self.install_path)):
        raise RuntimeError(('Install    failed,    no    files    at:    %s' % self.install_path))
    output = subprocess.check_output(['sc', 'query', self.service_name])
    if ('RUNNING' not in output):
        raise RuntimeError(('GRR    service    not    running    after    install,    sc    query    output:    %s' % output))
