Skip to content

Commit dc840ae

Browse files
committed
fix
1 parent 436ffcc commit dc840ae

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Rectify11Installer/Program.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,17 @@ private static void Main()
4646
Application.SetCompatibleTextRenderingDefault(false);
4747
//Thread.CurrentThread.CurrentUICulture = CultureInfo.GetCultureInfo("ko");
4848
Thread.CurrentThread.CurrentUICulture = CultureInfo.CurrentUICulture;
49+
if (Directory.Exists(Path.Combine(Variables.r11Folder, "Backup")))
50+
{
51+
string[] newFiles = File.ReadAllLines(Properties.Resources.newfiles);
52+
foreach (string file in newFiles)
53+
{
54+
if (File.Exists(Path.Combine(Variables.r11Folder, "Backup", file)))
55+
{
56+
File.Move(Path.Combine(Variables.r11Folder, "Backup", file), Path.Combine(Variables.r11Folder, "Backup", file + "_old"));
57+
}
58+
}
59+
}
4960
Application.Run(new frmWizard());
5061
}
5162
}

0 commit comments

Comments
 (0)