Skip to content

Commit

Permalink
use rectifycontrolpanel to install secureuxtheme (#505)
Browse files Browse the repository at this point in the history
* Use CRectifyUtil class instead of secureux.exe to apply/install secureuxtheme

* Allow actions to run on all branches

* Update build.yml

* Fixes

* use prebuilt themetool dll

* fix theme apply

* Apply theme after reboot
  • Loading branch information
MishaProductions authored Mar 28, 2024
1 parent 8c45b13 commit 8cdb4c4
Show file tree
Hide file tree
Showing 15 changed files with 685 additions and 572 deletions.
4 changes: 2 additions & 2 deletions Rectify11Installer.sln
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ Global
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{F1F7B13F-9EF7-4B77-9500-B062CC9DB17D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F1F7B13F-9EF7-4B77-9500-B062CC9DB17D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F1F7B13F-9EF7-4B77-9500-B062CC9DB17D}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{F1F7B13F-9EF7-4B77-9500-B062CC9DB17D}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{F1F7B13F-9EF7-4B77-9500-B062CC9DB17D}.Debug|Mixed Platforms.ActiveCfg = Debug|x64
{F1F7B13F-9EF7-4B77-9500-B062CC9DB17D}.Debug|Mixed Platforms.Build.0 = Debug|x64
{F1F7B13F-9EF7-4B77-9500-B062CC9DB17D}.Debug|Win32.ActiveCfg = Debug|Any CPU
{F1F7B13F-9EF7-4B77-9500-B062CC9DB17D}.Debug|x64.ActiveCfg = Debug|Any CPU
{F1F7B13F-9EF7-4B77-9500-B062CC9DB17D}.Debug|x64.Build.0 = Debug|Any CPU
Expand Down
8 changes: 0 additions & 8 deletions Rectify11Installer/Core/Backend/Common.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,6 @@ public static bool WriteFiles(bool icons, bool themes)
{
if (!Helper.SafeFileOperation(Path.Combine(Variables.r11Folder, "themes.7z"), Properties.Resources.themes, Helper.OperationType.Write))
return false;

var s = NativeMethods.IsArm64() ? Properties.Resources.secureux_arm64 : Properties.Resources.secureux_x64;
var dll = NativeMethods.IsArm64() ? Properties.Resources.ThemeDll_arm64 : Properties.Resources.ThemeDll_x64;

if (!Helper.SafeFileOperation(Path.Combine(Variables.r11Folder, "SecureUXHelper.exe"), s, Helper.OperationType.Write))
return false;
if (!Helper.SafeFileOperation(Path.Combine(Variables.r11Folder, "ThemeDll.dll"), dll, Helper.OperationType.Write))
return false;
}
if (!themes && !icons)
{
Expand Down
Loading

0 comments on commit 8cdb4c4

Please sign in to comment.