Finalized initial refactor of package installation for the installer, ensures the app pool is properly restarted

before installing Business Logic.
This commit is contained in:
Shannon Deminick
2012-10-17 07:08:35 +05:00
parent cc34208871
commit 3cf9a45724
4 changed files with 340 additions and 318 deletions

View File

@@ -77,7 +77,9 @@ namespace Umbraco.Web.Install
[HttpPost]
public JsonResult InstallPackageFiles(Guid kitGuid, int manifestId, string packageFile)
{
packageFile = Server.UrlDecode(packageFile);
var installer = new global::umbraco.cms.businesslogic.packager.Installer();
installer.LoadConfig(packageFile);
installer.InstallFiles(manifestId, packageFile);
return Json(new
{
@@ -134,8 +136,10 @@ namespace Umbraco.Web.Install
[HttpPost]
public JsonResult InstallBusinessLogic(Guid kitGuid, int manifestId, string packageFile)
{
packageFile = Server.UrlDecode(packageFile);
var installer = new global::umbraco.cms.businesslogic.packager.Installer();
installer.InstallFiles(manifestId, packageFile);
installer.LoadConfig(packageFile);
installer.InstallBusinessLogic(manifestId, packageFile);
return Json(new
{
success = true,
@@ -153,7 +157,9 @@ namespace Umbraco.Web.Install
[HttpPost]
public JsonResult CleanupInstallation(Guid kitGuid, int manifestId, string packageFile)
{
packageFile = Server.UrlDecode(packageFile);
var installer = new global::umbraco.cms.businesslogic.packager.Installer();
installer.LoadConfig(packageFile);
installer.InstallCleanUp(manifestId, packageFile);
library.RefreshContent();