Skip to content

Portable Tool for an Ideal Windows Setup

-added alias for pakages & re

Greedeksf1ff13815522
diff --git a/.Source/GTweak/Utilities/Configuration/SystemDiagnostics.cs b/.Source/GTweak/Utilities/Configuration/SystemDiagnostics.cs
index d0d17231..7247a0c4 100644
--- a/.Source/GTweak/Utilities/Configuration/SystemDiagnostics.cs
+++ b/.Source/GTweak/Utilities/Configuration/SystemDiagnostics.cs
@@ -80,7 +80,7 @@ namespace GTweak.Utilities.Configuration
foreach (var managementObj in new ManagementObjectSearcher(@"root\cimv2", $"select FullName from Win32_UserAccount where domain='{Environment.UserDomainName}' and name='{Environment.UserName.ToLower()}'").Get())
nameProfile = (string)managementObj["FullName"];
- return nameProfile != string.Empty ? nameProfile : Environment.UserName.ToLower();
+ return !string.IsNullOrWhiteSpace(nameProfile) ? nameProfile : Environment.UserName.ToLower();
}
internal void GetHardwareData()
diff --git a/.Source/GTweak/Utilities/Tweaks/SystemTweaks.cs b/.Source/GTweak/Utilities/Tweaks/SystemTweaks.cs
index 4afa58fc..d86a3898 100644
--- a/.Source/GTweak/Utilities/Tweaks/SystemTweaks.cs
+++ b/.Source/GTweak/Utilities/Tweaks/SystemTweaks.cs
@@ -75,7 +75,7 @@ namespace GTweak.Utilities.Tweaks
if (powerSettingsKey != null)
{
if (!(powerSettingsKey.GetValue("ConservationIdleTime") is byte[] conservationIdleTime) || !(powerSettingsKey.GetValue("IdlePowerState") is byte[] idlePowerState) || !(powerSettingsKey.GetValue("PerformanceIdleTime") is byte[] performanceIdleTime))
- systemV.TglButton7.StateNA = true;
+ systemV.TglButton7.StateNA = false;
else
systemV.TglButton7.StateNA = conservationIdleTime?[0].ToString() != "255" || idlePowerState?[0].ToString() != "0" || performanceIdleTime?[0].ToString() != "255";
}
@@ -84,7 +84,7 @@ namespace GTweak.Utilities.Tweaks
}
}
}
- catch { systemV.TglButton7.StateNA = true; }
+ catch (Exception ex) { Debug.WriteLine(ex.Message); }
systemV.TglButton8.StateNA = File.Exists(Path.Combine(StoragePaths.SystemDisk, @"Windows\System32\smartscreen.exe")) ||
RegistryHelp.CheckValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender Security Center\App and Browser protection", "DisallowExploitProtectionOverride", "0") ||
diff --git a/.Source/GTweak/Utilities/Tweaks/UninstallingPakages.cs b/.Source/GTweak/Utilities/Tweaks/UninstallingPakages.cs
index ca2c8aee..96ebf0a9 100644
--- a/.Source/GTweak/Utilities/Tweaks/UninstallingPakages.cs
+++ b/.Source/GTweak/Utilities/Tweaks/UninstallingPakages.cs
@@ -21,40 +21,40 @@ namespace GTweak.Utilities.Tweaks
internal static readonly Dictionary<string, (string Alias, bool IsUnavailable, List<string> Scripts)> PackagesDetails = new Dictionary<string, (string Alias, bool IsUnavailable, List<string> Scripts)>()
{
["MicrosoftStore"] = (null, false, new List<string> { "Microsoft.WindowsStore" }),
- ["Todos"] = (null, false, new List<string> { "Microsoft.Todos" }),
- ["BingWeather"] = (null, false, new List<string> { "Microsoft.BingWeather" }),
- ["Microsoft3D"] = (null, false, new List<string> { "Microsoft.Microsoft3DViewer" }),
- ["Music"] = ("zunemusic", false, new List<string> { "Microsoft.ZuneMusic" }),
+ ["Todos"] = ("TodoList", false, new List<string> { "Microsoft.Todos", "Microsoft.ToDo" }),
+ ["BingWeather"] = ("MSWeather", false, new List<string> { "Microsoft.BingWeather" }),
+ ["Microsoft3D"] = ("3DViewer", false, new List<string> { "Microsoft.Microsoft3DViewer" }),
+ ["Music"] = ("zunemusic", false, new List<string> { "Microsoft.ZuneMusic", "Microsoft.GrooveMusic" }),
["GetHelp"] = (null, false, new List<string> { "Microsoft.GetHelp" }),
["MicrosoftOfficeHub"] = ("officehub", false, new List<string> { "Microsoft.MicrosoftOfficeHub" }),
["MicrosoftSolitaireCollection"] = ("solitaire", false, new List<string> { "Microsoft.MicrosoftSolitaireCollection" }),
- ["MixedReality"] = (null, false, new List<string> { "Microsoft.MixedReality.Portal" }),
+ ["MixedReality"] = ("MixedRealityPortal", false, new List<string> { "Microsoft.MixedReality.Portal" }),
["Xbox"] = (null, false, new List<string> { "Microsoft.XboxApp", "Microsoft.GamingApp", "Microsoft.XboxGamingOverlay", "Microsoft.XboxGameOverlay", "Microsoft.XboxIdentityProvider", "Microsoft.Xbox.TCUI", "Microsoft.XboxSpeechToTextOverlay" }),
["Paint3D"] = (null, false, new List<string> { "Microsoft.MSPaint" }),
- ["OneNote"] = (null, false, new List<string> { "Microsoft.Office.OneNote" }),
+ ["OneNote"] = ("MSOneNote", false, new List<string> { "Microsoft.Office.OneNote", "Microsoft.OneNote" }),
["People"] = (null, false, new List<string> { "Microsoft.People" }),
- ["MicrosoftStickyNotes"] = (null, false, new List<string> { "Microsoft.MicrosoftStickyNotes" }),
- ["Widgets"] = ("Windows.Client.WebExperience", false, new List<string> { "MicrosoftWindows.Client.WebExperience", "Microsoft.WidgetsPlatformRuntime" }),
+ ["MicrosoftStickyNotes"] = ("MSStickyNotes", false, new List<string> { "Microsoft.MicrosoftStickyNotes" }),
+ ["Widgets"] = ("Windows.Client.WebExperience", false, new List<string> { "MicrosoftWindows.Client.WebExperience", "Microsoft.WidgetsPlatformRuntime", "Windows.Client.WebExperience" }),
["ScreenSketch"] = (null, false, new List<string> { "Microsoft.ScreenSketch" }),
- ["Phone"] = (null, false, new List<string> { "Microsoft.YourPhone", "MicrosoftWindows.CrossDevice" }),
- ["Photos"] = (null, false, new List<string> { "Microsoft.Windows.Photos" }),
+ ["Phone"] = ("PhoneLink", false, new List<string> { "Microsoft.YourPhone", "MicrosoftWindows.CrossDevice" }),
+ ["Photos"] = ("MSPhotos", false, new List<string> { "Microsoft.Windows.Photos" }),
["FeedbackHub"] = ("feedback", false, new List<string> { "Microsoft.WindowsFeedbackHub" }),
["SoundRecorder"] = (null, false, new List<string> { "Microsoft.WindowsSoundRecorder" }),
["Alarms"] = (null, false, new List<string> { "Microsoft.WindowsAlarms" }),
- ["SkypeApp"] = (null, false, new List<string> { "Microsoft.SkypeApp" }),
+ ["SkypeApp"] = ("Skype", false, new List<string> { "Microsoft.SkypeApp" }),
["Maps"] = (null, false, new List<string> { "Microsoft.WindowsMaps" }),
["Camera"] = (null, false, new List<string> { "Microsoft.WindowsCamera" }),
["Video"] = ("zunevideo", false, new List<string> { "Microsoft.ZuneVideo" }),
["BingNews"] = (null, false, new List<string> { "Microsoft.BingNews" }),
["Mail"] = ("communicationsapps", false, new List<string> { "microsoft.windowscommunicationsapps" }),
- ["MicrosoftTeams"] = (null, false, new List<string> { "MicrosoftTeams", "MSTeams" }),
+ ["MicrosoftTeams"] = ("Teams", false, new List<string> { "MicrosoftTeams", "MSTeams" }),
["PowerAutomateDesktop"] = (null, false, new List<string> { "Microsoft.PowerAutomateDesktop" }),
["Cortana"] = (null, false, new List<string> { "Microsoft.549981C3F5F10" }),
["ClipChamp"] = ("Clipchamp Video Editor", false, new List<string> { "Clipchamp.Clipchamp" }),
["GetStarted"] = (null, false, new List<string> { "Microsoft.Getstarted" }),
["BingSports"] = (null, false, new List<string> { "Microsoft.BingSports" }),
["BingFinance"] = (null, false, new List<string> { "Microsoft.BingFinance" }),
- ["MicrosoftFamily"] = (null, false, new List<string> { "MicrosoftCorporationII.MicrosoftFamily" }),
+ ["MicrosoftFamily"] = ("FamilySafety", false, new List<string> { "MicrosoftCorporationII.MicrosoftFamily" }),
["BingSearch"] = (null, false, new List<string> { "Microsoft.BingSearch" }),
["Outlook"] = (null, false, new List<string> { "Microsoft.OutlookForWindows" }),
["QuickAssist"] = (null, false, new List<string> { "MicrosoftCorporationII.QuickAssist" }),
@@ -62,7 +62,7 @@ namespace GTweak.Utilities.Tweaks
["WindowsTerminal"] = (null, false, new List<string> { "Microsoft.WindowsTerminal" }),
["LinkedIn"] = ("LinkedInforWindows", false, new List<string> { "Microsoft.LinkedIn" }),
["WebMediaExtensions"] = (null, false, new List<string> { "Microsoft.WebMediaExtensions" }),
- ["OneConnect"] = (null, false, new List<string> { "Microsoft.OneConnect" }),
+ ["OneConnect"] = ("MobilePlans", false, new List<string> { "Microsoft.OneConnect" }),
["Edge"] = ("MicrosoftEdge", false, new List<string> { "Microsoft.MicrosoftEdge.Stable", "Microsoft.MicrosoftEdge.*" }),
["OneDrive"] = (null, false, null)
};