/**
  * Last Step, finish up the installation
  */
 public function actionFinished()
 {
     // Should not happen
     if (HSetting::Get('secret') == "") {
         throw new CException("Finished without secret setting!");
     }
     // Rewrite whole configuration file, also sets application
     // in installed state.
     HSetting::RewriteConfiguration();
     // Set to installed
     $this->module->setInstalled();
     try {
         Yii::app()->user->logout();
     } catch (Exception $e) {
     }
     $this->render('finished');
 }