public function runSugarInstaller()
    {
        $installer_res = $this->runSubProcessInstaller();
        // find the bottle message
        if (preg_match('/<bottle>(.*)<\/bottle>/s', $installer_res, $msg) === 1) {
            $this->getLogger()->info('The web installer was successfully completed.');
            $this->getLogger()->info("Web installer: {$msg[1]}");
        } elseif (preg_match('/Exit (.*)/s', $installer_res, $msg)) {
            $this->getLogger()->info("Web installer: {$msg[1]}");
            throw new InstallerException(
                'The web installer failed. Check your config_si.php file.'
            );
        } else {
            $this->getLogger()->debug("Web installer: {$installer_res}");
            throw new InstallerException(
                'The web installer failed and return an unknown error. Check the install.log file on Sugar.'
            );
        }
    }