Skip to content

Commit bc5603d

Browse files
committed
Setup to not delete widgets data for version over 3.3
1 parent 79cab5b commit bc5603d

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

BlogEngine/BlogEngine.NET/setup/upgrade/Updater.asmx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,14 @@ public class Updater : WebService {
233233
DeleteDir("\\editors");
234234
DeleteDir("\\Modules");
235235
DeleteDir("\\pics");
236-
DeleteDir("\\App_Data\\datastore\\widgets");
236+
237+
// in version 3.3.0.0 widgets framework updated
238+
// and no longer compatible. delete for lesser versions
239+
int version = int.Parse(BlogSettings.Instance.Version().Replace(".", ""));
240+
if (version <= 3300)
241+
{
242+
DeleteDir("\\App_Data\\datastore\\widgets");
243+
}
237244

238245
ReplaceDir("\\Account");
239246
ReplaceDir("\\admin");
@@ -250,7 +257,7 @@ public class Updater : WebService {
250257
ReplaceDir("\\Content");
251258
ReplaceDir("\\Custom\\Themes\\Standard");
252259
ReplaceDir("\\Custom\\Widgets");
253-
260+
254261
return "";
255262
}
256263
catch (Exception ex)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.3.0.0
1+
3.3.1.0

0 commit comments

Comments
 (0)