protected function doInstall($package)
{
$this->getScripts($package)->install();
$version = $this->getVersion($package);
App::config('system')->set('packages.' . $package->get('module'), $version);
return $version;
}