protected function _setbaseurl($check = false) {
		$this->out(__d('cake_installer', 'Setting base URL'));
		$this->hr();

		$path = $this->path;
		$currentBaseUrl = $this->_readConfigCore($path, '/(?<![\/]{2})Configure::write\(\'App\.fullBaseUrl\', \'(http[s]?\:\/\/[A-z0-9\.\/]+)\'\)[\s]*;/');
		if (!empty($currentBaseUrl)) {
			if ($check) {
				$this->out('<success>' . __d('cake_installer', 'This action has already been successfully completed. Skipped.') . '</success>');

				return true;
			} elseif ($this->useActionNotify) {
				if (!$this->_checkSure(__d('cake_installer', 'Base URL set to \'%s\'. Change?', $currentBaseUrl))) {
					return true;
				}
			}
		}
		$baseUrl = $this->_getBaseUrl();

		$result = null;
		if ($baseUrl !== $currentBaseUrl) {
			$result = $this->_writeBaseUrl($path, $baseUrl);
		}
		$this->hr();
		if ($result === null) {
			$this->out('<info>' . __d('cake_installer', 'Base URL is not changed.') . '</info>');
			$result = true;
		} elseif ($result) {
			$this->out('<success>' . __d('cake_installer', 'Base URL set to \'%s\' successfully.', $baseUrl) . '</success>');
		} else {
			$this->out('<error>' . __d('cake_installer', 'Unable to set Base URL, you should change it in %s', $path . 'Config' . DS . 'core.php') . '</error>');
		}

		return $result;
	}