protected function _setsecurkey($check = false, $boot = true) {
		$this->out(__d('cake_installer', 'Setting security keys'));
		$this->hr();

		$path = $this->path;
		$resultCheck = $this->_checkSetSecurKey($path);
		if ($resultCheck) {
			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', 'The security keys is set. Rewrite?'))) {
					return true;
				}
			}
		}

		$result = true;
		if ($this->Project->securitySalt($path) === true) {
			$this->out('<success> * ' . __d('cake_installer', 'Random hash key created for \'Security.salt\'') . '</success>');
		} else {
			$this->out('<error>' . __d('cake_installer', 'Unable to generate random hash for \'Security.salt\', you should change it in %s', $path . 'Config' . DS . 'core.php') . '</error>');
			$result = false;
		}

		if ($this->Project->securityCipherSeed($path) === true) {
			$this->out('<success> * ' . __d('cake_installer', 'Random seed created for \'Security.cipherSeed\'') . '</success>');
		} else {
			$this->out('<error>' . __d('cake_installer', 'Unable to generate random seed for \'Security.cipherSeed\', you should change it in %s', $path . 'Config' . DS . 'core.php') . '</error>');
			$result = false;
		}

		if ($this->_securityKey($path) === true) {
			$this->out('<success> * ' . __d('cake_installer', 'Random key created for \'Security.key\'') . '</success>');
		} else {
			$this->out('<error>' . __d('cake_installer', 'Unable to generate random key for \'Security.key\', you should change it in %s', $path . 'Config' . DS . 'core.php') . '</error>');
			$result = false;
		}

		$this->hr();
		if ($result) {
			Configure::bootstrap($boot);
			$this->_initUiLang();
			$this->out('<success>' . __d('cake_installer', 'The security keys is written successfully.') . '</success>');
		} else {
			$this->out('<error>' . __d('cake_installer', 'The security keys is written unsuccessfully.') . '</error>');
		}

		return $result;
	}