If you are following the latest updates the the OfficeJS API’s, you will see that PowerPoint, Excel and Word have this new feature that allows you to specify an equivalent COM add-in in place of the Web Add-in. Here is the link:Ā Ā https://docs.microsoft.com/en-us/office/dev/add-ins/develop/make-office-add-in-compatible-with-existing-com-add-in
This is useful for when you have created a Web Add-in but it is not as feature rich as your COM add-in. So on the Windows clients, you still want your COM (or VSTO) solution to run there and not the web version of the add-in.
However, this feature has not yet arrived for Outlook. I am told that this is coming, but for now there really are only two workarounds.
If you are using Office 2016, you can set your manifest requirements to 1.5, like this:
Ā Ā Ā Ā <Requirements>
Ā Ā Ā Ā Ā Ā <bt:SetsĀ DefaultMinVersion=”1.5″>
Ā Ā Ā Ā Ā Ā Ā Ā <bt:SetĀ Name=”Mailbox”Ā />
Ā Ā Ā Ā Ā Ā </bt:Sets>
Ā Ā Ā Ā </Requirements>
If you are needing to support Outlook 2019 or Outlook for Office 365, then this easy trick will not work. So what you need to do is a bit more complicated. To start you need to collect some information first:
- Open Outlook, and verify that your web add-in customization has loaded.
- Go to File, Options, Customize Ribbon:

- At the bottom, click Import/Export and select Export all customizations.
- Save the “customui” file to the desktop and then open it in Notepad.
- You will look for your customization and it will be in a group or a tab and contain an if like this: x1:Group_5febe0ec-e536-4275-bd02-66818bf9e191_msgEditGroup_TabNewMailMessage.
- Make note of this value, minus the namespace (x1:) and whether it is a customtab or a customgroup.
If this does not work for you a couple of other options are to add the Group to the Quick Access bar, by right-clicking on the group and selecting “Add to Quick Access.” This should help it appear in the customUI file. However, if this still does not work, you can make an “educated guess” at the name by using these steps:
- Open your manifest file in your Web Add-in and locate the ID:
5febe0ec-e536-4275-bd02-66818bf9e191
- Ā Next, locate what you called the group in your manifest:
< GroupĀ id=”msgEditGroup” >
- Finally, you need to determine which “Ribbon” it is on. This is a tad more complex, but since most following the “TabDefault” option, here are two defaults I know about, that could help you:
- TabNewMailMessage
- TabReadMailMessage
- From there you can build the Group identifier:
Group_5febe0ec-e536-4275-bd02-66818bf9e191_msgEditGroup_TabNewMailMessage
- If you are working with a custom tab, you would look in your manifest and get the name of the custom tab:
<CustomTabĀ id=”myTab”>
- From there you can build your tab identifier:
Tab_5febe0ec-e536-4275-bd02-66818bf9e191_myTab
The namespace is what makes this whole process a little harder than expected. This namespace is a UID for the Exchange Account to which the add-in was installed. And this ID is unique to every user and each email account in Outlook. What you will need to do is customize the Ribbon XML in your solution to then hide this group.Ā I have created a solution here on github that shows how to do this end-to-end with a new add-in:
https://github.com/davecra/RemoveOfficeWebAddin
What this does is loads a file called RemovedCustomizations.txt from the install directory of the add-in. This file will contain entries like this to remove a tab:
5febe0ec-e536-4275-bd02-66818bf9e191
customtab,Tab_5febe0ec-e536-4275-bd02-66818bf9e191_myTab,
If you want to remove a group on an existing Outlook tab, it looks like this:
5febe0ec-e536-4275-bd02-66818bf9e191
customgroup,TabMail,Group_5febe0ec-e536-4275-bd02-66818bf9e191_msgReadGroup_TabMail
And this is a bit more tricky, but if you need to remove an item from a context ribbon in Outlook, you will add an entry like this:
5febe0ec-e536-4275-bd02-66818bf9e191
customgroup,TabComposeTools\TabMessage,Group_5febe0ec-e536-4275-bd02-66818bf9e191_msgComposeGroup
Important to note, the first entry is the ID of your Web Add-in. This is used to create the namespace entry.
You will use the steps above, to build this list item by item. And it is important to note that your item may appear on multiple tabs. For example, if your manifest is putting your custom group on TabDefault, that could end up in two places for a Compose message:
- TabMail
- TabComposeTools\TabMessage
The latter is a context tab and you have to specify the context tab name first, then the tab name. The tab name alone will not help. Finding the context tab is a bit more complex, but you can get those identifiers from here.
So in the end you might end up with a RemoveCustomizations.txt file that looks like this:
5febe0ec-e536-4275-bd02-66818bf9e191
customtab,Tab_5febe0ec-e536-4275-bd02-66818bf9e191_myTab,
customgroup,TabMail,Group_5febe0ec-e536-4275-bd02-66818bf9e191_msgReadGroup_TabMail
customgroup,TabComposeTools\TabMessage,Group_5febe0ec-e536-4275-bd02-66818bf9e191_msgComposeGroup
Overall, this is a tad more complex than I had hoped it would be, so please let me know if you get stuck on any parts and/or if there are areas that you think I can elaborate more.