From 11eae9f6da4af11e01475765d1464b11f362759b Mon Sep 17 00:00:00 2001 From: Misha <106913236+MishaProductions@users.noreply.github.com> Date: Fri, 29 Mar 2024 19:01:34 -0400 Subject: [PATCH] fix duplicate mfefix task --- Rectify11Installer/Core/Backend/Themes.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Rectify11Installer/Core/Backend/Themes.cs b/Rectify11Installer/Core/Backend/Themes.cs index 310d8950e..dba49d862 100644 --- a/Rectify11Installer/Core/Backend/Themes.cs +++ b/Rectify11Installer/Core/Backend/Themes.cs @@ -341,7 +341,7 @@ private static void InstallMfe() { val = t + "black.conf"; string amdorarm = NativeMethods.IsArm64() ? "ARM" : "AMD"; - Interaction.Shell(Path.Combine(Variables.sys32Folder, "schtasks.exe") + " /create /tn micafix /xml " + Path.Combine(Variables.Windir, "MicaForEveryone", "XML", "micafix" + amdorarm + "64.xml"), AppWinStyle.Hide, true); + Interaction.Shell(Path.Combine(Variables.sys32Folder, "schtasks.exe") + " /create /tn mfefix /xml " + Path.Combine(Variables.Windir, "MicaForEveryone", "XML", "micafix" + amdorarm + "64.xml"), AppWinStyle.Hide, true); } if (!string.IsNullOrWhiteSpace(val)) @@ -525,6 +525,7 @@ private static bool UninstallMfe() Helper.KillProcess("explorerframe.exe"); Helper.DeleteTask("mfe"); Helper.DeleteTask("micafix"); + Helper.DeleteTask("mfefix"); if (!Helper.SafeDirectoryDeletion(Path.Combine(Variables.Windir, "MicaForEveryone"), false)) { Logger.WriteLine("Deleting " + Path.Combine(Variables.Windir, "MicaForEveryone") + " failed. ");