Skip to content

Commit b64eaec

Browse files
committed
Add new Outlook to CommunicationsApps UWP app group
Also add registry key to prevent automatic background installation
1 parent 782a3b0 commit b64eaec

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

src/Operations/UwpAppGroupRemover.cs

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,11 @@ class UwpAppGroupRemover : IOperation
5151
{ UwpAppGroup.Calculator, ["Microsoft.WindowsCalculator"] },
5252
{ UwpAppGroup.Camera, ["Microsoft.WindowsCamera"] },
5353
{ UwpAppGroup.Clock, ["Microsoft.WindowsAlarms"] },
54-
{ UwpAppGroup.CommunicationsApps, ["microsoft.windowscommunicationsapps", "Microsoft.People"] },
54+
{ UwpAppGroup.CommunicationsApps, [
55+
"microsoft.windowscommunicationsapps",
56+
"Microsoft.People",
57+
"Microsoft.OutlookForWindows"
58+
] },
5559
{ UwpAppGroup.Copilot, ["Microsoft.Copilot", "Microsoft.MicrosoftOfficeHub"] },
5660
{ UwpAppGroup.Cortana, ["Microsoft.549981C3F5F10"] },
5761
{ UwpAppGroup.HelpAndFeedback, [
@@ -116,7 +120,10 @@ public UwpAppGroupRemover(UwpAppGroup[] appsToRemove, UwpAppRemovalMode removalM
116120
this.serviceRemover = serviceRemover;
117121

118122
postUninstallOperationsForGroup = new Dictionary<UwpAppGroup, Action> {
119-
{ UwpAppGroup.CommunicationsApps, RemoveOneSyncServiceFeature },
123+
{ UwpAppGroup.CommunicationsApps, () => {
124+
RemoveOneSyncServiceFeature();
125+
PreventAutomaticOutlookInstallation();
126+
} },
120127
{ UwpAppGroup.Cortana, HideCortanaFromTaskBar },
121128
{ UwpAppGroup.Maps, RemoveMapsServicesAndTasks },
122129
{ UwpAppGroup.Messaging, RemoveMessagingService },
@@ -274,6 +281,15 @@ private void RemoveOneSyncServiceFeature()
274281
rebootFlag.UpdateIfNeeded(featuresRemover.IsRebootRecommended);
275282
}
276283

284+
private void PreventAutomaticOutlookInstallation()
285+
{
286+
ui.PrintMessage("Blocking automatic installation of the new Outlook app via registry edits...");
287+
using RegistryKey key = RegistryUtils.LocalMachine64.CreateSubKey(
288+
@"SOFTWARE\Microsoft\WindowsUpdate\Orchestrator\UScheduler_Oobe"
289+
);
290+
key.SetValue("BlockedOobeUpdaters", """["MS_Outlook"]""");
291+
}
292+
277293
private void DisableStoreFeaturesAndServices()
278294
{
279295
ui.PrintMessage("Disabling Microsoft Store features...");

0 commit comments

Comments
 (0)