Portable Tool for an Ideal Windows Setup
C# activatorbloatware-removalcsharpdebloatdebloaterdisable-servicesmonitoring-systemportableprivacy-toolsregistry-tweakssystem-tuningsystem-utilitytelemetrytweakerwindows-10windows-11windows-debloatwindows-defenderwindows-optimizationwindows-tweaks
-re & sorted
Greedeks8657a1ac6504
diff --git a/.Source/GTweak/Utilities/Helpers/Root/ButtonNavigation.cs b/.Source/GTweak/Core/ButtonNavigation.cssimilarity index 87%rename from .Source/GTweak/Utilities/Helpers/Root/ButtonNavigation.csrename to .Source/GTweak/Core/ButtonNavigation.csindex 2431cc16..ff392b0c 100644--- a/.Source/GTweak/Utilities/Helpers/Root/ButtonNavigation.cs+++ b/.Source/GTweak/Core/ButtonNavigation.cs@@ -1,7 +1,7 @@using System.Windows;using System.Windows.Controls;-namespace GTweak.Utilities.Helpers.Root+namespace GTweak.Core{internal sealed class ButtonNavigation : RadioButton{diff --git a/.Source/GTweak/GTweak.csproj b/.Source/GTweak/GTweak.csprojindex ac7c1edf..112f678c 100644--- a/.Source/GTweak/GTweak.csproj+++ b/.Source/GTweak/GTweak.csproj@@ -265,14 +265,14 @@<DependentUpon>Resources.resx</DependentUpon></Compile><Compile Include="Utilities\Control\BlockRunTweaker.cs" />- <Compile Include="Utilities\Helpers\Root\DisablingWinKeys.cs" />- <Compile Include="Utilities\Helpers\Root\CommandExecutor.cs" />+ <Compile Include="Utilities\Helpers\DisablingWinKeys.cs" />+ <Compile Include="Utilities\Helpers\CommandExecutor.cs" /><Compile Include="Utilities\Helpers\TaskSchedulerManager.cs" /><Compile Include="Utilities\Helpers\UnarchiveManager.cs" /><Compile Include="Utilities\Helpers\BackgroundQueue.cs" /><Compile Include="Utilities\Helpers\RegistryHelp.cs" /><Compile Include="Utilities\Control\SettingsRepository.cs" />- <Compile Include="Utilities\Helpers\Root\TakingOwnership.cs" />+ <Compile Include="Utilities\Helpers\TakingOwnership.cs" /><Compile Include="Utilities\Helpers\Storage\NotifActionsStorage.cs" /><Compile Include="Utilities\Tweaks\ClearingMemory.cs" /><Compile Include="Utilities\Helpers\INIManager.cs" />@@ -280,7 +280,7 @@<Compile Include="Utilities\Configuration\MonitoringSystem.cs" /><Compile Include="Utilities\Configuration\SystemDiagnostics.cs" /><Compile Include="Utilities\Control\ViewNotification.cs" />- <Compile Include="Utilities\Helpers\Root\TrustedInstaller.cs" />+ <Compile Include="Utilities\Helpers\TrustedInstaller.cs" /><Compile Include="Utilities\Tweaks\ConfidentialityTweaks.cs" /><Compile Include="Utilities\Tweaks\Firewall.cs" /><Compile Include="Utilities\Tweaks\InterfaceTweaks.cs" />@@ -466,7 +466,7 @@<DependentUpon>ToggleButton.xaml</DependentUpon></Compile><Compile Include="Utilities\Helpers\Animation\BrushAnimation.cs" />- <Compile Include="Utilities\Helpers\Root\ButtonNavigation.cs" />+ <Compile Include="Core\ButtonNavigation.cs" /><Compile Include="Core\RelayCommand.cs" /><Compile Include="Core\ViewModelBase.cs" /><Compile Include="Core\ViewModel\MainViewModel.cs" />diff --git a/.Source/GTweak/Utilities/Configuration/SystemDiagnostics.cs b/.Source/GTweak/Utilities/Configuration/SystemDiagnostics.csindex 00a9442b..81b1f60d 100644--- a/.Source/GTweak/Utilities/Configuration/SystemDiagnostics.cs+++ b/.Source/GTweak/Utilities/Configuration/SystemDiagnostics.cs@@ -1,4 +1,4 @@-using GTweak.Utilities.Helpers.Root;+using GTweak.Utilities.Helpers;using Microsoft.Win32;using Newtonsoft.Json;using System;diff --git a/.Source/GTweak/Utilities/Control/BlockRunTweaker.cs b/.Source/GTweak/Utilities/Control/BlockRunTweaker.csindex 7851d920..64202f8a 100644--- a/.Source/GTweak/Utilities/Control/BlockRunTweaker.cs+++ b/.Source/GTweak/Utilities/Control/BlockRunTweaker.cs@@ -1,5 +1,5 @@using GTweak.Utilities.Configuration;-using GTweak.Utilities.Helpers.Root;+using GTweak.Utilities.Helpers;using GTweak.Windows;using System;using System.Diagnostics;diff --git a/.Source/GTweak/Utilities/Control/SettingsRepository.cs b/.Source/GTweak/Utilities/Control/SettingsRepository.csindex 35f3bd3f..f09fed3b 100644--- a/.Source/GTweak/Utilities/Control/SettingsRepository.cs+++ b/.Source/GTweak/Utilities/Control/SettingsRepository.cs@@ -1,5 +1,4 @@using GTweak.Utilities.Helpers;-using GTweak.Utilities.Helpers.Root;using GTweak.Windows;using Microsoft.Win32;using System;@@ -99,7 +98,7 @@ namespace GTweak.Utilities.Controlinternal static void SaveFileConfig(){- if (INIManager.TempTweaksConf.Count == 0 && INIManager.TempTweaksIntf.Count == 0 && INIManager.TempTweaksSvc.Count == 0 && INIManager.TempTweaksSys.Count == 0)+ if (INIManager.IsAllTempDictionaryEmpty)new ViewNotification().Show("", "info", (string)Application.Current.Resources["export_warning_notification"]);else{@@ -173,6 +172,5 @@ namespace GTweak.Utilities.Control}internal static void SelfReboot() => CommandExecutor.RunCommand($"/c taskkill /f /im \"{currentName}\" & choice /c y /n /d y /t 1 & start \"\" \"{currentLocation}\"");-}}diff --git a/.Source/GTweak/Utilities/Helpers/Animation/TypewriterAnimation.cs b/.Source/GTweak/Utilities/Helpers/Animation/TypewriterAnimation.csindex c26c11c6..f34fa455 100644--- a/.Source/GTweak/Utilities/Helpers/Animation/TypewriterAnimation.cs+++ b/.Source/GTweak/Utilities/Helpers/Animation/TypewriterAnimation.cs@@ -9,7 +9,8 @@ namespace GTweak.Utilities.Helpers.Animation{internal TypewriterAnimation(in string textToAnimate, in TextBlock textBlock, in TimeSpan timeSpan){- if (!(textBlock.FindName(textBlock.Name) is TextBlock)) return;+ if (!(textBlock.FindName(textBlock.Name) is TextBlock))+ return;Storyboard storyBoard = new Storyboard{diff --git a/.Source/GTweak/Utilities/Helpers/Root/CommandExecutor.cs b/.Source/GTweak/Utilities/Helpers/CommandExecutor.cssimilarity index 97%rename from .Source/GTweak/Utilities/Helpers/Root/CommandExecutor.csrename to .Source/GTweak/Utilities/Helpers/CommandExecutor.csindex bda28774..63cb71a9 100644--- a/.Source/GTweak/Utilities/Helpers/Root/CommandExecutor.cs+++ b/.Source/GTweak/Utilities/Helpers/CommandExecutor.cs@@ -2,7 +2,7 @@using System.Diagnostics;using System.Threading.Tasks;-namespace GTweak.Utilities.Helpers.Root+namespace GTweak.Utilities.Helpers{internal sealed class CommandExecutor{diff --git a/.Source/GTweak/Utilities/Helpers/Root/DisablingWinKeys.cs b/.Source/GTweak/Utilities/Helpers/DisablingWinKeys.cssimilarity index 98%rename from .Source/GTweak/Utilities/Helpers/Root/DisablingWinKeys.csrename to .Source/GTweak/Utilities/Helpers/DisablingWinKeys.csindex e1c256b0..081cf609 100644--- a/.Source/GTweak/Utilities/Helpers/Root/DisablingWinKeys.cs+++ b/.Source/GTweak/Utilities/Helpers/DisablingWinKeys.cs@@ -3,7 +3,7 @@ using System.Runtime.InteropServices;using System.Windows.Forms;using System.Windows.Input;-namespace GTweak.Utilities.Helpers.Root+namespace GTweak.Utilities.Helpers{internal sealed class DisablingWinKeys{diff --git a/.Source/GTweak/Utilities/Helpers/INIManager.cs b/.Source/GTweak/Utilities/Helpers/INIManager.csindex e25c1c59..2700519f 100644--- a/.Source/GTweak/Utilities/Helpers/INIManager.cs+++ b/.Source/GTweak/Utilities/Helpers/INIManager.cs@@ -23,6 +23,8 @@ namespace GTweak.Utilities.HelpersTempTweaksSvc = new Dictionary<string, string>(),TempTweaksSys = new Dictionary<string, string>();+ internal static bool IsAllTempDictionaryEmpty => TempTweaksConf.Count == 0 && TempTweaksIntf.Count == 0 && TempTweaksSvc.Count == 0 && TempTweaksSys.Count == 0;+internal const string SectionConf = "Confidentiality Tweaks";internal const string SectionIntf = "Interface Tweaks";internal const string SectionSvc = "Services Tweaks";diff --git a/.Source/GTweak/Utilities/Helpers/RegistryHelp.cs b/.Source/GTweak/Utilities/Helpers/RegistryHelp.csindex 9141ab3f..9171cc32 100644--- a/.Source/GTweak/Utilities/Helpers/RegistryHelp.cs+++ b/.Source/GTweak/Utilities/Helpers/RegistryHelp.cs@@ -1,5 +1,4 @@-using GTweak.Utilities.Helpers.Root;-using Microsoft.Win32;+using Microsoft.Win32;using System;using System.Diagnostics;using System.Threading.Tasks;diff --git a/.Source/GTweak/Utilities/Helpers/Root/TakingOwnership.cs b/.Source/GTweak/Utilities/Helpers/TakingOwnership.cssimilarity index 99%rename from .Source/GTweak/Utilities/Helpers/Root/TakingOwnership.csrename to .Source/GTweak/Utilities/Helpers/TakingOwnership.csindex 20dc14ce..9e68709e 100644--- a/.Source/GTweak/Utilities/Helpers/Root/TakingOwnership.cs+++ b/.Source/GTweak/Utilities/Helpers/TakingOwnership.cs@@ -1,7 +1,7 @@using System;using System.Runtime.InteropServices;-namespace GTweak.Utilities.Helpers.Root+namespace GTweak.Utilities.Helpers{internal class TakingOwnership{diff --git a/.Source/GTweak/Utilities/Helpers/TaskSchedulerManager.cs b/.Source/GTweak/Utilities/Helpers/TaskSchedulerManager.csindex 1dbae851..3729c364 100644--- a/.Source/GTweak/Utilities/Helpers/TaskSchedulerManager.cs+++ b/.Source/GTweak/Utilities/Helpers/TaskSchedulerManager.cs@@ -1,5 +1,4 @@using GTweak.Utilities.Control;-using GTweak.Utilities.Helpers.Root;using GTweak.Utilities.Helpers.Storage;using System.Linq;using System.Threading.Tasks;diff --git a/.Source/GTweak/Utilities/Helpers/Root/TrustedInstaller.cs b/.Source/GTweak/Utilities/Helpers/TrustedInstaller.cssimilarity index 99%rename from .Source/GTweak/Utilities/Helpers/Root/TrustedInstaller.csrename to .Source/GTweak/Utilities/Helpers/TrustedInstaller.csindex 5e1d12fc..543a2589 100644--- a/.Source/GTweak/Utilities/Helpers/Root/TrustedInstaller.cs+++ b/.Source/GTweak/Utilities/Helpers/TrustedInstaller.cs@@ -4,7 +4,7 @@ using System.Diagnostics;using System.Runtime.InteropServices;using System.ServiceProcess;-namespace GTweak.Utilities.Helpers.Root+namespace GTweak.Utilities.Helpers{internal sealed class TrustedInstaller{diff --git a/.Source/GTweak/Utilities/Tweaks/ClearingMemory.cs b/.Source/GTweak/Utilities/Tweaks/ClearingMemory.csindex 1adc573d..f0bdd758 100644--- a/.Source/GTweak/Utilities/Tweaks/ClearingMemory.cs+++ b/.Source/GTweak/Utilities/Tweaks/ClearingMemory.cs@@ -1,6 +1,5 @@using GTweak.Utilities.Control;using GTweak.Utilities.Helpers;-using GTweak.Utilities.Helpers.Root;using System;using System.Collections.Generic;using System.ComponentModel;diff --git a/.Source/GTweak/Utilities/Tweaks/ConfidentialityTweaks.cs b/.Source/GTweak/Utilities/Tweaks/ConfidentialityTweaks.csindex 44004aca..97a19d34 100644--- a/.Source/GTweak/Utilities/Tweaks/ConfidentialityTweaks.cs+++ b/.Source/GTweak/Utilities/Tweaks/ConfidentialityTweaks.cs@@ -2,7 +2,6 @@using GTweak.Utilities.Configuration;using GTweak.Utilities.Control;using GTweak.Utilities.Helpers;-using GTweak.Utilities.Helpers.Root;using GTweak.View;using Microsoft.Win32;using System;diff --git a/.Source/GTweak/Utilities/Tweaks/InterfaceTweaks.cs b/.Source/GTweak/Utilities/Tweaks/InterfaceTweaks.csindex b73834db..1c77cfb7 100644--- a/.Source/GTweak/Utilities/Tweaks/InterfaceTweaks.cs+++ b/.Source/GTweak/Utilities/Tweaks/InterfaceTweaks.cs@@ -1,6 +1,5 @@using GTweak.Utilities.Configuration;using GTweak.Utilities.Helpers;-using GTweak.Utilities.Helpers.Root;using GTweak.View;using Microsoft.Win32;using System;diff --git a/.Source/GTweak/Utilities/Tweaks/ServicesTweaks.cs b/.Source/GTweak/Utilities/Tweaks/ServicesTweaks.csindex 06765537..84db08fa 100644--- a/.Source/GTweak/Utilities/Tweaks/ServicesTweaks.cs+++ b/.Source/GTweak/Utilities/Tweaks/ServicesTweaks.cs@@ -1,6 +1,5 @@using GTweak.Utilities.Control;using GTweak.Utilities.Helpers;-using GTweak.Utilities.Helpers.Root;using GTweak.View;using Microsoft.Win32;using System;diff --git a/.Source/GTweak/Utilities/Tweaks/SystemMaintenance.cs b/.Source/GTweak/Utilities/Tweaks/SystemMaintenance.csindex a65a2bfa..0ddf1a9f 100644--- a/.Source/GTweak/Utilities/Tweaks/SystemMaintenance.cs+++ b/.Source/GTweak/Utilities/Tweaks/SystemMaintenance.cs@@ -1,6 +1,5 @@using GTweak.Utilities.Control;using GTweak.Utilities.Helpers;-using GTweak.Utilities.Helpers.Root;using Microsoft.Win32;using System;using System.Management;diff --git a/.Source/GTweak/Utilities/Tweaks/SystemTweaks.cs b/.Source/GTweak/Utilities/Tweaks/SystemTweaks.csindex e1070354..1adcada3 100644--- a/.Source/GTweak/Utilities/Tweaks/SystemTweaks.cs+++ b/.Source/GTweak/Utilities/Tweaks/SystemTweaks.cs@@ -1,6 +1,5 @@using GTweak.Utilities.Control;using GTweak.Utilities.Helpers;-using GTweak.Utilities.Helpers.Root;using GTweak.View;using Microsoft.Win32;using System;diff --git a/.Source/GTweak/Utilities/Tweaks/UninstallingPakages.cs b/.Source/GTweak/Utilities/Tweaks/UninstallingPakages.csindex 62b60ee4..a7811f77 100644--- a/.Source/GTweak/Utilities/Tweaks/UninstallingPakages.cs+++ b/.Source/GTweak/Utilities/Tweaks/UninstallingPakages.cs@@ -1,6 +1,5 @@using GTweak.Utilities.Control;using GTweak.Utilities.Helpers;-using GTweak.Utilities.Helpers.Root;using Microsoft.Win32;using System;using System.Collections.Generic;diff --git a/.Source/GTweak/Utilities/Tweaks/WindowsDefender.cs b/.Source/GTweak/Utilities/Tweaks/WindowsDefender.csindex 29dddecb..f8667d6b 100644--- a/.Source/GTweak/Utilities/Tweaks/WindowsDefender.cs+++ b/.Source/GTweak/Utilities/Tweaks/WindowsDefender.cs@@ -1,6 +1,5 @@using GTweak.Utilities.Control;using GTweak.Utilities.Helpers;-using GTweak.Utilities.Helpers.Root;using Microsoft.Win32;using System;using System.Diagnostics;diff --git a/.Source/GTweak/Windows/LoadingWindow.xaml.cs b/.Source/GTweak/Windows/LoadingWindow.xaml.csindex 0a096037..5857e686 100644--- a/.Source/GTweak/Windows/LoadingWindow.xaml.cs+++ b/.Source/GTweak/Windows/LoadingWindow.xaml.cs@@ -1,7 +1,7 @@using GTweak.Utilities.Configuration;using GTweak.Utilities.Control;+using GTweak.Utilities.Helpers;using GTweak.Utilities.Helpers.Animation;-using GTweak.Utilities.Helpers.Root;using GTweak.Utilities.Tweaks;using System;using System.ComponentModel;diff --git a/.Source/GTweak/Windows/MainWindow.xaml b/.Source/GTweak/Windows/MainWindow.xamlindex a699a06b..b6d95ef1 100644--- a/.Source/GTweak/Windows/MainWindow.xaml+++ b/.Source/GTweak/Windows/MainWindow.xaml@@ -6,8 +6,8 @@xmlns:local="clr-namespace:GTweak"xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"xmlns:vm="clr-namespace:GTweak.Core.ViewModel"- xmlns:nav="clr-namespace:GTweak.Utilities.Helpers.Root"- xmlns:uс="clr-namespace:GTweak.Assets.UserControl"+ xmlns:uс="clr-namespace:GTweak.Assets.UserControl"+ xmlns:nav="clr-namespace:GTweak.Core"mc:Ignorable="d"Title="GTweak"Height="630" Width="1100" ResizeMode="NoResize" WindowStyle="None" Background="Transparent"@@ -314,6 +314,7 @@<nav:ButtonNavigation Grid.Column="4" Style="{StaticResource BtnNavigation}" x:Name="BtnSystem" Content="{DynamicResource btn5_main}" Command="{Binding SystemCommand}"/><nav:ButtonNavigation Grid.Column="5" Style="{StaticResource BtnNavigation}" x:Name="BtnSystemInfo" Content="{DynamicResource btn6_main}" Command="{Binding DataSystemCommand}"/><nav:ButtonNavigation Grid.Column="6" Style="{StaticResource BtnNavigation}" x:Name="BtnMore" Content="{DynamicResource btn7_main}" Command="{Binding MoreCommand}" IsChecked="True"/>+</Grid></Border></Grid>diff --git a/.Source/GTweak/Windows/MainWindow.xaml.cs b/.Source/GTweak/Windows/MainWindow.xaml.csindex e318337a..7fe9523d 100644--- a/.Source/GTweak/Windows/MainWindow.xaml.cs+++ b/.Source/GTweak/Windows/MainWindow.xaml.cs@@ -202,16 +202,15 @@ namespace GTweak}}- private void BtnExport_PreviewMouseLeftButtonUp(object sender, MouseButtonEventArgs e) => Parallel.Invoke(SettingsRepository.SaveFileConfig);+ private void BtnExport_PreviewMouseLeftButtonUp(object sender, MouseButtonEventArgs e) => SettingsRepository.SaveFileConfig();- private void BtnImport_PreviewMouseLeftButtonUp(object sender, MouseButtonEventArgs e) => Parallel.Invoke(SettingsRepository.OpenFileConfig);+ private void BtnImport_PreviewMouseLeftButtonUp(object sender, MouseButtonEventArgs e) => SettingsRepository.OpenFileConfig();private void BtnDelete_PreviewMouseLeftButtonUp(object sender, MouseButtonEventArgs e) => SettingsRepository.SelfRemoval();private void BtnContats_PreviewMouseLeftButtonUp(object sender, MouseButtonEventArgs e){- Image btnConcat = (Image)sender;- Process.Start(btnConcat.Uid switch+ Process.Start(((Image)sender).Uid switch{"git" => "https://github.com/Greedeks","tg" => "https://t.me/Greedeks",diff --git a/.Source/GTweak/Windows/NotificationWindow.xaml.cs b/.Source/GTweak/Windows/NotificationWindow.xaml.csindex b37a0a69..654d5da9 100644--- a/.Source/GTweak/Windows/NotificationWindow.xaml.cs+++ b/.Source/GTweak/Windows/NotificationWindow.xaml.cs@@ -1,5 +1,5 @@using GTweak.Utilities.Control;-using GTweak.Utilities.Helpers.Root;+using GTweak.Utilities.Helpers;using System;using System.ComponentModel;using System.Media;diff --git a/.Source/GTweak/Windows/UpdateWindow.xaml.cs b/.Source/GTweak/Windows/UpdateWindow.xaml.csindex 05cd33ad..151286be 100644--- a/.Source/GTweak/Windows/UpdateWindow.xaml.cs+++ b/.Source/GTweak/Windows/UpdateWindow.xaml.cs@@ -1,5 +1,5 @@using GTweak.Utilities.Control;-using GTweak.Utilities.Helpers.Root;+using GTweak.Utilities.Helpers;using System;using System.ComponentModel;using System.Diagnostics;diff --git a/.Source/GTweak/Windows/WaitingWindow.xaml.cs b/.Source/GTweak/Windows/WaitingWindow.xaml.csindex b686eb2d..5c8efc84 100644--- a/.Source/GTweak/Windows/WaitingWindow.xaml.cs+++ b/.Source/GTweak/Windows/WaitingWindow.xaml.cs@@ -1,4 +1,4 @@-using GTweak.Utilities.Helpers.Root;+using GTweak.Utilities.Helpers;using System;using System.ComponentModel;using System.Diagnostics;