From e6184a2597d716838066ed272dce6fd6d58aac21 Mon Sep 17 00:00:00 2001 From: Jeffrey <9938813+Raphire@users.noreply.github.com> Date: Sun, 8 Nov 2026 17:55:46 +0100 Subject: [PATCH] Refactor feature label handling to utilize language catalogs (#890) --- .github/CONTRIBUTING.md | 22 +- Config/Features.json | 548 -------------------- Config/Languages/de-DE/Chrome.json | 1 - Config/Languages/en-US/Chrome.json | 1 - Config/Languages/es-ES/Chrome.json | 1 - Config/Languages/fr-FR/Chrome.json | 1 - Config/Languages/it-IT/Chrome.json | 1 - Config/Languages/ja-JP/Chrome.json | 1 - Config/Languages/ko-KR/Chrome.json | 1 - Config/Languages/nl-NL/Chrome.json | 1 - Config/Languages/pt-BR/Chrome.json | 1 - Config/Languages/ru-RU/Chrome.json | 1 - Config/Languages/tr-TR/Chrome.json | 1 - Config/Languages/zh-CN/Chrome.json | 1 - Config/Languages/zh-TW/Chrome.json | 1 - Scripts/CLI/Write-PendingChanges.ps1 | 6 +- Scripts/Features/Invoke-Changes.ps1 | 8 +- Scripts/FileIO/Import-LanguageFile.ps1 | 8 +- Scripts/GUI/MainWindow-Deployment.ps1 | 21 +- Scripts/GUI/MainWindow-TweaksBuilder.ps1 | 43 +- Scripts/Helpers/Get-RebootFeatureLabels.ps1 | 6 +- Tests/FeatureParameterContracts.Tests.ps1 | 34 ++ Tests/Get-RebootFeatureLabels.Tests.ps1 | 12 +- Tests/Invoke-Changes.Tests.ps1 | 10 +- Tests/MainWindow-Deployment.Tests.ps1 | 12 +- Tests/MainWindow-Localization.Tests.ps1 | 12 +- Tests/Show-CliMenuOptions.Tests.ps1 | 14 +- Tests/Ui-Preferences.Tests.ps1 | 69 +++ Win11Debloat.ps1 | 12 +- 29 files changed, 173 insertions(+), 677 deletions(-) diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 4ed86f8..f148586 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -303,14 +303,9 @@ Add your feature to the `"Features"` array in `Config/Features.json`: ```json { "FeatureId": "YourFeatureId", - "Label": "Short label describing the feature", - "ToolTip": "Detailed explanation of what this feature does and its impact.", "Category": "Privacy & Suggested Content", "Priority": 1, "RegistryKey": "Disable_YourFeature.reg", - "ApplyText": "Disabling your feature", - "UndoLabel": "Short description for the undo", - "ApplyUndoText": "Enabling your feature", "RegistryUndoKey": "Enable_YourFeature.reg", "RequiresReboot": false, "DisableWhenApplied": false, @@ -322,14 +317,9 @@ Add your feature to the `"Features"` array in `Config/Features.json`: **Field Descriptions**: - `FeatureId`: Unique identifier, this must match parameter name in the Win11Debloat.ps1 and Get.ps1 files. -- `Label`: Short description shown in the UI and wiki documentation. -- `ToolTip`: Detailed explanation of what the feature does, used for tooltips in the GUI. - `Category`: One of the predefined categories (see Categories array in Features.json), features without a category won't be loaded into the GUI. - `Priority`: Optional. The priority value (int) is used to sort features within a category. If this field is omitted the feature will be sorted based on the order in the Features.json file. - `RegistryKey`: Filename of the registry file to apply (in Regfiles/ directory) or null if feature does not require registry changes. -- `ApplyText`: Message shown when applying the feature. -- `UndoLabel`: Short description for the undo shown in the UI. -- `ApplyUndoText`: Message shown when undoing the feature. - `RegistryUndoKey`: Filename of the registry file to revert changes or null if feature does not require registry changes. - `RequiresReboot`: Optional boolean. Set to `true` if the feature requires a system reboot to take effect. - `DisableWhenApplied`: Optional boolean. Set to `true` if the feature has no supported undo method. @@ -346,7 +336,7 @@ Add a corresponding parameter to both `Win11Debloat.ps1` AND `Scripts/Get.ps1`, #### 4. Add the English Translation Entry -Add a matching entry for your `FeatureId` to `Config/Languages/en-US/Features.json` (see [Localizing UI Text](#localizing-ui-text)) so the GUI shows your `Label`/`ToolTip`/etc. instead of the raw `FeatureId`. +Add a matching entry for your `FeatureId` to `Config/Languages/en-US/Features.json` (see [Localizing UI Text](#localizing-ui-text)). Labels, tooltips, and apply/undo messages belong only in the language catalogs. #### 5. Add or Update Tests @@ -423,7 +413,7 @@ To add a new category for organizing features: } ``` - `CategoryId` is the stable identifier used for tweak presets, app-removal scope, and localization lookups. `Name` stays as the English display fallback. Skip `CategoryId` and the category falls back to using its `Name` as the ID, which breaks translation lookups, so always set one. + `CategoryId` is required for tweak presets and localization. `Name` must match the `Category` value on features and groups. Add the display label to `Config/Languages/en-US/Categories.json`, keyed by `CategoryId`. > [!TIP] > Use [Segoe Fluent Icon Assets](https://learn.microsoft.com/en-us/windows/apps/design/iconography/segoe-fluent-icons-font) for icon codes. @@ -437,17 +427,13 @@ UI Groups allow features to be grouped together in the GUI with a combobox ```json { "GroupId": "UniqueGroupId", - "Label": "Display label for the group", - "ToolTip": "Explanation of what this group controls", "Category": "Category Name", "Priority": 1, "Values": [ { - "Label": "Option 1", "FeatureIds": ["FeatureId1"] }, { - "Label": "Option 2", "FeatureIds": ["FeatureId2"] } ] @@ -461,9 +447,9 @@ Add a matching entry for your `GroupId` to `Config/Languages/en-US/Features.json ### Localizing UI Text -GUI text lives in `Config/Languages/en-US/`, not hardcoded in `Schemas/*.xaml` or `Scripts/GUI/*.ps1`. Adding or changing a Feature, Category, UI Group, or App means updating the matching English entry, or the GUI falls back to showing the raw ID. +GUI text lives in `Config/Languages/en-US/`, not hardcoded in `Schemas/*.xaml`, `Scripts/GUI/*.ps1` or `Config/Features.json`. Adding or changing a Feature, Category, UI Group, or App means updating the matching English entry, or the GUI falls back to showing the raw ID. -- `Config/Languages/en-US/Features.json`, under `"Features"`, keyed by `FeatureId`. Add `Label`, `ToolTip`, `ApplyText`, `UndoLabel`, and `ApplyUndoText` to match whatever fields you set in `Config/Features.json`. +- `Config/Languages/en-US/Features.json`, under `"Features"`, keyed by `FeatureId`: `Label` describes the feature, `ToolTip` explains its impact, and `ApplyText` is the operation message. For features supporting undo, also add `UndoLabel` and `ApplyUndoText`. - `Config/Languages/en-US/Features.json`, under `"UiGroups"`, keyed by `GroupId`. Add `Label`, `ToolTip`, and a `Values` map of `FeatureId: "Option label"` matching the group's `Values` array. - `Config/Languages/en-US/Categories.json`, keyed by `CategoryId`. Add a `Label` for every new category. - `Config/Languages/en-US/Apps.json`, keyed by `AppId`. Add `FriendlyName` and `Description` for every new app. diff --git a/Config/Features.json b/Config/Features.json index 107aef7..234a07e 100644 --- a/Config/Features.json +++ b/Config/Features.json @@ -65,25 +65,20 @@ "UiGroups": [ { "GroupId": "DesktopSpotlight", - "Label": "Windows spotlight on the desktop", - "ToolTip": "This setting controls the Windows spotlight desktop background option. Keep the rotating wallpaper with or without the 'Learn about this picture' shortcut, or disable Windows spotlight entirely.", "Category": "Appearance", "Priority": 4, "Values": [ { - "Label": "Show 'Learn about this picture' shortcut (Default)", "FeatureIds": [ "EnableDesktopSpotlight" ] }, { - "Label": "Hide 'Learn about this picture' shortcut", "FeatureIds": [ "HideDesktopSpotlightIcon" ] }, { - "Label": "Disable Windows spotlight desktop background", "FeatureIds": [ "DisableDesktopSpotlight" ] @@ -92,31 +87,25 @@ }, { "GroupId": "SearchIcon", - "Label": "Taskbar search style", - "ToolTip": "This setting allows you to customize the appearance of the search box on the taskbar.", "Category": "Taskbar", "Priority": 2, "Values": [ { - "Label": "Show search box (Default)", "FeatureIds": [ "ShowSearchBoxTb" ] }, { - "Label": "Show search icon and label", "FeatureIds": [ "ShowSearchLabelTb" ] }, { - "Label": "Show search icon only", "FeatureIds": [ "ShowSearchIconTb" ] }, { - "Label": "Hide", "FeatureIds": [ "HideSearchTb" ] @@ -125,24 +114,19 @@ }, { "GroupId": "MultiMon", - "Label": "Show taskbar apps on", - "ToolTip": "This setting allows you to choose where taskbar app buttons are shown when using multiple monitors.", "Category": "Taskbar", "Values": [ { - "Label": "All taskbars (Default)", "FeatureIds": [ "MMTaskbarModeAll" ] }, { - "Label": "Main taskbar and taskbar where window is open", "FeatureIds": [ "MMTaskbarModeMainActive" ] }, { - "Label": "Taskbar where window is open", "FeatureIds": [ "MMTaskbarModeActive" ] @@ -151,24 +135,19 @@ }, { "GroupId": "CombineButtons", - "Label": "Combine taskbar buttons on the main display", - "ToolTip": "This setting allows you to choose how taskbar buttons are combined on the main display.", "Category": "Taskbar", "Values": [ { - "Label": "Always (Default)", "FeatureIds": [ "CombineTaskbarAlways" ] }, { - "Label": "When taskbar is full", "FeatureIds": [ "CombineTaskbarWhenFull" ] }, { - "Label": "Never", "FeatureIds": [ "CombineTaskbarNever" ] @@ -177,24 +156,19 @@ }, { "GroupId": "CombineMMButtons", - "Label": "Combine taskbar buttons on secondary displays", - "ToolTip": "This setting allows you to choose how taskbar buttons are combined on secondary displays.", "Category": "Taskbar", "Values": [ { - "Label": "Always (Default)", "FeatureIds": [ "CombineMMTaskbarAlways" ] }, { - "Label": "When taskbar is full", "FeatureIds": [ "CombineMMTaskbarWhenFull" ] }, { - "Label": "Never", "FeatureIds": [ "CombineMMTaskbarNever" ] @@ -203,18 +177,14 @@ }, { "GroupId": "ClearStart", - "Label": "Remove pinned apps from the start menu", - "ToolTip": "This setting allows you to quickly remove all pinned apps from the start menu.", "Category": "Start Menu & Search", "Values": [ { - "Label": "Remove for the selected user", "FeatureIds": [ "ClearStart" ] }, { - "Label": "Remove for all users", "FeatureIds": [ "ClearStartAllUsers" ] @@ -223,31 +193,25 @@ }, { "GroupId": "ExplorerLocation", - "Label": "Open File Explorer to", - "ToolTip": "This setting allows you to choose the default location that File Explorer opens to.", "Category": "File Explorer", "Priority": 1, "Values": [ { - "Label": "Home (Default)", "FeatureIds": [ "ExplorerToHome" ] }, { - "Label": "This PC", "FeatureIds": [ "ExplorerToThisPC" ] }, { - "Label": "Downloads", "FeatureIds": [ "ExplorerToDownloads" ] }, { - "Label": "OneDrive", "FeatureIds": [ "ExplorerToOneDrive" ] @@ -256,31 +220,25 @@ }, { "GroupId": "DriveLetterPosition", - "Label": "Drive letter position", - "ToolTip": "This setting allows you to choose where drive letters are shown in File Explorer.", "Category": "File Explorer", "Priority": 20, "Values": [ { - "Label": "Show drive letters after drive label (Default)", "FeatureIds": [ "ShowDriveLettersLast" ] }, { - "Label": "Show drive letters before drive label", "FeatureIds": [ "ShowDriveLettersFirst" ] }, { - "Label": "Show network drive letters before drive label", "FeatureIds": [ "ShowNetworkDriveLettersFirst" ] }, { - "Label": "Hide all drive letters", "FeatureIds": [ "HideDriveLetters" ] @@ -289,31 +247,25 @@ }, { "GroupId": "ShowTabsInAltTab", - "Label": "Show tabs from apps when snapping or pressing Alt+Tab", - "ToolTip": "This setting allows you to choose whether to show tabs from apps (such as Edge browser tabs) when snapping windows or pressing Alt+Tab.", "Category": "Multi-tasking", "Priority": 10, "Values": [ { - "Label": "Don't show tabs", "FeatureIds": [ "HideTabsInAltTab" ] }, { - "Label": "Show 3 most recent tabs (Default)", "FeatureIds": [ "Show3TabsInAltTab" ] }, { - "Label": "Show 5 most recent tabs", "FeatureIds": [ "Show5TabsInAltTab" ] }, { - "Label": "Show 20 most recent tabs", "FeatureIds": [ "Show20TabsInAltTab" ] @@ -322,30 +274,24 @@ }, { "GroupId": "StartAllAppsView", - "Label": "Start menu 'All Apps' view", - "ToolTip": "This setting allows you to change the layout of the 'All Apps' section in the start menu, or hide it entirely. Hiding this section may make it harder to find installed apps on your system. This feature uses policies, which will lock down certain settings.", "Category": "Start Menu & Search", "Values": [ { - "Label": "Hide", "FeatureIds": [ "DisableStartAllApps" ] }, { - "Label": "Category (Default)", "FeatureIds": [ "StartAllAppsCategory" ] }, { - "Label": "Grid", "FeatureIds": [ "StartAllAppsGrid" ] }, { - "Label": "List", "FeatureIds": [ "StartAllAppsList" ] @@ -356,399 +302,253 @@ "Features": [ { "FeatureId": "RemoveApps", - "Label": "Remove the apps specified with the 'Apps' parameter", "Category": null, "RegistryKey": null, - "ApplyText": "Removing selected apps", - "UndoLabel": null, - "ApplyUndoText": null, "RegistryUndoKey": null, "MinVersion": null, "MaxVersion": null }, { "FeatureId": "Apps", - "Label": "The selection of apps to remove, specified as a comma separated list. Use 'Default' (or omit) to use the default apps list", "Category": null, "RegistryKey": null, - "ApplyText": "Removing selected apps", - "UndoLabel": null, - "ApplyUndoText": null, "RegistryUndoKey": null, "MinVersion": null, "MaxVersion": null }, { "FeatureId": "RemoveGamingApps", - "Label": "Remove the Xbox App and Xbox Gamebar", "Category": null, "RegistryKey": null, - "ApplyText": "Removing gaming related apps", - "UndoLabel": null, - "ApplyUndoText": null, "RegistryUndoKey": null, "MinVersion": null, "MaxVersion": null }, { "FeatureId": "RemoveHPApps", - "Label": "Remove HP OEM applications", "Category": null, "RegistryKey": null, - "ApplyText": "Removing HP apps", - "UndoLabel": null, - "ApplyUndoText": null, "RegistryUndoKey": null, "MinVersion": null, "MaxVersion": null }, { "FeatureId": "CreateRestorePoint", - "Label": "Create a system restore point", "Category": null, "RegistryKey": null, - "ApplyText": "Creating system restore point", - "UndoLabel": null, - "ApplyUndoText": null, "RegistryUndoKey": null, "MinVersion": null, "MaxVersion": null }, { "FeatureId": "DisableTelemetry", - "Label": "Disable telemetry, tracking & targeted ads", - "ToolTip": "This setting disables telemetry, diagnostic data collection, activity history, app-launch tracking, targeted ads and more. It limits the data that is sent to Microsoft about your device and usage. If you are a Windows Insider, updates may be blocked until optional diagnostic data collection is turned back on.", "Category": "Privacy & Suggested Content", "Priority": 1, "RegistryKey": "Disable_Telemetry.reg", - "ApplyText": "Disabling telemetry and diagnostic data collection", - "UndoLabel": "Enable telemetry, tracking & targeted ads", - "ApplyUndoText": "Enabling telemetry and diagnostic data collection", "RegistryUndoKey": "Enable_Telemetry.reg", "MinVersion": null, "MaxVersion": null }, { "FeatureId": "DisableSuggestions", - "Label": "Disable tips, tricks & suggested content throughout Windows", - "ToolTip": "This setting removes many annoying distractions from Windows. This includes things like notifications, reminders, ads and other interruptions. It also prevents automated installation of suggested apps.", "Category": "Privacy & Suggested Content", "Priority": 2, "RegistryKey": "Disable_Windows_Suggestions.reg", - "ApplyText": "Disabling tips, tricks, suggestions and ads throughout Windows", - "UndoLabel": "Enable tips, tricks & suggested content throughout Windows", - "ApplyUndoText": "Enabling tips, tricks, suggestions and ads throughout Windows", "RegistryUndoKey": "Enable_Windows_Suggestions.reg", "MinVersion": null, "MaxVersion": null }, { "FeatureId": "DisableNotifications", - "Label": "Disable Windows system and app notifications", - "ToolTip": "Disables native Windows system and app notifications, this includes notifications from apps like Discord, WhatsApp, Teams, and Slack.", "Category": "System", "RegistryKey": "Disable_Notifications.reg", - "ApplyText": "Disabling Windows notifications and reminders", - "UndoLabel": "Enable Windows notifications and reminders", - "ApplyUndoText": "Enabling Windows notifications and reminders", "RegistryUndoKey": "Enable_Notifications.reg", "MinVersion": null, "MaxVersion": null }, { "FeatureId": "DisableLocationServices", - "Label": "Disable Windows location services & app location access", - "ToolTip": "This will turn off Windows Location Services and deny apps access to your location. This feature uses policies, which will lock down certain settings.", "Category": "Privacy & Suggested Content", "Priority": 4, "RegistryKey": "Disable_Location_Services.reg", - "ApplyText": "Disabling Windows location services and app location access", - "UndoLabel": "Enable Windows location services & app location access", - "ApplyUndoText": "Enabling Windows location services and app location access", "RegistryUndoKey": "Enable_Location_Services.reg", "MinVersion": null, "MaxVersion": null }, { "FeatureId": "DisableFindMyDevice", - "Label": "Disable Find My Device location tracking", - "ToolTip": "This will turn off the 'Find My Device' feature, which periodically sends your device's location to Microsoft. This feature uses policies, which will lock down certain settings.", "Category": "Privacy & Suggested Content", "Priority": 5, "RegistryKey": "Disable_Find_My_Device.reg", - "ApplyText": "Disabling Find My Device location tracking", - "UndoLabel": "Enable Find My Device location tracking", - "ApplyUndoText": "Enabling Find My Device location tracking", "RegistryUndoKey": "Enable_Find_My_Device.reg", "MinVersion": null, "MaxVersion": null }, { "FeatureId": "DisableLockscreenTips", - "Label": "Disable tips & tricks on the lock screen", - "ToolTip": "This will turn off the lockscreen spotlight option and disable the tips, tricks and fun facts that appear on the lock screen.", "Category": "Privacy & Suggested Content", "Priority": 6, "RegistryKey": "Disable_Lockscreen_Tips.reg", - "ApplyText": "Disabling tips & tricks on the lock screen", - "UndoLabel": "Enable tips & tricks on the lock screen", - "ApplyUndoText": "Enabling tips & tricks on the lock screen", "RegistryUndoKey": "Enable_Lockscreen_Tips.reg", "MinVersion": null, "MaxVersion": null }, { "FeatureId": "EnableDesktopSpotlight", - "Label": "Enable Windows spotlight desktop background and shortcut", - "ToolTip": "Restores the Windows spotlight desktop background and the 'Learn about this picture' shortcut.", "Category": "Appearance", "RegistryKey": "Enable_Desktop_Spotlight.reg", - "ApplyText": "Restoring the Windows spotlight desktop background and shortcut", - "UndoLabel": null, - "ApplyUndoText": null, "RegistryUndoKey": null, "MinVersion": null, "MaxVersion": null }, { "FeatureId": "DisableDesktopSpotlight", - "Label": "Disable Windows spotlight desktop background", - "ToolTip": "Turns off Windows spotlight for the desktop background, which displays rotating images and may show tips and fun facts. This feature uses policies, which will lock down certain settings.", "Category": "Appearance", "RegistryKey": "Disable_Desktop_Spotlight.reg", - "ApplyText": "Disabling the Windows spotlight desktop background", - "UndoLabel": "Enable Windows spotlight desktop background", - "ApplyUndoText": "Restoring the Windows spotlight desktop background and shortcut", "RegistryUndoKey": "Enable_Desktop_Spotlight.reg", "MinVersion": null, "MaxVersion": null }, { "FeatureId": "HideDesktopSpotlightIcon", - "Label": "Hide the 'Learn about this picture' desktop shortcut", - "ToolTip": "Hides the 'Learn about this picture' desktop shortcut while keeping Windows spotlight wallpaper rotation enabled. It does not disable Windows spotlight.", "Category": "Appearance", "RegistryKey": "Hide_Desktop_Spotlight_Icon.reg", - "ApplyText": "Hiding the Windows spotlight 'Learn about this picture' desktop shortcut", - "UndoLabel": "Show the 'Learn about this picture' desktop shortcut", - "ApplyUndoText": "Showing the Windows spotlight 'Learn about this picture' desktop shortcut", "RegistryUndoKey": "Show_Desktop_Spotlight_Icon.reg", "MinVersion": null, "MaxVersion": null }, { "FeatureId": "DisableEdgeAds", - "Label": "Disable ads, suggestions and newsfeed in Edge", - "ToolTip": "This will turn off various distractions from Microsoft Edge such as ads, suggestions and the MSN news feed. This feature uses policies, which will lock down certain settings.", "Category": "Privacy & Suggested Content", "RegistryKey": "Disable_Edge_Ads_And_Suggestions.reg", - "ApplyText": "Disabling ads, suggestions and the MSN news feed in Microsoft Edge", - "UndoLabel": "Enable ads, suggestions and newsfeed in Edge", - "ApplyUndoText": "Enabling ads, suggestions and the MSN news feed in Microsoft Edge", "RegistryUndoKey": "Enable_Edge_Ads_And_Suggestions.reg", "MinVersion": null, "MaxVersion": null }, { "FeatureId": "DisableCopilot", - "Label": "Disable Microsoft Copilot", - "ToolTip": "This will disable and uninstall Microsoft Copilot, Windows' built-in AI assistant.", "Category": "AI", "RegistryKey": "Disable_Copilot.reg", - "ApplyText": "Disabling Microsoft Copilot", - "UndoLabel": "Enable Microsoft Copilot", - "ApplyUndoText": "Enabling Microsoft Copilot", "RegistryUndoKey": "Enable_Copilot.reg", "MinVersion": 22621, "MaxVersion": null }, { "FeatureId": "DisableRecall", - "Label": "Disable Windows Recall", - "ToolTip": "This will disable Windows Recall, an AI-powered feature that provides quick access to recently used files, apps and activities. This feature uses policies, which will lock down certain settings.", "Category": "AI", "RegistryKey": "Disable_AI_Recall.reg", - "ApplyText": "Disabling Windows Recall", - "UndoLabel": "Enable Windows Recall", - "ApplyUndoText": "Enabling Windows Recall", "RegistryUndoKey": "Enable_AI_Recall.reg", "MinVersion": 22621, "MaxVersion": null }, { "FeatureId": "DisableClickToDo", - "Label": "Disable Click To Do, AI text & image analysis", - "ToolTip": "This will disable Click To Do, which provides AI-powered text and image analysis features in Windows. This feature uses policies, which will lock down certain settings.", "Category": "AI", "RegistryKey": "Disable_Click_to_Do.reg", - "ApplyText": "Disabling Click to Do", - "UndoLabel": "Enable Click To Do, AI text & image analysis", - "ApplyUndoText": "Enabling Click to Do", "RegistryUndoKey": "Enable_Click_to_Do.reg", "MinVersion": 22621, "MaxVersion": null }, { "FeatureId": "DisableAISvcAutoStart", - "Label": "Prevent AI service from starting automatically", - "ToolTip": "This will set the WSAIFabricSvc service to manual startup, preventing the service from starting automatically with Windows.", "Category": "AI", "RegistryKey": "Disable_AI_Service_Auto_Start.reg", - "ApplyText": "Preventing AI service from starting automatically", - "UndoLabel": "Allow AI service to start automatically", - "ApplyUndoText": "Allowing AI service to start automatically", "RegistryUndoKey": "Enable_AI_Service_Auto_Start.reg", "MinVersion": 22621, "MaxVersion": null }, { "FeatureId": "DisableDVR", - "Label": "Disable Xbox game/screen recording", - "ToolTip": "This will disable the Xbox game/screen recording features included with the Game Bar app. This feature uses policies, which will lock down certain settings.", "Category": "Gaming", "RegistryKey": "Disable_DVR.reg", - "ApplyText": "Disabling Xbox game/screen recording", - "UndoLabel": "Enable Xbox game/screen recording", - "ApplyUndoText": "Enabling Xbox game/screen recording", "RegistryUndoKey": "Enable_DVR.reg", "MinVersion": null, "MaxVersion": null }, { "FeatureId": "DisableGameBarIntegration", - "Label": "Disable Game Bar integration", - "ToolTip": "This will disable the Game Bar integration with games and controllers. This stops annoying ms-gamebar popups when launching games or connecting a controller.", "Category": "Gaming", "RegistryKey": "Disable_Game_Bar_Integration.reg", - "ApplyText": "Disabling Game Bar integration", - "UndoLabel": "Enable Game Bar integration", - "ApplyUndoText": "Enabling Game Bar integration", "RegistryUndoKey": "Enable_Game_Bar_Integration.reg", "MinVersion": null, "MaxVersion": null }, { "FeatureId": "ClearStart", - "Label": "Remove all pinned apps from the start menu for this user only", "Category": "Start Menu & Search", "RegistryKey": null, - "ApplyText": "Removing all pinned apps from the start menu", - "UndoLabel": null, - "ApplyUndoText": null, "RegistryUndoKey": null, "MinVersion": 22621, "MaxVersion": null }, { "FeatureId": "ClearStartAllUsers", - "Label": "Remove all pinned apps from the start menu for all existing and new users", "Category": "Start Menu & Search", "RegistryKey": null, - "ApplyText": "Removing all pinned apps from the start menu for all users", - "UndoLabel": null, - "ApplyUndoText": null, "RegistryUndoKey": null, "MinVersion": 22621, "MaxVersion": null }, { "FeatureId": "ReplaceStart", - "Label": "Replace the start menu layout for this user only with the provided template file", "Category": null, "RegistryKey": null, - "ApplyText": "Replacing the start menu", - "UndoLabel": null, - "ApplyUndoText": null, "RegistryUndoKey": null, "MinVersion": 22621, "MaxVersion": null }, { "FeatureId": "ReplaceStartAllUsers", - "Label": "Replace the start menu layout for all existing and new users with the provided template file", "Category": null, "RegistryKey": null, - "ApplyText": "Replacing the start menu for all users", - "UndoLabel": null, - "ApplyUndoText": null, "RegistryUndoKey": null, "MinVersion": 22621, "MaxVersion": null }, { "FeatureId": "DisableStartRecommended", - "Label": "Hide recommended section in the start menu", - "ToolTip": "This will hide the recommended section in the start menu, which shows recently added apps, recently opened files and app recommendations. This feature uses policies, which will lock down certain settings.", "Category": "Start Menu & Search", "RegistryKey": "Disable_Start_Recommended.reg", - "ApplyText": "Disabling the start menu recommended section", - "UndoLabel": "Show recommended section in the start menu", - "ApplyUndoText": "Enabling the start menu recommended section", "RegistryUndoKey": "Enable_Start_Recommended.reg", "MinVersion": 22621, "MaxVersion": null }, { "FeatureId": "DisableStartAllApps", - "Label": "Hide 'All Apps' section in the start menu", - "ToolTip": "This will hide the 'All Apps' section in the start menu, which shows all installed apps. WARNING: Hiding this section may make it harder to find installed apps on your system. This feature uses policies, which will lock down certain settings.", "Category": "Start Menu & Search", "RegistryKey": "Disable_Start_All_Apps.reg", - "ApplyText": "Disabling the 'All Apps' section in the start menu", - "UndoLabel": "Show 'All Apps' section in the start menu", - "ApplyUndoText": "Enabling the 'All Apps' section in the start menu", "RegistryUndoKey": "Enable_Start_All_Apps.reg", "MinVersion": 26200, "MaxVersion": null }, { "FeatureId": "DisableStartPhoneLink", - "Label": "Disable Phone Link integration in the start menu", - "ToolTip": "This will remove the Phone Link integration in the start menu when you have a mobile device linked to your PC.", "Category": "Start Menu & Search", "RegistryKey": "Disable_Phone_Link_In_Start.reg", - "ApplyText": "Disabling the Phone Link mobile devices integration in the start menu", - "UndoLabel": "Enable Phone Link integration in the start menu", - "ApplyUndoText": "Enabling the Phone Link mobile devices integration in the start menu", "RegistryUndoKey": "Enable_Phone_Link_In_Start.reg", "MinVersion": 22621, "MaxVersion": null }, { "FeatureId": "DisableBing", - "Label": "Disable Bing web search & Copilot integration in search", - "ToolTip": "This will turn off Bing web search results and Copilot integration in the Windows search experience. This feature uses policies, which will lock down certain settings.", "Category": "Start Menu & Search", "RegistryKey": "Disable_Bing_Cortana_In_Search.reg", - "ApplyText": "Disabling Bing web search & Copilot integration in Windows search", - "UndoLabel": "Enable Bing web search & Copilot integration in search", - "ApplyUndoText": "Enabling Bing web search & Copilot integration in Windows search", "RegistryUndoKey": "Enable_Bing_Cortana_In_Search.reg", "MinVersion": null, "MaxVersion": null }, { "FeatureId": "DisableStoreSearchSuggestions", - "Label": "Disable Microsoft Store app suggestions in search", - "ToolTip": "This will disable the Microsoft Store app suggestions in Windows search.", "Category": "Start Menu & Search", "RegistryKey": null, - "ApplyText": "Disabling Microsoft Store app suggestions in search", - "UndoLabel": "Enable Microsoft Store app suggestions in search", - "ApplyUndoText": "Enabling Microsoft Store app suggestions in search", "RegistryUndoKey": null, "MinVersion": 22621, "MaxVersion": null }, { "FeatureId": "DisableStartWebView2", - "Label": "Optimize Windows search memory usage by disabling WebView2", - "ToolTip": "Reduces memory usage by preventing Windows search from using WebView2. This setting applies to all users.", "Category": "Start Menu & Search", "RegistryKey": "Disable_Start_WebView2.reg", - "ApplyText": "Disabling WebView2 in Windows search", - "UndoLabel": "Restore default Windows search behavior", - "ApplyUndoText": "Restoring default Windows search behavior", "RegistryUndoKey": "Enable_Start_WebView2.reg", "RequiresReboot": true, "MinVersion": 22000, @@ -756,90 +556,55 @@ }, { "FeatureId": "DisableSettings365Ads", - "Label": "Hide Microsoft 365 Copilot ads in Settings Home", - "ToolTip": "This will turn off the Microsoft 365 Copilot ads that appear in the Settings Home page.", "Category": "Privacy & Suggested Content", "RegistryKey": "Disable_Settings_365_Ads.reg", - "ApplyText": "Disabling Microsoft 365 Copilot ads in Settings Home", - "UndoLabel": "Show Microsoft 365 Copilot ads in Settings Home", - "ApplyUndoText": "Enabling Microsoft 365 Copilot ads in Settings Home", "RegistryUndoKey": "Enable_Settings_365_Ads.reg", "MinVersion": 22000, "MaxVersion": null }, { "FeatureId": "DisableSettingsHome", - "Label": "Hide Settings 'Home' page", - "ToolTip": "Removes the 'Home' page from the Settings app.", "Category": "Other", "RegistryKey": "Disable_Settings_Home.reg", - "ApplyText": "Disabling the Settings Home page", - "UndoLabel": "Show Settings 'Home' page", - "ApplyUndoText": "Enabling the Settings Home page", "RegistryUndoKey": "Enable_Settings_Home.reg", "MinVersion": 22000, "MaxVersion": null }, { "FeatureId": "DisableEdgeAI", - "Label": "Disable AI features in Microsoft Edge", - "ToolTip": "This will turn off AI features in Microsoft Edge, such as the AI-powered sidebar and Copilot features. This feature uses policies, which will lock down certain settings.", "Category": "AI", "RegistryKey": "Disable_Edge_AI_Features.reg", - "ApplyText": "Disabling AI features in Microsoft Edge", - "UndoLabel": "Enable AI features in Microsoft Edge", - "ApplyUndoText": "Enabling AI features in Microsoft Edge", "RegistryUndoKey": "Enable_Edge_AI_Features.reg", "MinVersion": 22621, "MaxVersion": null },{ "FeatureId": "DisableChromeAI", - "Label": "Disable AI features in Google Chrome", - "ToolTip": "Disables Google Chrome's built-in AI tools and integrations, including Gemini, AI search & suggestions, writing assistance, autofill and more. It also removes local AI models. This feature uses policies, which will lock down certain settings.", "Category": "AI", "RegistryKey": "Disable_Chrome_AI_Features.reg", - "ApplyText": "Disabling AI features in Google Chrome", - "UndoLabel": "Enable AI features in Google Chrome", - "ApplyUndoText": "Enabling AI features in Google Chrome", "RegistryUndoKey": "Enable_Chrome_AI_Features.reg", "MinVersion": 22621, "MaxVersion": null }, { "FeatureId": "DisablePaintAI", - "Label": "Disable AI features in Paint", - "ToolTip": "This will turn off AI features in Paint, such as the AI-powered image generation and editing tools. This feature uses policies, which will lock down certain settings.", "Category": "AI", "RegistryKey": "Disable_Paint_AI_Features.reg", - "ApplyText": "Disabling AI features in Paint", - "UndoLabel": "Enable AI features in Paint", - "ApplyUndoText": "Enabling AI features in Paint", "RegistryUndoKey": "Enable_Paint_AI_Features.reg", "MinVersion": 22621, "MaxVersion": null }, { "FeatureId": "DisableNotepadAI", - "Label": "Disable AI features in Notepad", - "ToolTip": "This will turn off AI features in Notepad, such as the AI-powered writing suggestions. This feature uses policies, which will lock down certain settings.", "Category": "AI", "RegistryKey": "Disable_Notepad_AI_Features.reg", - "ApplyText": "Disabling AI features in Notepad", - "UndoLabel": "Enable AI features in Notepad", - "ApplyUndoText": "Enabling AI features in Notepad", "RegistryUndoKey": "Enable_Notepad_AI_Features.reg", "MinVersion": 22621, "MaxVersion": null }, { "FeatureId": "EnableDarkMode", - "Label": "Enable dark theme for system and apps", - "ToolTip": "This will set the app and system theme to dark mode.", "Category": "Appearance", "RegistryKey": "Enable_Dark_Mode.reg", - "ApplyText": "Enabling dark mode for system and apps", - "UndoLabel": "Disable dark theme for system and apps", - "ApplyUndoText": "Disabling dark mode for system and apps", "RegistryUndoKey": "Enable_Light_Mode.reg", "Priority": 1, "MinVersion": null, @@ -847,26 +612,16 @@ }, { "FeatureId": "RevertContextMenu", - "Label": "Use classic Windows 10 context menu style", - "ToolTip": "This will restore the classic Windows 10 style context menu, which is normally hidden behind the 'Show more options' entry in the new Windows 11 context menu.", "Category": "System", "RegistryKey": "Disable_Show_More_Options_Context_Menu.reg", - "ApplyText": "Restoring the classic Windows 10 style context menu", - "UndoLabel": "Use Windows 11 context menu style", - "ApplyUndoText": "Restoring the Windows 11 style context menu", "RegistryUndoKey": "Enable_W11_Style_Context_Menu.reg", "MinVersion": 22000, "MaxVersion": null }, { "FeatureId": "DisableMouseAcceleration", - "Label": "Disable Enhance Pointer Precision (mouse acceleration)", - "ToolTip": "This will disable mouse acceleration which is enabled by default in Windows. This makes mouse movement more consistent and predictable.", "Category": "System", "RegistryKey": "Disable_Enhance_Pointer_Precision.reg", - "ApplyText": "Turning off Enhanced Pointer Precision", - "UndoLabel": "Enable Enhance Pointer Precision (mouse acceleration)", - "ApplyUndoText": "Turning on Enhanced Pointer Precision", "RegistryUndoKey": "Enable_Enhance_Pointer_Precision.reg", "RequiresReboot": true, "MinVersion": null, @@ -874,13 +629,8 @@ }, { "FeatureId": "DisableStickyKeys", - "Label": "Disable Sticky Keys keyboard shortcut (5x shift)", - "ToolTip": "This will prevent the Sticky Keys dialog from appearing when you press the Shift key 5 times in a row.", "Category": "System", "RegistryKey": "Disable_Sticky_Keys_Shortcut.reg", - "ApplyText": "Disabling the Sticky Keys keyboard shortcut", - "UndoLabel": "Enable Sticky Keys keyboard shortcut (5x shift)", - "ApplyUndoText": "Enabling the Sticky Keys keyboard shortcut", "RegistryUndoKey": "Enable_Sticky_Keys_Shortcut.reg", "RequiresReboot": true, "MinVersion": 26100, @@ -888,14 +638,9 @@ }, { "FeatureId": "DisableWindowSnapping", - "Label": "Disable window snapping", - "ToolTip": "This will turn off the ability to snap windows to the sides or corners of the screen.", "Category": "Multi-tasking", "Priority": 1, "RegistryKey": "Disable_Window_Snapping.reg", - "ApplyText": "Disabling window snapping", - "UndoLabel": "Enable window snapping", - "ApplyUndoText": "Enabling window snapping", "RegistryUndoKey": "Enable_Window_Snapping.reg", "RequiresReboot": true, "MinVersion": null, @@ -903,166 +648,109 @@ }, { "FeatureId": "DisableSnapAssist", - "Label": "Disable showing app suggestions when snapping windows", - "ToolTip": "This will turn off app suggestions when you snap windows to the sides or corners of the screen.", "Category": "Multi-tasking", "Priority": 2, "RegistryKey": "Disable_Snap_Assist.reg", - "ApplyText": "Disabling the Snap Assist suggestions", - "UndoLabel": "Enable showing app suggestions when snapping windows", - "ApplyUndoText": "Enabling the Snap Assist suggestions", "RegistryUndoKey": "Enable_Snap_Assist.reg", "MinVersion": 22000, "MaxVersion": null }, { "FeatureId": "DisableSnapLayouts", - "Label": "Hide snap layout flyout at top of screen and on maximize button", - "ToolTip": "This will turn off the snap layout flyout that appears when you hover over the maximize button or drag windows to the top of the screen.", "Category": "Multi-tasking", "Priority": 3, "RegistryKey": "Disable_Snap_Layouts.reg", - "ApplyText": "Hiding snap layouts when dragging windows to top of the screen and on maximize button", - "UndoLabel": "Show snap layout flyout at top of screen and on maximize button", - "ApplyUndoText": "Showing snap layouts when dragging windows to top of the screen and on maximize button", "RegistryUndoKey": "Enable_Snap_Layouts.reg", "MinVersion": 22000, "MaxVersion": null }, { "FeatureId": "HideTabsInAltTab", - "Label": "Hide tabs from apps when snapping or pressing Alt+Tab", "Category": "Multi-tasking", "RegistryKey": "Hide_Tabs_In_Alt_Tab.reg", - "ApplyText": "Disable showing tabs from apps when snapping or pressing Alt+Tab", - "UndoLabel": null, - "ApplyUndoText": null, "RegistryUndoKey": null, "MinVersion": 22000, "MaxVersion": null }, { "FeatureId": "Show3TabsInAltTab", - "Label": "Show 3 tabs from apps when snapping or pressing Alt+Tab", "Category": "Multi-tasking", "RegistryKey": "Show_3_Tabs_In_Alt_Tab.reg", - "ApplyText": "Enable showing 3 tabs from apps when snapping or pressing Alt+Tab", - "UndoLabel": null, - "ApplyUndoText": null, "RegistryUndoKey": null, "MinVersion": 22000, "MaxVersion": null }, { "FeatureId": "Show5TabsInAltTab", - "Label": "Show 5 tabs from apps when snapping or pressing Alt+Tab", "Category": "Multi-tasking", "RegistryKey": "Show_5_Tabs_In_Alt_Tab.reg", - "ApplyText": "Enable showing 5 tabs from apps when snapping or pressing Alt+Tab", - "UndoLabel": null, - "ApplyUndoText": null, "RegistryUndoKey": null, "MinVersion": 22000, "MaxVersion": null }, { "FeatureId": "Show20TabsInAltTab", - "Label": "Show 20 tabs from apps when snapping or pressing Alt+Tab", "Category": "Multi-tasking", "RegistryKey": "Show_20_Tabs_In_Alt_Tab.reg", - "ApplyText": "Enable showing 20 tabs from apps when snapping or pressing Alt+Tab", - "UndoLabel": null, - "ApplyUndoText": null, "RegistryUndoKey": null, "MinVersion": 22000, "MaxVersion": null }, { "FeatureId": "TaskbarAlignLeft", - "Label": "Align taskbar to the left", - "ToolTip": "By default, Windows 11 has the taskbar buttons centered. Enabling this setting will move the taskbar buttons to the left, similar to previous versions of Windows.", "Category": "Taskbar", "Priority": 1, "RegistryKey": "Align_Taskbar_Left.reg", - "ApplyText": "Aligning taskbar buttons to the left", - "UndoLabel": "Align taskbar to the center", - "ApplyUndoText": "Aligning taskbar buttons to the center", "RegistryUndoKey": "Align_Taskbar_Center.reg", "MinVersion": 22000, "MaxVersion": null }, { "FeatureId": "HideSearchTb", - "Label": "Hide search icon from the taskbar", "Category": "Taskbar", "RegistryKey": "Hide_Search_Taskbar.reg", - "ApplyText": "Hiding the search icon from the taskbar", - "UndoLabel": "Show search box on the taskbar", - "ApplyUndoText": "Changing taskbar search to search box", "RegistryUndoKey": "Show_Search_Box.reg", "MinVersion": 22000, "MaxVersion": null }, { "FeatureId": "ShowSearchIconTb", - "Label": "Show search icon on the taskbar", "Category": "Taskbar", "RegistryKey": "Show_Search_Icon.reg", - "ApplyText": "Changing taskbar search to icon only", - "UndoLabel": "Show search box on the taskbar", - "ApplyUndoText": "Changing taskbar search to search box", "RegistryUndoKey": "Show_Search_Box.reg", "MinVersion": 22000, "MaxVersion": null }, { "FeatureId": "ShowSearchLabelTb", - "Label": "Show search icon with label on the taskbar", "Category": "Taskbar", "RegistryKey": "Show_Search_Icon_And_Label.reg", - "ApplyText": "Changing taskbar search to icon with label", - "UndoLabel": "Show search box on the taskbar", - "ApplyUndoText": "Changing taskbar search to search box", "RegistryUndoKey": "Show_Search_Box.reg", "MinVersion": 22000, "MaxVersion": null }, { "FeatureId": "ShowSearchBoxTb", - "Label": "Show search box on the taskbar", "Category": "Taskbar", "RegistryKey": "Show_Search_Box.reg", - "ApplyText": "Changing taskbar search to search box", - "UndoLabel": null, - "ApplyUndoText": null, "RegistryUndoKey": null, "MinVersion": 22000, "MaxVersion": null }, { "FeatureId": "HideTaskview", - "Label": "Hide 'Task view' button on the taskbar", - "ToolTip": "This will disable the 'Task view' button on the taskbar, which allows you to see all your open windows and virtual desktops.", "Category": "Taskbar", "Priority": 3, "RegistryKey": "Hide_Taskview_Taskbar.reg", - "ApplyText": "Hiding the taskview button from the taskbar", - "UndoLabel": "Show 'Task view' button on the taskbar", - "ApplyUndoText": "Showing the taskview button from the taskbar", "RegistryUndoKey": "Show_Taskview_Taskbar.reg", "MinVersion": 22000, "MaxVersion": null }, { "FeatureId": "DisableWidgets", - "Label": "Disable widgets on the taskbar & lock screen", - "ToolTip": "This will disable the widgets features in Windows, including the widgets button on the taskbar and the widgets that can appear on the lock screen.", "Category": "Taskbar", "Priority": 4, "RegistryKey": null, - "ApplyText": "Disabling widgets on the taskbar & lock screen", - "UndoLabel": null, - "ApplyUndoText": null, "RegistryUndoKey": null, "DisableWhenApplied": true, "MinVersion": null, @@ -1070,333 +758,216 @@ }, { "FeatureId": "HideChat", - "Label": "Hide Chat (meet now) icon on the taskbar", - "ToolTip": "This will disable the Chat (meet now) icon on the taskbar.", "Category": "Taskbar", "Priority": 5, "RegistryKey": "Disable_Chat_Taskbar.reg", - "ApplyText": "Hiding the chat icon from the taskbar", - "UndoLabel": "Show Chat (meet now) icon on the taskbar", - "ApplyUndoText": "Showing the chat icon from the taskbar", "RegistryUndoKey": "Enable_Chat_Taskbar.reg", "MinVersion": null, "MaxVersion": 22621 }, { "FeatureId": "DisableStorageSense", - "Label": "Disable Storage Sense automatic disk cleanup", - "ToolTip": "This will disable Storage Sense, which automatically frees up disk space by deleting temporary files, emptying the recycle bin and cleaning up files in the Downloads folder.", "Category": "System", "RegistryKey": "Disable_Storage_Sense.reg", - "ApplyText": "Disabling Storage Sense automatic disk cleanup", - "UndoLabel": "Enable Storage Sense automatic disk cleanup", - "ApplyUndoText": "Enabling Storage Sense automatic disk cleanup", "RegistryUndoKey": "Enable_Storage_Sense.reg", "MinVersion": 22000, "MaxVersion": null }, { "FeatureId": "DisableFastStartup", - "Label": "Disable fast start-up", - "ToolTip": "Fast Start-up helps your PC start faster after shutdown by saving a system image to disk. Disabling Fast Start-up can help with certain issues, but may result in slightly longer boot times.", "Category": "System", "RegistryKey": "Disable_Fast_Startup.reg", - "ApplyText": "Disabling Fast Start-up", - "UndoLabel": "Enable fast start-up", - "ApplyUndoText": "Enabling Fast Start-up", "RegistryUndoKey": "Enable_Fast_Startup.reg", "MinVersion": null, "MaxVersion": null }, { "FeatureId": "DisableBitlockerAutoEncryption", - "Label": "Disable BitLocker automatic device encryption", - "ToolTip": "For devices that support it, Windows 11 automatically enables BitLocker device encryption. Disabling this will turn off automatic encryption of the device, but you can still manually enable BitLocker encryption if desired. Drives that are already encrypted with BitLocker will remain encrypted when this setting is applied.", "Category": "System", "RegistryKey": "Disable_Bitlocker_Auto_Encryption.reg", - "ApplyText": "Disabling BitLocker automatic device encryption", - "UndoLabel": "Enable BitLocker automatic device encryption", - "ApplyUndoText": "Enabling BitLocker automatic device encryption", "RegistryUndoKey": "Enable_Bitlocker_Auto_Encryption.reg", "MinVersion": 22000, "MaxVersion": null }, { "FeatureId": "DisableModernStandbyNetworking", - "Label": "Disable Modern Standby network connectivity", - "ToolTip": "By default, devices that support Modern Standby maintain network connectivity while in sleep mode. Disabling network connectivity during Modern Standby can help save battery life.", "Category": "System", "RegistryKey": "Disable_Modern_Standby_Networking.reg", - "ApplyText": "Disabling network connectivity during Modern Standby", - "UndoLabel": "Enable Modern Standby network connectivity", - "ApplyUndoText": "Enabling network connectivity during Modern Standby", "RegistryUndoKey": "Enable_Modern_Standby_Networking.reg", "MinVersion": 22000, "MaxVersion": null }, { "FeatureId": "EnableEndTask", - "Label": "Show 'End Task' option in taskbar context menu", - "ToolTip": "When enabled, adds an 'End Task' option to the right-click context menu for apps in the taskbar, allowing you to quickly force close apps.", "Category": "Taskbar", "Priority": 6, "RegistryKey": "Enable_End_Task.reg", - "ApplyText": "Enabling the 'End Task' option in the taskbar right click menu", - "UndoLabel": "Hide 'End Task' option in taskbar context menu", - "ApplyUndoText": "Disabling the 'End Task' option in the taskbar right click menu", "RegistryUndoKey": "Disable_End_Task.reg", "MinVersion": 22631, "MaxVersion": null }, { "FeatureId": "EnableLastActiveClick", - "Label": "Enable 'Last Active Click' behavior for taskbar apps", - "ToolTip": "When enabled, clicking on an app in the taskbar will switch to the last active window of that app, instead of only showing the thumbnail preview.", "Category": "Taskbar", "Priority": 7, "RegistryKey": "Enable_Last_Active_Click.reg", - "ApplyText": "Enabling the 'Last Active Click' behavior in the taskbar app area", - "UndoLabel": "Disable 'Last Active Click' behavior for taskbar apps", - "ApplyUndoText": "Disabling the 'Last Active Click' behavior in the taskbar app area", "RegistryUndoKey": "Disable_Last_Active_Click.reg", "MinVersion": 22000, "MaxVersion": null }, { "FeatureId": "CombineTaskbarAlways", - "Label": "Always combine taskbar buttons and hide labels for the main display", "Category": "Taskbar", "RegistryKey": "Combine_Taskbar_Always.reg", - "ApplyText": "Setting the taskbar on the main display to always combine buttons and hide labels", - "UndoLabel": null, - "ApplyUndoText": null, "RegistryUndoKey": null, "MinVersion": 22000, "MaxVersion": null }, { "FeatureId": "CombineMMTaskbarAlways", - "Label": "Always combine taskbar buttons and hide labels for secondary displays", "Category": "Taskbar", "RegistryKey": "Combine_MMTaskbar_Always.reg", - "ApplyText": "Setting the taskbar on secondary displays to always combine buttons and hide labels", - "UndoLabel": null, - "ApplyUndoText": null, "RegistryUndoKey": null, "MinVersion": 22000, "MaxVersion": null }, { "FeatureId": "CombineTaskbarWhenFull", - "Label": "Combine taskbar buttons and hide labels when taskbar is full for the main display", "Category": "Taskbar", "RegistryKey": "Combine_Taskbar_When_Full.reg", - "ApplyText": "Setting the taskbar on the main display to only combine buttons and hide labels when the taskbar is full", - "UndoLabel": "Always combine taskbar buttons and hide labels for the main display", - "ApplyUndoText": "Setting the taskbar on the main display to always combine buttons and hide labels", "RegistryUndoKey": "Combine_Taskbar_Always.reg", "MinVersion": 22000, "MaxVersion": null }, { "FeatureId": "CombineMMTaskbarWhenFull", - "Label": "Combine taskbar buttons and hide labels when taskbar is full for secondary displays", "Category": "Taskbar", "RegistryKey": "Combine_MMTaskbar_When_Full.reg", - "ApplyText": "Setting the taskbar on secondary displays to only combine buttons and hide labels when the taskbar is full", - "UndoLabel": "Always combine taskbar buttons and hide labels for secondary displays", - "ApplyUndoText": "Setting the taskbar on secondary displays to always combine buttons and hide labels", "RegistryUndoKey": "Combine_MMTaskbar_Always.reg", "MinVersion": 22000, "MaxVersion": null }, { "FeatureId": "CombineTaskbarNever", - "Label": "Never combine taskbar buttons and show labels for the main display", "Category": "Taskbar", "RegistryKey": "Combine_Taskbar_Never.reg", - "ApplyText": "Setting the taskbar on the main display to never combine buttons or hide labels", - "UndoLabel": "Always combine taskbar buttons and hide labels for the main display", - "ApplyUndoText": "Setting the taskbar on the main display to always combine buttons and hide labels", "RegistryUndoKey": "Combine_Taskbar_Always.reg", "MinVersion": 22000, "MaxVersion": null }, { "FeatureId": "CombineMMTaskbarNever", - "Label": "Never combine taskbar buttons and show labels for secondary displays", "Category": "Taskbar", "RegistryKey": "Combine_MMTaskbar_Never.reg", - "ApplyText": "Setting the taskbar on secondary displays to never combine buttons or hide labels", - "UndoLabel": "Always combine taskbar buttons and hide labels for secondary displays", - "ApplyUndoText": "Setting the taskbar on secondary displays to always combine buttons and hide labels", "RegistryUndoKey": "Combine_MMTaskbar_Always.reg", "MinVersion": 22000, "MaxVersion": null }, { "FeatureId": "MMTaskbarModeAll", - "Label": "Show app icons on all taskbars", "Category": "Taskbar", "RegistryKey": "MMTaskbarMode_All.reg", - "ApplyText": "Setting the taskbar to show app icons on all taskbars", - "UndoLabel": null, - "ApplyUndoText": null, "RegistryUndoKey": null, "MinVersion": 22000, "MaxVersion": null }, { "FeatureId": "MMTaskbarModeMainActive", - "Label": "Show app icons on main taskbar and on taskbar where the window is open", "Category": "Taskbar", "RegistryKey": "MMTaskbarMode_Main_Active.reg", - "ApplyText": "Setting the taskbar to show app icons on main taskbar and on taskbar where the window is open", - "UndoLabel": "Show app icons on all taskbars", - "ApplyUndoText": "Setting the taskbar to show app icons on all taskbars", "RegistryUndoKey": "MMTaskbarMode_All.reg", "MinVersion": 22000, "MaxVersion": null }, { "FeatureId": "MMTaskbarModeActive", - "Label": "Show app icons only on taskbar where the window is open", "Category": "Taskbar", "RegistryKey": "MMTaskbarMode_Active.reg", - "ApplyText": "Setting the taskbar to only show app icons on the taskbar where the window is open", - "UndoLabel": "Show app icons on all taskbars", - "ApplyUndoText": "Setting the taskbar to show app icons on all taskbars", "RegistryUndoKey": "MMTaskbarMode_All.reg", "MinVersion": 22000, "MaxVersion": null }, { "FeatureId": "ExplorerToHome", - "Label": "Change the default location that File Explorer opens to 'Home'", "Category": "File Explorer", "RegistryKey": "Launch_File_Explorer_To_Home.reg", - "ApplyText": "Changing the default location that File Explorer opens to, to 'Home'", - "UndoLabel": null, - "ApplyUndoText": null, "RegistryUndoKey": null, "MinVersion": null, "MaxVersion": null }, { "FeatureId": "ExplorerToThisPC", - "Label": "Change the default location that File Explorer opens to 'This PC'", "Category": "File Explorer", "RegistryKey": "Launch_File_Explorer_To_This_PC.reg", - "ApplyText": "Changing the default location that File Explorer opens to, to 'This PC'", - "UndoLabel": "Change the default location that File Explorer opens to 'Home'", - "ApplyUndoText": "Changing the default location that File Explorer opens to, to 'Home'", "RegistryUndoKey": "Launch_File_Explorer_To_Home.reg", "MinVersion": null, "MaxVersion": null }, { "FeatureId": "ExplorerToDownloads", - "Label": "Change the default location that File Explorer opens to 'Downloads'", "Category": "File Explorer", "RegistryKey": "Launch_File_Explorer_To_Downloads.reg", - "ApplyText": "Changing the default location that File Explorer opens to, to 'Downloads'", - "UndoLabel": "Change the default location that File Explorer opens to 'Home'", - "ApplyUndoText": "Changing the default location that File Explorer opens to, to 'Home'", "RegistryUndoKey": "Launch_File_Explorer_To_Home.reg", "MinVersion": null, "MaxVersion": null }, { "FeatureId": "ExplorerToOneDrive", - "Label": "Change the default location that File Explorer opens to 'OneDrive'", "Category": "File Explorer", "RegistryKey": "Launch_File_Explorer_To_OneDrive.reg", - "ApplyText": "Changing the default location that File Explorer opens to, to 'OneDrive'", - "UndoLabel": "Change the default location that File Explorer opens to 'Home'", - "ApplyUndoText": "Changing the default location that File Explorer opens to, to 'Home'", "RegistryUndoKey": "Launch_File_Explorer_To_Home.reg", "MinVersion": null, "MaxVersion": null }, { "FeatureId": "ShowKnownFileExt", - "Label": "Show file extensions for known file types", - "ToolTip": "This will show file extensions for known file types. By default, Windows hides file extensions for known file types which can lead to confusion and security risks.", "Category": "File Explorer", "Priority": 2, "RegistryKey": "Show_Extensions_For_Known_File_Types.reg", - "ApplyText": "Enabling file extensions for known file types", - "UndoLabel": "Hide file extensions for known file types", - "ApplyUndoText": "Disabling file extensions for known file types", "RegistryUndoKey": "Hide_Extensions_For_Known_File_Types.reg", "MinVersion": null, "MaxVersion": null }, { "FeatureId": "ShowHiddenFolders", - "Label": "Show hidden files, folders and drives", - "ToolTip": "By default, Windows hides certain files, folders and drives to prevent accidental modification or deletion. Turn this on to show all files in File Explorer.", "Category": "File Explorer", "Priority": 3, "RegistryKey": "Show_Hidden_Folders.reg", - "ApplyText": "Unhiding hidden files, folders and drives", - "UndoLabel": "Hide hidden files, folders and drives", - "ApplyUndoText": "Hiding hidden files, folders and drives", "RegistryUndoKey": "Hide_Hidden_Folders.reg", "MinVersion": null, "MaxVersion": null }, { "FeatureId": "HideDupliDrive", - "Label": "Hide duplicate removable drive entries", - "ToolTip": "By default, Windows shows removable drives both under 'This PC' and in the navigation pane with its own entry. Enable this setting to only show removable drives under 'This PC'.", "Category": "File Explorer", "Priority": 4, "RegistryKey": "Hide_duplicate_removable_drives_from_navigation_pane_of_File_Explorer.reg", - "ApplyText": "Hiding duplicate removable drive entries from the File Explorer navigation pane", - "UndoLabel": "Show duplicate removable drive entries", - "ApplyUndoText": "Showing duplicate removable drive entries from the File Explorer navigation pane", "RegistryUndoKey": "Show_duplicate_removable_drives_in_navigation_pane_of_File_Explorer.reg", "MinVersion": null, "MaxVersion": null }, { "FeatureId": "HideHome", - "Label": "Hide 'Home' from navigation pane", - "ToolTip": "Hides the 'Home' section from the File Explorer navigation pane. Warning: This may prevent Quick access links from updating until you restart your PC or Windows Explorer.", "Category": "File Explorer", "Priority": 5, "RegistryKey": "Hide_Home_from_Explorer.reg", - "ApplyText": "Hiding the 'Home' section from the File Explorer navigation pane", - "UndoLabel": "Show 'Home' in navigation pane", - "ApplyUndoText": "Showing the 'Home' section from the File Explorer navigation pane", "RegistryUndoKey": "Show_Home_in_Explorer.reg", "MinVersion": 22000, "MaxVersion": null }, { "FeatureId": "HideGallery", - "Label": "Hide 'Gallery' from navigation pane", - "ToolTip": "Hides the 'Gallery' section from the File Explorer navigation pane.", "Category": "File Explorer", "Priority": 6, "RegistryKey": "Hide_Gallery_from_Explorer.reg", - "ApplyText": "Hiding the 'Gallery' section from the File Explorer navigation pane", - "UndoLabel": "Show 'Gallery' in navigation pane", - "ApplyUndoText": "Showing the 'Gallery' section from the File Explorer navigation pane", "RegistryUndoKey": "Show_Gallery_in_Explorer.reg", "MinVersion": 22000, "MaxVersion": null }, { "FeatureId": "DisableTransparency", - "Label": "Disable transparency effects", - "ToolTip": "This will disable transparency effects on Windows and interfaces. Which can help improve performance on older hardware.", "Category": "Appearance", "RegistryKey": "Disable_Transparency.reg", - "ApplyText": "Disabling transparency effects", - "UndoLabel": "Enable transparency effects", - "ApplyUndoText": "Enabling transparency effects", "RegistryUndoKey": "Enable_Transparency.reg", "Priority": 2, "MinVersion": null, @@ -1404,13 +975,8 @@ }, { "FeatureId": "DisableAnimations", - "Label": "Disable animations and visual effects", - "ToolTip": "This will disable animations and some visual effects in Windows, which can make the interface feel snappier, especially on older hardware.", "Category": "Appearance", "RegistryKey": "Disable_Animations.reg", - "ApplyText": "Disabling animations and visual effects", - "UndoLabel": "Enable animations and visual effects", - "ApplyUndoText": "Enabling animations and visual effects", "RegistryUndoKey": "Enable_Animations.reg", "Priority": 3, "RequiresReboot": true, @@ -1419,39 +985,24 @@ }, { "FeatureId": "DisableUpdateASAP", - "Label": "Prevent getting updates as soon as they're available", - "ToolTip": "This will prevent your PC from being among the first to receive new non-security updates. Your PC will still receive these updates eventually.", "Category": "Windows Update", "RegistryKey": "Disable_Update_ASAP.reg", - "ApplyText": "Preventing Windows from getting updates as soon as they are available", - "UndoLabel": "Allow getting updates as soon as they're available", - "ApplyUndoText": "Allowing Windows to get updates as soon as they are available", "RegistryUndoKey": "Enable_Update_ASAP.reg", "MinVersion": null, "MaxVersion": null }, { "FeatureId": "PreventUpdateAutoReboot", - "Label": "Prevent automatic restarts after updates while signed in", - "ToolTip": "This will prevent your PC from automatically restarting after updates while any user is signed in.", "Category": "Windows Update", "RegistryKey": "Prevent_Auto_Reboot.reg", - "ApplyText": "Preventing automatic restarts after updates while signed in", - "UndoLabel": "Allow automatic restarts after updates while signed in", - "ApplyUndoText": "Allowing automatic restarts after updates while signed in", "RegistryUndoKey": "Allow_Auto_Reboot.reg", "MinVersion": null, "MaxVersion": null }, { "FeatureId": "DisableDriverUpdates", - "Label": "Disable driver updates through Windows Update", - "ToolTip": "Prevents Windows from automatically downloading and installing driver updates via regular Windows quality updates. Windows can still automatically install drivers for new devices. Drivers included in security, critical, or feature updates may still be installed.", "Category": "Windows Update", "RegistryKey": "Disable_Driver_Updates.reg", - "ApplyText": "Disabling driver updates through Windows Update", - "UndoLabel": "Enable driver updates through Windows Update", - "ApplyUndoText": "Enabling driver updates through Windows Update", "RegistryUndoKey": "Enable_Driver_Updates.reg", "RequiresReboot": true, "MinVersion": null, @@ -1459,162 +1010,103 @@ }, { "FeatureId": "DisableDeliveryOptimization", - "Label": "Disable sharing downloaded updates with other PCs", - "ToolTip": "This will prevent your PC from sharing downloaded updates with other PCs on the local network or on the internet. This also prevents your PC from downloading updates from other PCs.", "Category": "Windows Update", "RegistryKey": "Disable_Delivery_Optimization.reg", - "ApplyText": "Disabling sharing of downloaded updates with other PCs", - "UndoLabel": "Enable sharing downloaded updates with other PCs", - "ApplyUndoText": "Enabling sharing of downloaded updates with other PCs", "RegistryUndoKey": "Enable_Delivery_Optimization.reg", "MinVersion": null, "MaxVersion": null }, { "FeatureId": "DisableDeviceAutoAppDownload", - "Label": "Prevent Windows from auto-installing device companion apps", - "ToolTip": "Stops Windows from silently installing device companion apps via Windows Update when you connect certain devices, like monitors from LG and Alienware. These devices will still work as expected, this only stops Windows Update from automatically installing additional apps without consent.", "Category": "Windows Update", "RegistryKey": "Disable_Device_Auto_App_Download.reg", - "ApplyText": "Preventing automatic installation of device companion apps", - "UndoLabel": "Allow automatic installation of device companion apps", - "ApplyUndoText": "Allowing automatic installation of device companion apps", "RegistryUndoKey": "Enable_Device_Auto_App_Download.reg", "MinVersion": null, "MaxVersion": null }, { "FeatureId": "ForceRemoveEdge", - "Label": "Forcefully uninstall Microsoft Edge. NOT RECOMMENDED!", "Category": null, "RegistryKey": null, - "ApplyText": "Forcefully uninstalling Microsoft Edge", - "UndoLabel": null, - "ApplyUndoText": null, "RegistryUndoKey": null, "MinVersion": null, "MaxVersion": null }, { "FeatureId": "HideOnedrive", - "Label": "Hide 'OneDrive' from navigation pane", - "ToolTip": "Hides the 'OneDrive' section from the File Explorer navigation pane.", "Category": "File Explorer", "Priority": 7, "RegistryKey": "Hide_Onedrive_Folder.reg", - "ApplyText": "Hiding the 'OneDrive' section from the File Explorer navigation pane", - "UndoLabel": "Show 'OneDrive' in navigation pane", - "ApplyUndoText": "Showing the 'OneDrive' section from the File Explorer navigation pane", "RegistryUndoKey": "Show_Onedrive_Folder.reg", "MinVersion": null, "MaxVersion": null }, { "FeatureId": "Hide3dObjects", - "Label": "Hide '3D objects' folder under 'This PC'", - "ToolTip": "Hides the '3D objects' folder from the File Explorer navigation pane.", "Category": "File Explorer", "Priority": 8, "RegistryKey": "Hide_3D_Objects_Folder.reg", - "ApplyText": "Hiding the '3D objects' folder from the File Explorer navigation pane", - "UndoLabel": "Show '3D objects' folder under 'This PC'", - "ApplyUndoText": "Showing the '3D objects' folder from the File Explorer navigation pane", "RegistryUndoKey": "Show_3D_Objects_Folder.reg", "MinVersion": null, "MaxVersion": 21999 }, { "FeatureId": "HideMusic", - "Label": "Hide 'Music' folder under 'This PC'", - "ToolTip": "Hides the 'Music' folder from the File Explorer navigation pane.", "Category": "File Explorer", "Priority": 9, "RegistryKey": "Hide_Music_Folder.reg", - "ApplyText": "Hiding the 'Music' folder from the File Explorer navigation pane", - "UndoLabel": "Show 'Music' folder under 'This PC'", - "ApplyUndoText": "Showing the 'Music' folder from the File Explorer navigation pane", "RegistryUndoKey": "Show_Music_Folder.reg", "MinVersion": null, "MaxVersion": 21999 }, { "FeatureId": "AddFoldersToThisPC", - "Label": "Add common folders back to 'This PC' page", - "ToolTip": "This setting will add common folders like Desktop, Documents, Downloads, Music, Pictures and Videos back to the 'This PC' page in File Explorer.", "Category": "File Explorer", "Priority": 10, "RegistryKey": "Add_All_Folders_Under_This_PC.reg", - "ApplyText": "Adding all common folders (Desktop, Downloads, etc.) back to 'This PC' in File Explorer", - "UndoLabel": "Remove common folders from 'This PC' page", - "ApplyUndoText": "Removing all common folders (Desktop, Downloads, etc.) from 'This PC' in File Explorer", "RegistryUndoKey": "Remove_All_Folders_Under_This_PC.reg", "MinVersion": 22000, "MaxVersion": null }, { "FeatureId": "HideIncludeInLibrary", - "Label": "Hide 'Include in library' option in the context menu", - "ToolTip": "Hides the 'Include in library' option from the File Explorer context menu.", "Category": "File Explorer", "Priority": 11, "RegistryKey": "Disable_Include_in_library_from_context_menu.reg", - "ApplyText": "Hiding 'Include in library' in the context menu", - "UndoLabel": "Show 'Include in library' option in the context menu", - "ApplyUndoText": "Showing 'Include in library' in the context menu", "RegistryUndoKey": "Enable_Include_in_library_in_context_menu.reg", "MinVersion": null, "MaxVersion": 21999 }, { "FeatureId": "HideGiveAccessTo", - "Label": "Hide 'Give access to' option in the context menu", - "ToolTip": "Hides the 'Give access to' option from the File Explorer context menu.", "Category": "File Explorer", "Priority": 12, "RegistryKey": "Disable_Give_access_to_context_menu.reg", - "ApplyText": "Hiding 'Give access to' in the context menu", - "UndoLabel": "Show 'Give access to' option in the context menu", - "ApplyUndoText": "Showing 'Give access to' in the context menu", "RegistryUndoKey": "Enable_Give_access_to_context_menu.reg", "MinVersion": null, "MaxVersion": 21999 }, { "FeatureId": "HideShare", - "Label": "Hide 'Share' option in the context menu", - "ToolTip": "Hides the 'Share' option from the File Explorer context menu.", "Category": "File Explorer", "Priority": 13, "RegistryKey": "Disable_Share_from_context_menu.reg", - "ApplyText": "Hiding 'Share' in the context menu", - "UndoLabel": "Show 'Share' option in the context menu", - "ApplyUndoText": "Showing 'Share' in the context menu", "RegistryUndoKey": "Enable_Share_in_context_menu.reg", "MinVersion": null, "MaxVersion": 21999 }, { "FeatureId": "DisableBraveBloat", - "Label": "Disable bloat in Brave browser (AI, Crypto, etc.)", - "ToolTip": "This will disable Brave's built-in AI features, Crypto wallet, News, Rewards, Talk and VPN. This feature uses policies, which will lock down certain settings.", "Category": "Other", "RegistryKey": "Disable_Brave_Bloat.reg", - "ApplyText": "Disabling Brave AI, Crypto, News, Rewards, Talk and VPN in Brave browser", - "UndoLabel": "Enable Brave browser features (AI, Crypto, etc.)", - "ApplyUndoText": "Enabling Brave AI, Crypto, News, Rewards, Talk and VPN in Brave browser", "RegistryUndoKey": "Enable_Brave_Bloat.reg", "MinVersion": null, "MaxVersion": null }, { "FeatureId": "EnableWindowsSandbox", - "Label": "Enable Windows Sandbox", - "ToolTip": "Windows Sandbox is a lightweight desktop environment for safely running applications in isolation. Software installed inside the Windows Sandbox environment remains 'sandboxed' and runs separately from the host machine. Only supported on Windows 11 Pro, Workstation, and Enterprise editions.", "Category": "Optional Windows Features", "RegistryKey": null, - "ApplyText": "Enabling Windows Sandbox", - "UndoLabel": "Disable Windows Sandbox", - "ApplyUndoText": "Disabling Windows Sandbox", "RegistryUndoKey": null, "RequiresReboot": true, "MinVersion": 22483, @@ -1622,13 +1114,8 @@ }, { "FeatureId": "EnableWindowsSubsystemForLinux", - "Label": "Enable Windows Subsystem for Linux", - "ToolTip": "Windows Subsystem for Linux allows you to run a Linux environment directly on Windows without the need for a virtual machine.", "Category": "Optional Windows Features", "RegistryKey": null, - "ApplyText": "Enabling Windows Subsystem for Linux", - "UndoLabel": "Disable Windows Subsystem for Linux", - "ApplyUndoText": "Disabling Windows Subsystem for Linux", "RegistryUndoKey": null, "RequiresReboot": true, "MinVersion": 22000, @@ -1636,91 +1123,56 @@ }, { "FeatureId": "ShowDriveLettersFirst", - "Label": "Show drive letters before drive label", - "ToolTip": "This setting will show drive letters before the drive label in File Explorer.", "Category": "File Explorer", "RegistryKey": "Show_Drive_Letters_First.reg", - "ApplyText": "Showing drive letters before drive label", - "UndoLabel": "Show drive letters after drive label", - "ApplyUndoText": "Showing drive letters after drive label", "RegistryUndoKey": "Show_Drive_Letters_Last.reg", "MinVersion": null, "MaxVersion": null }, { "FeatureId": "ShowDriveLettersLast", - "Label": "Show drive letters after drive label", - "ToolTip": "This setting will show drive letters after the drive label in File Explorer (Default Windows behavior).", "Category": "File Explorer", "RegistryKey": "Show_Drive_Letters_Last.reg", - "ApplyText": "Showing drive letters after drive label", - "UndoLabel": null, - "ApplyUndoText": null, "RegistryUndoKey": null, "MinVersion": null, "MaxVersion": null }, { "FeatureId": "ShowNetworkDriveLettersFirst", - "Label": "Show network drive letters before drive label", - "ToolTip": "This setting will show only network drive letters before the drive label in File Explorer.", "Category": "File Explorer", "RegistryKey": "Show_Network_Drive_Letters_First.reg", - "ApplyText": "Showing network drive letters before drive label", - "UndoLabel": "Show drive letters after drive label", - "ApplyUndoText": "Showing drive letters after drive label", "RegistryUndoKey": "Show_Drive_Letters_Last.reg", "MinVersion": null, "MaxVersion": null }, { "FeatureId": "HideDriveLetters", - "Label": "Hide all drive letters", - "ToolTip": "This setting will hide all drive letters from the File Explorer navigation pane and 'This PC'.", "Category": "File Explorer", "RegistryKey": "Hide_Drive_Letters.reg", - "ApplyText": "Hiding all drive letters", - "UndoLabel": "Show drive letters after drive label", - "ApplyUndoText": "Showing drive letters after drive label", "RegistryUndoKey": "Show_Drive_Letters_Last.reg", "MinVersion": null, "MaxVersion": null }, { "FeatureId": "StartAllAppsCategory", - "Label": "Show All Apps in Category view (Default)", - "ToolTip": "This will set the All Apps section in the start menu to show apps grouped by category.", "Category": "Start Menu & Search", "RegistryKey": "Start_AllApps_Category.reg", - "ApplyText": "Setting All Apps view to Category", - "UndoLabel": null, - "ApplyUndoText": null, "RegistryUndoKey": null, "MinVersion": 26200, "MaxVersion": null }, { "FeatureId": "StartAllAppsGrid", - "Label": "Show All Apps in Grid view", - "ToolTip": "This will set the All Apps section in the start menu to show apps in an alphabetical grid layout.", "Category": "Start Menu & Search", "RegistryKey": "Start_AllApps_Grid.reg", - "ApplyText": "Setting All Apps view to Grid", - "UndoLabel": "Show All Apps in Category view", - "ApplyUndoText": "Setting All Apps view to Category", "RegistryUndoKey": "Start_AllApps_Category.reg", "MinVersion": 26200, "MaxVersion": null }, { "FeatureId": "StartAllAppsList", - "Label": "Show All Apps in List view", - "ToolTip": "This will set the All Apps section in the start menu to show apps in an alphabetical list layout.", "Category": "Start Menu & Search", "RegistryKey": "Start_AllApps_List.reg", - "ApplyText": "Setting All Apps view to List", - "UndoLabel": "Show All Apps in Category view", - "ApplyUndoText": "Setting All Apps view to Category", "RegistryUndoKey": "Start_AllApps_Category.reg", "MinVersion": 26200, "MaxVersion": null diff --git a/Config/Languages/de-DE/Chrome.json b/Config/Languages/de-DE/Chrome.json index 383decc..152547a 100644 --- a/Config/Languages/de-DE/Chrome.json +++ b/Config/Languages/de-DE/Chrome.json @@ -252,7 +252,6 @@ "TweaksAlreadyAppliedTooltip": "Diese Optimierung ist bereits angewendet und kann nicht automatisch rückgängig gemacht werden. Anweisungen zum manuellen Rückgängigmachen dieser Änderung finden Sie im Win11Debloat-Wiki.", "DeployChangeRemoveApps_one": "{0} Anwendung entfernen", "DeployChangeRemoveApps_other": "{0} Anwendungen entfernen", - "DeployChangeUndoPrefix": "Rückgängig: {0}", "DeployNoChangesSelectedMessage": "Es wurden keine Änderungen ausgewählt.", "DeploySelectedChangesTitle": "Ausgewählte Änderungen", "DeployUserDescriptionCurrentUser": "Das aktuell angemeldete Benutzerprofil", diff --git a/Config/Languages/en-US/Chrome.json b/Config/Languages/en-US/Chrome.json index e3ede16..96b7e07 100644 --- a/Config/Languages/en-US/Chrome.json +++ b/Config/Languages/en-US/Chrome.json @@ -270,7 +270,6 @@ "DeployChangeRemoveApps_one": "Remove {0} application", "DeployChangeRemoveApps_other": "Remove {0} applications", - "DeployChangeUndoPrefix": "Undo: {0}", "DeployNoChangesSelectedMessage": "No changes have been selected.", "DeploySelectedChangesTitle": "Selected Changes", "DeployUserDescriptionCurrentUser": "The currently logged-in user profile", diff --git a/Config/Languages/es-ES/Chrome.json b/Config/Languages/es-ES/Chrome.json index e3e1ee3..5a367b7 100644 --- a/Config/Languages/es-ES/Chrome.json +++ b/Config/Languages/es-ES/Chrome.json @@ -252,7 +252,6 @@ "TweaksAlreadyAppliedTooltip": "Este ajuste ya está aplicado y no se puede deshacer automáticamente. Visite la wiki de Win11Debloat para obtener instrucciones sobre cómo revertir este cambio manualmente.", "DeployChangeRemoveApps_one": "Quitar {0} aplicación", "DeployChangeRemoveApps_other": "Quitar {0} aplicaciones", - "DeployChangeUndoPrefix": "Deshacer: {0}", "DeployNoChangesSelectedMessage": "No se ha seleccionado ningún cambio.", "DeploySelectedChangesTitle": "Cambios seleccionados", "DeployUserDescriptionCurrentUser": "El perfil de usuario con la sesión iniciada actualmente", diff --git a/Config/Languages/fr-FR/Chrome.json b/Config/Languages/fr-FR/Chrome.json index a1f4c5a..b5f5f7a 100644 --- a/Config/Languages/fr-FR/Chrome.json +++ b/Config/Languages/fr-FR/Chrome.json @@ -252,7 +252,6 @@ "TweaksAlreadyAppliedTooltip": "Cet ajustement est déjà appliqué et ne peut pas être annulé automatiquement. Consultez le wiki de Win11Debloat pour savoir comment rétablir manuellement cette modification.", "DeployChangeRemoveApps_one": "Supprimer {0} application", "DeployChangeRemoveApps_other": "Supprimer {0} applications", - "DeployChangeUndoPrefix": "Rétablir : {0}", "DeployNoChangesSelectedMessage": "Aucune modification n'a été sélectionnée.", "DeploySelectedChangesTitle": "Modifications sélectionnées", "DeployUserDescriptionCurrentUser": "Le profil d'utilisateur actuellement connecté", diff --git a/Config/Languages/it-IT/Chrome.json b/Config/Languages/it-IT/Chrome.json index 5c1cefb..4e4c6e2 100644 --- a/Config/Languages/it-IT/Chrome.json +++ b/Config/Languages/it-IT/Chrome.json @@ -252,7 +252,6 @@ "TweaksAlreadyAppliedTooltip": "Questa modifica è già applicata e non può essere annullata automaticamente. Visita la wiki di Win11Debloat per le istruzioni su come annullare manualmente questa modifica.", "DeployChangeRemoveApps_one": "Rimuovi {0} applicazione", "DeployChangeRemoveApps_other": "Rimuovi {0} applicazioni", - "DeployChangeUndoPrefix": "Annulla: {0}", "DeployNoChangesSelectedMessage": "Non è stata selezionata alcuna modifica.", "DeploySelectedChangesTitle": "Modifiche selezionate", "DeployUserDescriptionCurrentUser": "Il profilo dell'utente attualmente connesso", diff --git a/Config/Languages/ja-JP/Chrome.json b/Config/Languages/ja-JP/Chrome.json index 7246839..8dc41eb 100644 --- a/Config/Languages/ja-JP/Chrome.json +++ b/Config/Languages/ja-JP/Chrome.json @@ -265,7 +265,6 @@ "TweaksAlreadyAppliedTooltip": "この調整は既に適用されており、自動的に元に戻すことはできません。この変更を手動で元に戻す手順については、Win11Debloat の Wiki を参照してください。", "DeployChangeRemoveApps_other": "{0} 個のアプリケーションを削除", - "DeployChangeUndoPrefix": "元に戻す: {0}", "DeployNoChangesSelectedMessage": "変更が選択されていません。", "DeploySelectedChangesTitle": "選択された変更", "DeployUserDescriptionCurrentUser": "現在サインインしているユーザー プロファイル", diff --git a/Config/Languages/ko-KR/Chrome.json b/Config/Languages/ko-KR/Chrome.json index 803c141..f3ce325 100644 --- a/Config/Languages/ko-KR/Chrome.json +++ b/Config/Languages/ko-KR/Chrome.json @@ -252,7 +252,6 @@ "TweaksAlreadyAppliedTooltip": "이 조정 항목은 이미 적용되어 자동으로 실행 취소할 수 없습니다. 이 변경 사항을 수동으로 되돌리는 방법은 Win11Debloat 위키를 참조하세요.", "DeployChangeRemoveApps_one": "앱 {0}개 제거", "DeployChangeRemoveApps_other": "앱 {0}개 제거", - "DeployChangeUndoPrefix": "실행 취소: {0}", "DeployNoChangesSelectedMessage": "선택된 변경 사항이 없습니다.", "DeploySelectedChangesTitle": "선택한 변경 사항", "DeployUserDescriptionCurrentUser": "현재 로그인한 사용자 프로필", diff --git a/Config/Languages/nl-NL/Chrome.json b/Config/Languages/nl-NL/Chrome.json index 186046c..54c715f 100644 --- a/Config/Languages/nl-NL/Chrome.json +++ b/Config/Languages/nl-NL/Chrome.json @@ -252,7 +252,6 @@ "TweaksAlreadyAppliedTooltip": "Deze aanpassing is al toegepast en kan niet automatisch ongedaan worden gemaakt. Op de Win11Debloat-wiki lees je hoe je de wijziging zelf kunt terugdraaien.", "DeployChangeRemoveApps_one": "{0} app verwijderen", "DeployChangeRemoveApps_other": "{0} apps verwijderen", - "DeployChangeUndoPrefix": "Ongedaan maken: {0}", "DeployNoChangesSelectedMessage": "Er zijn geen wijzigingen geselecteerd.", "DeploySelectedChangesTitle": "Geselecteerde wijzigingen", "DeployUserDescriptionCurrentUser": "Het gebruikersprofiel waarmee je nu bent aangemeld", diff --git a/Config/Languages/pt-BR/Chrome.json b/Config/Languages/pt-BR/Chrome.json index 13a4941..0b26388 100644 --- a/Config/Languages/pt-BR/Chrome.json +++ b/Config/Languages/pt-BR/Chrome.json @@ -275,7 +275,6 @@ "DeployChangeRemoveApps_one": "Remover {0} aplicativo", "DeployChangeRemoveApps_other": "Remover {0} aplicativos", "DeployChangeRemoveApps_many": "Remover {0} de aplicativos", - "DeployChangeUndoPrefix": "Desfazer: {0}", "DeployNoChangesSelectedMessage": "Nenhuma alteração foi selecionada.", "DeploySelectedChangesTitle": "Alterações selecionadas", "DeployUserDescriptionCurrentUser": "O perfil do usuário atualmente conectado", diff --git a/Config/Languages/ru-RU/Chrome.json b/Config/Languages/ru-RU/Chrome.json index 44e80e6..52e60f6 100644 --- a/Config/Languages/ru-RU/Chrome.json +++ b/Config/Languages/ru-RU/Chrome.json @@ -262,7 +262,6 @@ "DeployChangeRemoveApps_few": "Удалить {0} приложения", "DeployChangeRemoveApps_many": "Удалить {0} приложений", "DeployChangeRemoveApps_other": "Удалить {0} приложений", - "DeployChangeUndoPrefix": "Отменить: {0}", "DeployNoChangesSelectedMessage": "Изменения не выбраны.", "DeploySelectedChangesTitle": "Выбранные изменения", "DeployUserDescriptionCurrentUser": "Профиль пользователя, который сейчас вошел в систему", diff --git a/Config/Languages/tr-TR/Chrome.json b/Config/Languages/tr-TR/Chrome.json index 01a9a53..c742fd2 100644 --- a/Config/Languages/tr-TR/Chrome.json +++ b/Config/Languages/tr-TR/Chrome.json @@ -270,7 +270,6 @@ "DeployChangeRemoveApps_one": "{0} uygulamayı kaldır", "DeployChangeRemoveApps_other": "{0} uygulamayı kaldır", - "DeployChangeUndoPrefix": "Geri al: {0}", "DeployNoChangesSelectedMessage": "Seçili değişiklik yok.", "DeploySelectedChangesTitle": "Seçilen değişiklikler", "DeployUserDescriptionCurrentUser": "Şu anda oturum açmış kullanıcı profili", diff --git a/Config/Languages/zh-CN/Chrome.json b/Config/Languages/zh-CN/Chrome.json index f60aa6e..b00d97a 100644 --- a/Config/Languages/zh-CN/Chrome.json +++ b/Config/Languages/zh-CN/Chrome.json @@ -252,7 +252,6 @@ "TweaksAlreadyAppliedTooltip": "此项调整已应用,无法自动撤销。请访问 Win11Debloat Wiki,查看手动撤销此更改的说明。", "DeployChangeRemoveApps_one": "卸载 {0} 个应用", "DeployChangeRemoveApps_other": "卸载 {0} 个应用", - "DeployChangeUndoPrefix": "撤销:{0}", "DeployNoChangesSelectedMessage": "未选择任何更改。", "DeploySelectedChangesTitle": "所选更改", "DeployUserDescriptionCurrentUser": "当前登录用户的配置文件", diff --git a/Config/Languages/zh-TW/Chrome.json b/Config/Languages/zh-TW/Chrome.json index 030049a..54d3cbc 100644 --- a/Config/Languages/zh-TW/Chrome.json +++ b/Config/Languages/zh-TW/Chrome.json @@ -252,7 +252,6 @@ "TweaksAlreadyAppliedTooltip": "此微調已套用,且無法自動復原。請參閱 Win11Debloat Wiki 以了解如何手動還原此變更。", "DeployChangeRemoveApps_one": "移除 {0} 個應用程式", "DeployChangeRemoveApps_other": "移除 {0} 個應用程式", - "DeployChangeUndoPrefix": "復原:{0}", "DeployNoChangesSelectedMessage": "未選取任何變更。", "DeploySelectedChangesTitle": "選取的變更", "DeployUserDescriptionCurrentUser": "目前登入的使用者設定檔", diff --git a/Scripts/CLI/Write-PendingChanges.ps1 b/Scripts/CLI/Write-PendingChanges.ps1 index 09a2479..11f1de6 100644 --- a/Scripts/CLI/Write-PendingChanges.ps1 +++ b/Scripts/CLI/Write-PendingChanges.ps1 @@ -6,7 +6,7 @@ Iterates over every non-control parameter in $script:Params and emits a human-readable line for each change that will be applied. For the 'RemoveApps' parameter the list of targeted app names is displayed - inline. Feature labels are resolved from Features.json when available; + inline. Feature labels are resolved from the language catalogs when available; otherwise the raw parameter name is used as a fallback. After printing the summary the function pauses until the user presses @@ -16,7 +16,7 @@ function Write-PendingChanges { Write-Output "Win11Debloat will make the following changes:" if ($script:Params['CreateRestorePoint']) { - Write-Output "- $($script:Features['CreateRestorePoint'].Label)" + Write-Output "- $(Get-Translation -Key 'CreateRestorePoint' -Field 'Label' -Section 'Features')" } foreach ($parameterName in $script:Params.Keys) { if ($script:ControlParams -contains $parameterName) { @@ -45,7 +45,7 @@ function Write-PendingChanges { continue } default { - $message = $script:Features[$parameterName].Label + $message = Get-Translation -Key $parameterName -Field 'Label' -Section 'Features' Write-Output "- $message" continue } diff --git a/Scripts/Features/Invoke-Changes.ps1 b/Scripts/Features/Invoke-Changes.ps1 index 38709d9..f5060c8 100644 --- a/Scripts/Features/Invoke-Changes.ps1 +++ b/Scripts/Features/Invoke-Changes.ps1 @@ -20,7 +20,7 @@ function Invoke-FeatureApply { try { # Resolve feature metadata from Features.json $feature = $script:Features[$FeatureId] - $applyText = $feature.ApplyText + $applyText = Get-Translation -Key $FeatureId -Field 'ApplyText' -Section 'Features' # ---- Registry-backed features: import .reg file, then handle additional tasks ---- if ($feature.RegistryKey) { @@ -162,7 +162,7 @@ function Invoke-FeatureUndo { return $false } - $undoText = if ($feature.ApplyUndoText) { $feature.ApplyUndoText } elseif ($feature.UndoLabel) { $feature.UndoLabel } else { $FeatureId } + $undoText = Get-Translation -Key $FeatureId -Field 'ApplyUndoText' -Section 'Features' try { # ---- Registry-backed features: import undo data, then handle additional tasks ---- @@ -308,9 +308,7 @@ function Invoke-UndoFeatures { foreach ($featureId in $FeatureIds) { if ($script:CancelRequested) { return } - $f = if ($script:Features.ContainsKey($featureId)) { $script:Features[$featureId] } else { $null } - $undoLabel = if ($f -and $f.UndoLabel) { Get-Translation -Key $featureId -Field 'UndoLabel' -Section 'Features' } else { $featureId } - $undoText = if ($f -and $f.ApplyUndoText) { Get-Translation -Key $featureId -Field 'ApplyUndoText' -Section 'Features' } else { $undoLabel } + $undoText = Get-Translation -Key $featureId -Field 'ApplyUndoText' -Section 'Features' if ($script:ApplyProgressCallback) { & $script:ApplyProgressCallback $step $TotalSteps $undoText diff --git a/Scripts/FileIO/Import-LanguageFile.ps1 b/Scripts/FileIO/Import-LanguageFile.ps1 index b910c58..5220d98 100644 --- a/Scripts/FileIO/Import-LanguageFile.ps1 +++ b/Scripts/FileIO/Import-LanguageFile.ps1 @@ -323,7 +323,7 @@ function Get-Translation { <# .SYNOPSIS - Looks up a translated label for one value of a UiGroup, falling back to en-US, then to the raw label. + Looks up a translated label for one value of a UiGroup, falling back to en-US, then to the feature ID. .DESCRIPTION UiGroups[GroupId].Values in the language files is a FeatureId -> Label map, one level deeper @@ -336,13 +336,11 @@ function Get-GroupValueTranslation { [string]$GroupId, [Parameter(Mandatory)] [string]$FeatureId, - [Parameter(Mandatory)] - [string]$FallbackLabel, [object]$Lang = $script:Lang ) if (-not $Lang) { - return $FallbackLabel + return $FeatureId } foreach ($candidateLang in (Get-LanguageFallbackChain -Lang $Lang)) { @@ -357,7 +355,7 @@ function Get-GroupValueTranslation { } } - return $FallbackLabel + return $FeatureId } <# diff --git a/Scripts/GUI/MainWindow-Deployment.ps1 b/Scripts/GUI/MainWindow-Deployment.ps1 index 939da1a..d152fc3 100644 --- a/Scripts/GUI/MainWindow-Deployment.ps1 +++ b/Scripts/GUI/MainWindow-Deployment.ps1 @@ -1,18 +1,6 @@ # MainWindow-Deployment.ps1 # Overview generation, pending tweak actions, feature labels, tweak preset maps, apply logic, user mode state, user selection, and validation. -function Get-UndoFeatureLabel { - param([string]$FeatureId) - - $undoLabel = $script:UndoFeatureLabelLookup[$FeatureId] - if (-not [string]::IsNullOrWhiteSpace([string]$undoLabel)) { - return [string]$undoLabel - } - - # Fall back to the regular label (prefixed for undo context) - return [string]$script:FeatureLabelLookup[$FeatureId] -} - <# .SYNOPSIS Returns the tweak actions that are pending based on the current UI state. @@ -61,7 +49,7 @@ function Get-PendingTweakActions { $actions.Add([PSCustomObject]@{ Action = 'Undo' FeatureId = [string]$mapping.FeatureId - Label = [string](Get-UndoFeatureLabel -FeatureId $mapping.FeatureId) + Label = [string]$script:UndoFeatureLabelLookup[$mapping.FeatureId] }) } } @@ -129,12 +117,7 @@ function New-Overview { } foreach ($tweakAction in @(Get-PendingTweakActions -Window $Window -ShowAppliedTweaksMode:$showAppliedTweaksMode)) { - if ($tweakAction.Action -eq 'Undo') { - $changesList += Get-Translation -Key 'DeployChangeUndoPrefix' -FormatArgs @($tweakAction.Label) - } - else { - $changesList += $tweakAction.Label - } + $changesList += $tweakAction.Label } return $changesList diff --git a/Scripts/GUI/MainWindow-TweaksBuilder.ps1 b/Scripts/GUI/MainWindow-TweaksBuilder.ps1 index 2f75d44..abc0d67 100644 --- a/Scripts/GUI/MainWindow-TweaksBuilder.ps1 +++ b/Scripts/GUI/MainWindow-TweaksBuilder.ps1 @@ -11,7 +11,7 @@ .PARAMETER Mapping A control mapping with Type and either FeatureId or GroupId and Values. Group values - contain FeatureIds and fallback Label text. + contain FeatureIds. .PARAMETER Features The feature definitions keyed by FeatureId. Defaults to $script:Features. @@ -30,7 +30,7 @@ function Get-TweakControlText { $label = Get-Translation -Key $Mapping.GroupId -Field 'Label' -Section 'UiGroups' $tooltip = Get-Translation -Key $Mapping.GroupId -Field 'ToolTip' -Section 'UiGroups' $options += @($Mapping.Values | ForEach-Object { - Get-GroupValueTranslation -GroupId $Mapping.GroupId -FeatureId $_.FeatureIds[0] -FallbackLabel $_.Label + Get-GroupValueTranslation -GroupId $Mapping.GroupId -FeatureId $_.FeatureIds[0] }) } else { @@ -66,9 +66,7 @@ function Update-FeatureLabelLookup { $script:UndoFeatureLabelLookup = @{} foreach ($feature in $Features) { $script:FeatureLabelLookup[$feature.FeatureId] = Get-Translation -Key $feature.FeatureId -Field 'Label' -Section 'Features' - if ($feature.UndoLabel) { - $script:UndoFeatureLabelLookup[$feature.FeatureId] = Get-Translation -Key $feature.FeatureId -Field 'UndoLabel' -Section 'Features' - } + $script:UndoFeatureLabelLookup[$feature.FeatureId] = Get-Translation -Key $feature.FeatureId -Field 'UndoLabel' -Section 'Features' } } @@ -244,7 +242,7 @@ function New-DynamicTweakControls { $text = Get-TweakControlText -Mapping $mapping -Features $featureMap $controlName = ("Feature_{0}_Combo" -f $feature.FeatureId) -replace '[^a-zA-Z0-9_]', '' $control = New-LabeledCombo -parent $parent -labelText $text.Label -comboName $controlName -items $text.Options - if ($feature.ToolTip -or $feature.DisableWhenApplied -eq $true) { + if ($text.ToolTip -and $text.ToolTip -ne $feature.FeatureId) { Set-TweakControlToolTip -control $control -tooltipText $text.ToolTip -ShowOnDisabled } $script:UiControlMappings[$controlName] = $mapping @@ -353,33 +351,10 @@ function New-DynamicTweakControls { } foreach ($f in $featuresJson.Features) { if ($f.Category) { $categoriesPresent[$f.Category] = $true } } - # Create cards in the order defined in Features.json Categories (if present) - $orderedCategories = @() - if ($featuresJson.Categories) { - foreach ($c in $featuresJson.Categories) { - $categoryName = if ($c -is [string]) { $c } else { $c.Name } - if ($categoriesPresent.ContainsKey($categoryName)) { - # Store the full category object (or create one with default icon for string categories). - # A category without its own CategoryId falls back to its Name, same as before CategoryId existed. - $categoryObj = if ($c -is [string]) { - @{Name = $c; CategoryId = $c; Icon = '' } - } - elseif (-not $c.CategoryId) { - @{Name = $c.Name; CategoryId = $c.Name; Icon = $c.Icon } - } - else { - $c - } - $orderedCategories += $categoryObj - } - } - } - else { - # For backward compatibility, create category objects from keys - foreach ($catName in $categoriesPresent.Keys) { - $orderedCategories += @{Name = $catName; CategoryId = $catName; Icon = '' } - } - } + # Create cards in the order defined in Features.json Categories. + $orderedCategories = @($featuresJson.Categories | Where-Object { + $categoriesPresent.ContainsKey($_.Name) + }) # Build a FeatureId -> feature lookup for version filtering in groups $featureMap = @{} @@ -482,7 +457,7 @@ function New-DynamicTweakControls { $comboName = 'Group_{0}Combo' -f $group.GroupId if (-not $panel) { $panel = Get-OrCreateCategoryCard -categoryObj $categoryObj } $combo = New-LabeledCombo -parent $panel -labelText $text.Label -comboName $comboName -items $text.Options - if ($group.ToolTip) { + if ($text.ToolTip -and $text.ToolTip -ne $group.GroupId) { Set-TweakControlToolTip -control $combo -tooltipText $text.ToolTip } $script:UiControlMappings[$comboName] = $mapping diff --git a/Scripts/Helpers/Get-RebootFeatureLabels.ps1 b/Scripts/Helpers/Get-RebootFeatureLabels.ps1 index f03fa22..c427347 100644 --- a/Scripts/Helpers/Get-RebootFeatureLabels.ps1 +++ b/Scripts/Helpers/Get-RebootFeatureLabels.ps1 @@ -5,7 +5,7 @@ .DESCRIPTION Combines parameter keys from both forward and undo selections, removes duplicates, and returns the feature label that should be shown to users. Undo selections use - UndoLabel when available. + UndoLabel. #> function Get-RebootFeatureLabels { $rebootFeatureLabels = [System.Collections.Generic.List[string]]::new() @@ -13,9 +13,9 @@ function Get-RebootFeatureLabels { foreach ($paramKey in $candidateParamKeys) { if ($script:Features.ContainsKey($paramKey) -and $script:Features[$paramKey].RequiresReboot -eq $true) { - $feature = $script:Features[$paramKey] $isUndo = $script:UndoParams.ContainsKey($paramKey) - $displayLabel = if ($isUndo -and $feature.UndoLabel) { Get-Translation -Key $paramKey -Field 'UndoLabel' -Section 'Features' } else { Get-Translation -Key $paramKey -Field 'Label' -Section 'Features' } + $labelField = if ($isUndo) { 'UndoLabel' } else { 'Label' } + $displayLabel = Get-Translation -Key $paramKey -Field $labelField -Section 'Features' if (-not [string]::IsNullOrWhiteSpace([string]$displayLabel)) { [void]$rebootFeatureLabels.Add([string]$displayLabel) diff --git a/Tests/FeatureParameterContracts.Tests.ps1 b/Tests/FeatureParameterContracts.Tests.ps1 index 49a4910..cb6369c 100644 --- a/Tests/FeatureParameterContracts.Tests.ps1 +++ b/Tests/FeatureParameterContracts.Tests.ps1 @@ -23,6 +23,40 @@ BeforeAll { } Describe 'FeatureId parameter contracts' { + It 'keeps localized text out of feature definitions and uses category names for membership' { + $config = Get-Content -LiteralPath $script:FeaturesPath -Raw | ConvertFrom-Json + $objects = @($config.Categories) + @($config.Features) + @($config.UiGroups) + @($config.UiGroups.Values) + foreach ($item in $objects) { + foreach ($field in 'Label', 'ToolTip', 'ApplyText', 'UndoLabel', 'ApplyUndoText') { + $item.PSObject.Properties.Name | Should -Not -Contain $field + } + } + foreach ($item in (@($config.Features) + @($config.UiGroups) | Where-Object { $_.Category })) { + $config.Categories.Name | Should -Contain $item.Category + } + } + + It 'has English text for feature operations, groups, options, and categories directly in the language catalogs' { + $config = Get-Content -LiteralPath $script:FeaturesPath -Raw | ConvertFrom-Json + $catalog = Get-Content -LiteralPath (Join-Path $script:RepoRoot 'Config\Languages\en-US\Features.json') -Raw | ConvertFrom-Json + $categories = Get-Content -LiteralPath (Join-Path $script:RepoRoot 'Config\Languages\en-US\Categories.json') -Raw | ConvertFrom-Json + foreach ($feature in $config.Features) { + $entry = $catalog.Features.($feature.FeatureId) + $entry.ApplyText | Should -Not -BeNullOrEmpty -Because $feature.FeatureId + if ($feature.RegistryUndoKey -or $feature.FeatureId -in @('EnableWindowsSandbox', 'EnableWindowsSubsystemForLinux', 'DisableStoreSearchSuggestions')) { + $entry.UndoLabel | Should -Not -BeNullOrEmpty -Because $feature.FeatureId + $entry.ApplyUndoText | Should -Not -BeNullOrEmpty -Because $feature.FeatureId + } + } + foreach ($group in $config.UiGroups) { + $entry = $catalog.UiGroups.($group.GroupId) + $entry.Label | Should -Not -BeNullOrEmpty + $entry.ToolTip | Should -Not -BeNullOrEmpty + foreach ($value in $group.Values) { $entry.Values.($value.FeatureIds[0]) | Should -Not -BeNullOrEmpty } + } + foreach ($category in $config.Categories) { $categories.($category.CategoryId).Label | Should -Not -BeNullOrEmpty } + } + It 'declares every FeatureId as a parameter on Win11Debloat.ps1' { $parameterNames = Get-ScriptParameterNames -Path $script:Win11DebloatPath $missing = @($script:Features.FeatureId | Where-Object { $parameterNames -notcontains $_ }) diff --git a/Tests/Get-RebootFeatureLabels.Tests.ps1 b/Tests/Get-RebootFeatureLabels.Tests.ps1 index fa96dbe..a3f3cfa 100644 --- a/Tests/Get-RebootFeatureLabels.Tests.ps1 +++ b/Tests/Get-RebootFeatureLabels.Tests.ps1 @@ -100,6 +100,10 @@ Describe 'Get-RebootFeatureLabels' { } It 'includes reboot-required selections once and uses undo labels for undo operations' { + foreach ($feature in $script:Features.Values) { + $feature.PSObject.Properties.Remove('Label') + $feature.PSObject.Properties.Remove('UndoLabel') + } $result = @(Get-RebootFeatureLabels) $result | Should -HaveCount 2 @@ -118,7 +122,7 @@ Describe 'Get-RebootFeatureLabels' { $result | Should -Contain 'Apply feature' } - It 'falls back to the regular label when an undo selection has no undo label' { + It 'uses the translation key when an undo selection has no undo label' { $script:Params = @{} $script:UndoParams = @{ ApplyFeature = $true } $script:Features.ApplyFeature.UndoLabel = $null @@ -127,10 +131,10 @@ Describe 'Get-RebootFeatureLabels' { $result = @(Get-RebootFeatureLabels) $result | Should -HaveCount 1 - $result | Should -Contain 'Apply feature' + $result | Should -Contain 'ApplyFeature' } - It 'falls back to the regular label when the feature has no UndoLabel property' { + It 'uses the translation key when the feature has no UndoLabel property' { $script:Params = @{} $script:UndoParams = @{ MissingUndoLabelFeature = $true } $script:Features.MissingUndoLabelFeature = [PSCustomObject]@{ @@ -142,7 +146,7 @@ Describe 'Get-RebootFeatureLabels' { $result = @(Get-RebootFeatureLabels) $result | Should -HaveCount 1 - $result | Should -Contain 'Feature without undo label' + $result | Should -Contain 'MissingUndoLabelFeature' } It 'returns no labels when there are no selected parameters' { diff --git a/Tests/Invoke-Changes.Tests.ps1 b/Tests/Invoke-Changes.Tests.ps1 index 7f4ae61..3bb395f 100644 --- a/Tests/Invoke-Changes.Tests.ps1 +++ b/Tests/Invoke-Changes.Tests.ps1 @@ -35,6 +35,7 @@ BeforeAll { $entry = @{} foreach ($field in 'ApplyText', 'UndoLabel', 'ApplyUndoText') { if ($null -ne $feature.$field) { $entry[$field] = [string]$feature.$field } + $feature.PSObject.Properties.Remove($field) } $langFeatures[$featureId] = [PSCustomObject]$entry } @@ -112,7 +113,7 @@ Describe 'Invoke-FeatureApply' { It 'imports a registry-backed feature' { Invoke-FeatureApply -FeatureId 'RegistryFeature' - Should -Invoke Import-RegistryFile -Times 1 -Exactly -ParameterFilter { $path -eq 'feature.reg' } + Should -Invoke Import-RegistryFile -Times 1 -Exactly -ParameterFilter { $path -eq 'feature.reg' -and $Message -eq '> Apply registry feature...' } Should -Invoke Remove-SelectedApps -Times 0 -Exactly } @@ -352,6 +353,7 @@ Describe 'Invoke-FeatureUndo' { DisableTelemetry = [PSCustomObject]@{} DisableStoreSearchSuggestions = [PSCustomObject]@{} } + Sync-TestLangFeatures Mock Set-StoreSearchSuggestionsEnabledForAllUsers { $true } Mock Set-StoreSearchSuggestionsEnabled { $true } Mock Get-StoreAppsDatabasePathForUser { 'store.db' } @@ -380,6 +382,12 @@ Describe 'Invoke-FeatureUndo' { $script:disabledFeatures | Should -Be @('Microsoft-Windows-Subsystem-Linux', 'VirtualMachinePlatform') } + It 'uses the language catalog for undo messages without display metadata' { + Invoke-FeatureUndo -FeatureId 'EnableWindowsSandbox' | Should -BeTrue + + Should -Invoke Write-Host -Times 1 -Exactly -ParameterFilter { $Object -eq '> Disable Sandbox...' } + } + It 'disables Sandbox and re-enables telemetry tasks' { $script:Features.DisableTelemetry = [PSCustomObject]@{ ApplyUndoText = 'Enable telemetry'; RegistryUndoKey = 'enable-telemetry.reg' } Invoke-FeatureUndo -FeatureId 'EnableWindowsSandbox' diff --git a/Tests/MainWindow-Deployment.Tests.ps1 b/Tests/MainWindow-Deployment.Tests.ps1 index fced2bb..aca4a59 100644 --- a/Tests/MainWindow-Deployment.Tests.ps1 +++ b/Tests/MainWindow-Deployment.Tests.ps1 @@ -37,17 +37,7 @@ BeforeAll { } } -Describe 'Get-UndoFeatureLabel' { - BeforeEach { - $script:UndoFeatureLabelLookup = @{ DisableTelemetry = 'Enable telemetry' } - $script:FeatureLabelLookup = @{ DisableTelemetry = 'Disable telemetry'; DisableWidgets = 'Disable widgets' } - } - - It 'prefers undo labels and falls back to feature labels' { - Get-UndoFeatureLabel -FeatureId 'DisableTelemetry' | Should -Be 'Enable telemetry' - Get-UndoFeatureLabel -FeatureId 'DisableWidgets' | Should -Be 'Disable widgets' - } - +Describe 'Main window helpers' { It 'reads selected app IDs from string or array settings and removes blanks' { $stringSettings = [PSCustomObject]@{ Settings = @([PSCustomObject]@{ Name = 'Apps'; Value = ' One.App, ,Two.App ' }) } $arraySettings = [PSCustomObject]@{ Settings = @([PSCustomObject]@{ Name = 'Apps'; Value = @(' One.App ', '', 'Two.App') }) } diff --git a/Tests/MainWindow-Localization.Tests.ps1 b/Tests/MainWindow-Localization.Tests.ps1 index ed57981..2a729f7 100644 --- a/Tests/MainWindow-Localization.Tests.ps1 +++ b/Tests/MainWindow-Localization.Tests.ps1 @@ -43,13 +43,13 @@ BeforeAll { } } -Describe 'Legacy tweak categories' { - It 'uses the category Name as CategoryId when building controls without a CategoryId' { +Describe 'Tweak category identifiers' { + It 'uses the defined CategoryId for controls and presets when it differs from Name' { $script:Lang = Import-LanguageFile -LanguageCode 'en-US' $feature = $script:Features['DisableTelemetry'] | Select-Object * $feature.Category = 'Legacy Category' $legacyCatalog = [PSCustomObject]@{ - Categories = @([PSCustomObject]@{ Name = 'Legacy Category'; Icon = '' }) + Categories = @([PSCustomObject]@{ Name = 'Legacy Category'; CategoryId = 'PrivacySuggestedContent'; Icon = '' }) Features = @($feature) } Mock Import-JsonFile { $legacyCatalog } -ParameterFilter { $filePath -eq $script:FeaturesFilePath } @@ -59,8 +59,8 @@ Describe 'Legacy tweak categories' { $controlName = 'Feature_DisableTelemetry_Combo' $script:UiControlMappings.Count | Should -Be 1 - $script:UiControlMappings[$controlName].CategoryId | Should -Be 'Legacy Category' - $map = Get-CategoryTweakPresetMap -Window $window -CategoryId 'Legacy Category' + $script:UiControlMappings[$controlName].CategoryId | Should -Be 'PrivacySuggestedContent' + $map = Get-CategoryTweakPresetMap -Window $window -CategoryId 'PrivacySuggestedContent' $map.Count | Should -Be 1 $map[$controlName].Control | Should -Be ($window.FindName($controlName)) $map[$controlName].DesiredValue | Should -BeTrue @@ -175,7 +175,7 @@ Describe 'Language changes on existing controls' { $disabled.ToolTip.Text | Should -Be (Get-Translation -Key 'TweaksAlreadyAppliedTooltip') [object]::ReferenceEquals($group.SelectedItem, $selectedItem) | Should -BeTrue $group.SelectedIndex | Should -Be 2 - $selectedItem.Content | Should -Be (Get-GroupValueTranslation -GroupId 'SearchIcon' -FeatureId $script:UiControlMappings['Group_SearchIconCombo'].Values[1].FeatureIds[0] -FallbackLabel 'fallback') + $selectedItem.Content | Should -Be (Get-GroupValueTranslation -GroupId 'SearchIcon' -FeatureId $script:UiControlMappings['Group_SearchIconCombo'].Values[1].FeatureIds[0]) @(Get-PendingTweakActions -Window $window -ShowAppliedTweaksMode $true | ForEach-Object { "$($_.Action):$($_.FeatureId)" } | Sort-Object) | Should -Be $before $script:FeatureLabelLookup['DisableTelemetry'] | Should -Be $checkbox.Content foreach ($category in $script:CategoryLanguageControls) { diff --git a/Tests/Show-CliMenuOptions.Tests.ps1 b/Tests/Show-CliMenuOptions.Tests.ps1 index 35e0f6b..969d23e 100644 --- a/Tests/Show-CliMenuOptions.Tests.ps1 +++ b/Tests/Show-CliMenuOptions.Tests.ps1 @@ -1,4 +1,6 @@ BeforeAll { + . (Join-Path $PSScriptRoot '..\Scripts\FileIO\Import-JsonFile.ps1') + . (Join-Path $PSScriptRoot '..\Scripts\FileIO\Import-LanguageFile.ps1') function Get-UserName { 'Alice' } function Generate-AppsList { @() } function Add-Parameter { param($Name, $Value) } @@ -20,7 +22,7 @@ Describe 'Show-CliMenuOptions' { BeforeEach { $script:Params = @{} $script:ControlParams = @('WhatIf', 'Silent') - $script:Features = @{ DisableTelemetry = [PSCustomObject]@{ Label = 'Disable telemetry' }; CreateRestorePoint = [PSCustomObject]@{ Label = 'Create restore point' } } + $script:Lang = Import-LanguageFile -LanguageCode 'en-US' -LanguagesPath (Join-Path $PSScriptRoot '..\Config\Languages') $script:SelectedApps = @('One.App', 'Two.App') $script:SavedSettingsFilePath = 'C:\Settings\LastUsedSettings.json' $script:DefaultSettingsFilePath = 'C:\Settings\DefaultSettings.json' @@ -53,7 +55,7 @@ Describe 'Show-CliMenuOptions' { } It 'summarizes selected features and app removal before confirmation' { - $script:Params = @{ DisableTelemetry = $true; RemoveApps = $true; Apps = 'Default' } + $script:Params = @{ DisableTelemetry = $true; CreateRestorePoint = $true; RemoveApps = $true; Apps = 'Default' } $script:ControlParams = @('WhatIf', 'Silent', 'Apps') $script:InputQueue = @('') @@ -61,7 +63,13 @@ Describe 'Show-CliMenuOptions' { Should -Invoke Generate-AppsList -Times 1 -Exactly Should -Invoke Read-Host -Times 1 -Exactly - Should -Invoke Write-Output -Times 2 -ParameterFilter { $InputObject -like '- *' } + Should -Invoke Write-Output -Times 3 -ParameterFilter { $InputObject -like '- *' } + Should -Invoke Write-Output -Times 1 -Exactly -ParameterFilter { + $InputObject -eq "- $(Get-Translation -Key 'CreateRestorePoint' -Field 'Label' -Section 'Features')" + } + Should -Invoke Write-Output -Times 1 -Exactly -ParameterFilter { + $InputObject -eq "- $(Get-Translation -Key 'DisableTelemetry' -Field 'Label' -Section 'Features')" + } } It 'returns the saved-settings menu option only when the file is available' { diff --git a/Tests/Ui-Preferences.Tests.ps1 b/Tests/Ui-Preferences.Tests.ps1 index b4b4310..7573148 100644 --- a/Tests/Ui-Preferences.Tests.ps1 +++ b/Tests/Ui-Preferences.Tests.ps1 @@ -7,6 +7,75 @@ BeforeAll { $script:LanguagesPath = Join-Path $script:RepoRoot 'Config/Languages' } +Describe 'CLI language routing' { + BeforeAll { + function Show-CliMenuOptions { '0' } + function Show-MainWindow {} + $tokens = $null + $parseErrors = $null + $ast = [System.Management.Automation.Language.Parser]::ParseFile( + "$script:RepoRoot/Win11Debloat.ps1", [ref]$tokens, [ref]$parseErrors) + $parseErrors | Should -BeNullOrEmpty + # Execute only language initialization and mode routing, avoiding Windows startup/mutations. + $initialization = $ast.EndBlock.Statements | Where-Object { + $_ -is [System.Management.Automation.Language.AssignmentStatementAst] -and + $_.Left.Extent.Text -in @('$script:UiPreferences', '$script:Lang') + } + $script:LanguageStartup = [scriptblock]::Create(($initialization.Extent.Text -join "`n")) + $routing = $ast.EndBlock.Statements | Where-Object { + $_ -is [System.Management.Automation.Language.IfStatementAst] -and + $_.Extent.Text -match '\$result = Show-MainWindow' + } + $script:LanguageRouting = [scriptblock]::Create($routing.Extent.Text) + } + + BeforeEach { + $script:UiPreferencesFilePath = "$TestDrive/preferences.json" + Save-UiPreferences -Preferences @{ Theme = 'Dark'; Language = 'nl-NL' } + $script:Params = @{ CLI = $true } + $controlParamsCount = 1 + $launchInCLI = $true + $CLI = $true + $Silent = $true + $Language = 'pt-BR' + $RunDefaults = $false + $RunDefaultsLite = $false + $RunSavedSettings = $false + $Config = $null + $script:MenuLanguage = $null + $script:GuiLanguage = $null + Mock Show-CliMenuOptions { $script:MenuLanguage = $script:Lang.LanguageCode; '0' } + Mock Show-MainWindow { throw 'Simulated GUI startup failure' } + Mock Write-Warning {} + } + + It 'uses English in CLI despite saved and explicit GUI languages' { + & $script:LanguageStartup + & $script:LanguageRouting + + $script:MenuLanguage | Should -Be 'en-US' + $script:UiPreferences.Theme | Should -Be 'Dark' + (Get-UiPreferences).Language | Should -Be 'nl-NL' + Should -Invoke Show-MainWindow -Times 0 -Exactly + } + + It 'restores English before falling back from the selected GUI language to CLI' { + $launchInCLI = $false + $CLI = $false + Mock Show-MainWindow { + $script:GuiLanguage = $script:Lang.LanguageCode + throw 'Simulated GUI startup failure' + } + & $script:LanguageStartup + & $script:LanguageRouting + + Should -Invoke Show-MainWindow -Times 1 -Exactly + $script:GuiLanguage | Should -Be 'pt-BR' + $script:MenuLanguage | Should -Be 'en-US' + (Get-UiPreferences).Language | Should -Be 'nl-NL' + } +} + Describe 'UI preference initialization' { BeforeEach { $script:UiPreferencesFilePath = "$TestDrive/preferences.json" diff --git a/Win11Debloat.ps1 b/Win11Debloat.ps1 index fefaf54..240b164 100644 --- a/Win11Debloat.ps1 +++ b/Win11Debloat.ps1 @@ -322,8 +322,8 @@ $script:Features = @{} try { $featuresData = Get-Content -Path $script:FeaturesFilePath -Raw | ConvertFrom-Json foreach ($feature in $featuresData.Features) { - if ([string]::IsNullOrWhiteSpace([string]$feature.FeatureId) -or [string]::IsNullOrWhiteSpace([string]$feature.Label) -or [string]::IsNullOrWhiteSpace([string]$feature.ApplyText)) { - Write-Warning "Feature '$($feature.FeatureId)' is missing a FeatureId, Label, or ApplyText in Features.json and will be skipped." + if ([string]::IsNullOrWhiteSpace([string]$feature.FeatureId)) { + Write-Warning "A feature is missing a FeatureId in Features.json and will be skipped." continue } $script:Features[$feature.FeatureId] = $feature @@ -476,8 +476,9 @@ $WinVersion = Get-ItemPropertyValue 'HKLM:\SOFTWARE\Microsoft\Windows NT\Current # Check if the machine supports Modern Standby, this is used to determine if the DisableModernStandbyNetworking option can be used $script:ModernStandbySupported = Test-ModernStandbySupport -# Explicit -Language takes precedence over saved UI preferences and the system culture. -Initialize-UiPreferences -Language $Language +# CLI menus, operation messages, and app selection always use English. +$script:UiPreferences = Get-UiPreferences +$script:Lang = Import-LanguageFile -LanguageCode 'en-US' $script:Params = $PSBoundParameters $script:UndoParams = @{} @@ -574,6 +575,8 @@ if ((-not $script:Params.Count) -or $RunDefaults -or $RunDefaultsLite -or $RunSa } else { try { + # Explicit -Language takes precedence over saved UI preferences and the system culture. + Initialize-UiPreferences -Language $Language $result = Show-MainWindow try { @@ -584,6 +587,7 @@ if ((-not $script:Params.Count) -or $RunDefaults -or $RunDefaultsLite -or $RunSa Exit } catch { + $script:Lang = Import-LanguageFile -LanguageCode 'en-US' Write-Warning "The graphical interface could not start: $($_.Exception.Message)" Write-Verbose "GUI Failure details: $($_.Exception.ToString())" if (-not $Silent) {