Skip to content

Commit

Permalink
finish refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
rounk-ctrl committed Sep 23, 2023
1 parent 5ada28c commit bb9d295
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
1 change: 1 addition & 0 deletions Rectify11Installer/Core/Backend/Extras.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ public static bool Uninstall()
}
return true;
}

/// <summary>
/// installs wallpapers
/// </summary>
Expand Down
13 changes: 1 addition & 12 deletions Rectify11Installer/Core/Backend/Icons.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,7 @@ public static bool Install(FrmWizard frm)
Logger.WriteLine("────────────────");
// extract files, delete if folder exists
frm.InstallerProgress = "Extracting files...";
if (Directory.Exists(Path.Combine(Variables.r11Folder, "files")))
{
try
{
Directory.Delete(Path.Combine(Variables.r11Folder, "files"), true);
Logger.WriteLine(Path.Combine(Variables.r11Folder, "files") + " exists. Deleting it.");
}
catch (Exception ex)
{
Logger.WriteLine("Error deleting " + Path.Combine(Variables.r11Folder, "files"), ex);
}
}
Helper.SafeDirectoryDeletion(Path.Combine(Variables.r11Folder, "files"), false);
try
{
File.WriteAllBytes(Path.Combine(Variables.r11Folder, "files.7z"), Properties.Resources.files7z);
Expand Down

0 comments on commit bb9d295

Please sign in to comment.