Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added AppControl Manager native installer to the Harden Windows Security Module #508

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading