Skip to content

Commit

Permalink
Setup to not delete widgets data for version over 3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
rxtur committed Sep 11, 2016
1 parent 79cab5b commit bc5603d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions BlogEngine/BlogEngine.NET/setup/upgrade/Updater.asmx
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,14 @@ public class Updater : WebService {
DeleteDir("\\editors");
DeleteDir("\\Modules");
DeleteDir("\\pics");
DeleteDir("\\App_Data\\datastore\\widgets");

// in version 3.3.0.0 widgets framework updated
// and no longer compatible. delete for lesser versions
int version = int.Parse(BlogSettings.Instance.Version().Replace(".", ""));
if (version <= 3300)
{
DeleteDir("\\App_Data\\datastore\\widgets");
}

ReplaceDir("\\Account");
ReplaceDir("\\admin");
Expand All @@ -250,7 +257,7 @@ public class Updater : WebService {
ReplaceDir("\\Content");
ReplaceDir("\\Custom\\Themes\\Standard");
ReplaceDir("\\Custom\\Widgets");

return "";
}
catch (Exception ex)
Expand Down
2 changes: 1 addition & 1 deletion BlogEngine/BlogEngine.NET/setup/upgrade/setup.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.3.0.0
3.3.1.0

0 comments on commit bc5603d

Please sign in to comment.