private function createInstaller()
	{
		$this->say("Creating component installer");

		$adminFolder = $this->getBuildFolder() . "/administrator/components/com_" . $this->getExtensionName();
		$xmlFile     = $adminFolder . "/" . $this->getExtensionName() . ".xml";
		$configFile  = $adminFolder . "/config.xml";
		$scriptFile  = $adminFolder . "/script.php";
		$helperFile  = $adminFolder . "/helpers/defines.php";

		// Version & Date Replace
		$this->replaceInFile($xmlFile);
		$this->replaceInFile($scriptFile);
		$this->replaceInFile($configFile);
		$this->replaceInFile($helperFile);

		// Files and folders
		if ($this->hasAdmin)
		{
			$f = $this->generateFileList($this->getFiles('backend'));

			$this->taskReplaceInFile($xmlFile)
				->from('##BACKEND_COMPONENT_FILES##')
				->to($f)
				->run();

			// Language files
			$f = $this->generateLanguageFileList($this->getFiles('backendLanguage'));

			$this->taskReplaceInFile($xmlFile)
				->from('##BACKEND_LANGUAGE_FILES##')
				->to($f)
				->run();
		}

		if ($this->hasFront)
		{
			$f = $this->generateFileList($this->getFiles('frontend'));

			$this->taskReplaceInFile($xmlFile)
				->from('##FRONTEND_COMPONENT_FILES##')
				->to($f)
				->run();

			// Language files
			$f = $this->generateLanguageFileList($this->getFiles('frontendLanguage'));

			$this->taskReplaceInFile($xmlFile)
				->from('##FRONTEND_LANGUAGE_FILES##')
				->to($f)
				->run();
		}

		// Media files
		if ($this->hasMedia)
		{
			$f = $this->generateFileList($this->getFiles('media'));

			$this->taskReplaceInFile($xmlFile)
				->from('##MEDIA_FILES##')
				->to($f)
				->run();
		}
	}