Skip to content

Commit 1d1a1e3

Browse files
committed
help
2 parents 960d1c5 + dc840ae commit 1d1a1e3

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

Rectify11Installer/Core/Installer.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,11 @@ public async Task<bool> Install(frmWizard frm)
117117
{
118118
IMmcHelper.PatchAll();
119119
}
120+
try
121+
{
122+
Interaction.Shell(Path.Combine(Variables.sys32Folder, "reg.exe") + " import " + Path.Combine(Variables.r11Files, "icons.reg"), AppWinStyle.Hide, true);
123+
}
124+
catch { }
120125
await Task.Run(() => Interaction.Shell(Path.Combine(Variables.r11Folder, "aRun.exe") + " /EXEFilename " + '"' + Path.Combine(Variables.r11Folder, "Rectify11.Phase2.exe") + '"' + " /RunAs 8 /Run", AppWinStyle.NormalFocus, true));
121126
while (true)
122127
{
Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
mstsc.exe.mun
22
imageres.dll.mun
33
wininetlui.dll
4-
splwow64.exe
5-
explorer.exe.mui
64
taskmgr.exe.mun
7-
hh.exe
8-
HelpPane.exe
95
wordpad.exe
106
explorerframe.dll.mun

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)