Package installing is working

This commit is contained in:
Shannon
2019-01-15 22:08:08 +11:00
parent b3585b0083
commit 44ab0991ce
52 changed files with 669 additions and 795 deletions

View File

@@ -41,31 +41,6 @@ namespace Umbraco.Web.Install
return _installationType ?? (_installationType = IsBrandNewInstall ? InstallationType.NewInstall : InstallationType.Upgrade).Value;
}
internal static void DeleteLegacyInstaller()
{
if (Directory.Exists(IOHelper.MapPath(SystemDirectories.Install)))
{
if (Directory.Exists(IOHelper.MapPath("~/app_data/temp/install_backup")))
{
//this means the backup already exists with files but there's no files in it, so we'll delete the backup and re-run it
if (Directory.GetFiles(IOHelper.MapPath("~/app_data/temp/install_backup")).Any() == false)
{
Directory.Delete(IOHelper.MapPath("~/app_data/temp/install_backup"), true);
Directory.Move(IOHelper.MapPath(SystemDirectories.Install), IOHelper.MapPath("~/app_data/temp/install_backup"));
}
}
else
{
Directory.Move(IOHelper.MapPath(SystemDirectories.Install), IOHelper.MapPath("~/app_data/temp/install_backup"));
}
}
if (Directory.Exists(IOHelper.MapPath("~/Areas/UmbracoInstall")))
{
Directory.Delete(IOHelper.MapPath("~/Areas/UmbracoInstall"), true);
}
}
internal void InstallStatus(bool isCompleted, string errorMsg)
{
try