Skip to content

Commit

Permalink
new installation logic
Browse files Browse the repository at this point in the history
  • Loading branch information
rounk-ctrl committed Oct 13, 2023
1 parent 9154486 commit da5b6b4
Show file tree
Hide file tree
Showing 12 changed files with 593 additions and 844 deletions.
2 changes: 1 addition & 1 deletion Rectify11Installer/Core/Backend/Icons.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public static bool Install(FrmWizard frm)
if (InstallOptions.iconsList.Contains("mmc.exe.mui"))
{
if (!MMCHelper.PatchAll())
return false;;
return false;
}

if (InstallOptions.iconsList.Contains("odbcad32.exe"))
Expand Down
36 changes: 25 additions & 11 deletions Rectify11Installer/Core/Helpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,27 +68,41 @@ public static StringBuilder FinalText()
finalstr.AppendLine();
finalstr.AppendLine();
if (Variables.InstallIcons)
finalstr.AppendLine(Strings.Rectify11.installIcons);
finalstr.AppendLine("+ " + Strings.Rectify11.installIcons);
else if (UninstallOptions.uninstIconsList.Count > 0)
finalstr.AppendLine("- " + Strings.Rectify11.installIcons);

if (InstallOptions.iconsList.Contains("themeNode"))
finalstr.AppendLine(Strings.Rectify11.installThemes);
finalstr.AppendLine("+ " + Strings.Rectify11.installThemes);
else if (UninstallOptions.UninstallThemes)
finalstr.AppendLine("- " + Strings.Rectify11.installThemes);

if (InstallOptions.iconsList.Contains("asdfNode"))
finalstr.AppendLine(Strings.Rectify11.installASDF);
finalstr.AppendLine("+ " + Strings.Rectify11.installASDF);
else if (UninstallOptions.uninstExtrasList.Contains("asdfNode"))
finalstr.AppendLine("- " + Strings.Rectify11.installASDF);

if (InstallOptions.iconsList.Contains("shellNode"))
finalstr.AppendLine(Strings.Rectify11.installShell);
finalstr.AppendLine("+ " + Strings.Rectify11.installShell);
else if (UninstallOptions.uninstExtrasList.Contains("shellNode"))
finalstr.AppendLine("- " + Strings.Rectify11.installShell);

if (InstallOptions.iconsList.Contains("gadgetsNode"))
finalstr.AppendLine(Strings.Rectify11.installGadgets);
finalstr.AppendLine("+ " + Strings.Rectify11.installGadgets);
else if (UninstallOptions.uninstExtrasList.Contains("gadgetsNode"))
finalstr.AppendLine("- " + Strings.Rectify11.installGadgets);

if (InstallOptions.iconsList.Contains("wallpapersNode"))
finalstr.AppendLine(Strings.Rectify11.installWallpapers);
finalstr.AppendLine("+ " + Strings.Rectify11.installWallpapers);
else if (UninstallOptions.uninstExtrasList.Contains("wallpapersNode"))
finalstr.AppendLine("- " + Strings.Rectify11.installWallpapers);

if (InstallOptions.iconsList.Contains("useravNode"))
finalstr.AppendLine(Strings.Rectify11.installUserAV);
finalstr.AppendLine("+ " + Strings.Rectify11.installUserAV);
else if (UninstallOptions.uninstExtrasList.Contains("useravNode"))
finalstr.AppendLine("- " + Strings.Rectify11.installUserAV);

return finalstr;
return finalstr;
}

public static bool CheckUBR()
Expand Down Expand Up @@ -406,7 +420,6 @@ public class RectifyPages
public static InstallConfirmation InstallConfirmation;
public static ProgressPage ProgressPage;
public static DebugPage DebugPage = new();
public static UninstallPage UninstallPage;
}
public class TabPages
{
Expand All @@ -415,7 +428,6 @@ public class TabPages
public static Controls.DarkAwareTabPage themePage;
public static Controls.DarkAwareTabPage cmenupage;
public static Controls.DarkAwareTabPage debPage;
public static Controls.DarkAwareTabPage uninstPage;
public static Controls.DarkAwareTabPage progressPage;
public static Controls.DarkAwareTabPage summaryPage;
public static Controls.DarkAwareTabPage wlcmPage;
Expand All @@ -438,7 +450,9 @@ public class InstallOptions
public static bool userAvatars { get; set; }
public static int CMenuStyle = 1;
public static List<string> iconsList = new();
public static bool InstallExtras()
public static List<string> origList = new();

public static bool InstallExtras()
{
return InstallEP
|| InstallASDF
Expand Down
2 changes: 2 additions & 0 deletions Rectify11Installer/Core/Variables.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,7 @@ public class Variables
public static bool WindowsUpdate { get; set; } = false;
public static bool CompleteUninstall { get; set;} = false;
public static bool CreateRestorePoint { get; set; } = true;
public static bool RunInstaller { get; set; } = false;
public static bool RunUninstaller { get; set; } = false;
}
}
24 changes: 16 additions & 8 deletions Rectify11Installer/Pages/InstallOptnsPage.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit da5b6b4

Please sign in to comment.