Skip to content

Commit

Permalink
Added AppControl Manager native installer to the Harden Windows Secur…
Browse files Browse the repository at this point in the history
…ity Module (#508)

You can now install the AppControl Manager right from the Harden Windows Security module. This is a very convenient way to install it as it only requires a click/tap of a button.
  • Loading branch information
HotCakeX authored Jan 6, 2025
1 parent 78aafb3 commit 333cfdf
Show file tree
Hide file tree
Showing 17 changed files with 1,042 additions and 32 deletions.
4 changes: 4 additions & 0 deletions Harden-Windows-Security Module/Harden Windows Security.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
</ItemGroup>

<ItemGroup>
<Page Remove="Main files\Resources\XAML\AppControlManager.xaml" />
<Page Remove="Main files\Resources\XAML\FileReputation.xaml" />
<Page Remove="Main files\Resources\XAML\OptionalFeatures.xaml" />
</ItemGroup>
Expand Down Expand Up @@ -96,6 +97,9 @@
<Content Update="Main files\Resources\XAML\FileReputation.xaml">
<Generator>MSBuild:Compile</Generator>
</Content>
<Content Update="Main files\Resources\XAML\AppControlManager.xaml">
<Generator>MSBuild:Compile</Generator>
</Content>
<Content Update="Main files\Resources\XAML\OptionalFeatures.xaml">
<Generator>MSBuild:Compile</Generator>
</Content>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ System.Security.Principal
System.Diagnostics.Process
Microsoft.Win32.Primitives
System.Diagnostics.EventLog
System.Security.Cryptography
System.Management.Automation
System.IO.Compression.zipfile
System.Security.AccessControl
Expand All @@ -45,6 +46,7 @@ System.Text.RegularExpressions
System.Text.Encoding.Extensions
System.ComponentModel.Primitives
System.Security.Principal.Windows
System.Diagnostics.FileVersionInfo
System.ComponentModel.TypeConverter
Microsoft.Management.Infrastructure
System.DirectoryServices.AccountManagement
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
using System;
using System.Text.RegularExpressions;
using System.Windows.Controls;
using Windows.Management.Deployment;

namespace HardenWindowsSecurity;

public static class GUIAppControlManager
{
internal static UserControl? View;

internal static Grid? ParentGrid;

internal static PackageManager packageMgr = new();

// Pattern for AppControl Manager version and architecture extraction from file path and download link URL
internal static readonly Regex regex = new(@"_(?<Version>\d+\.\d+\.\d+\.\d+)_(?<Architecture>x64|arm64)\.msix$",
RegexOptions.IgnoreCase | RegexOptions.Compiled
);

internal static readonly Uri AppUpdateDownloadLinkURL = new("https://raw.githubusercontent.com/HotCakeX/Harden-Windows-Security/refs/heads/main/AppControl%20Manager/DownloadURL.txt");

}
Loading

0 comments on commit 333cfdf

Please sign in to comment.