Skip to content

Commit

Permalink
fix duplicate mfefix task
Browse files Browse the repository at this point in the history
  • Loading branch information
MishaProductions committed Mar 29, 2024
1 parent 7f6fc0f commit 11eae9f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Rectify11Installer/Core/Backend/Themes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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. ");
Expand Down

0 comments on commit 11eae9f

Please sign in to comment.