问题
I developed an Outlook web-based add-in. To install it, I added the manifest file from the "Manage add-ins" page in OWA: https://msdn.microsoft.com/en-us/library/office/fp142256.aspx. The add-in is showing up in both Outlook Web App and Windows Desktop App.
Is there a setting or code change need to be done to make the add-in available only in the Web App.
回答1:
We have no such capability - we'd like the platform to provide users with consistent experience regardless of Outlook client/platform they use. Would you mind sharing why would you like your add-in to show up in OWA but not in desktop Outlook?
回答2:
I guess now it's possible. If you insert VersionOverrides in the manifest file an leave it empty, then the outlook client will not show the app but the outlook on the web client will show the app.
Example:
<VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides" xsi:type="VersionOverridesV1_0">
<Requirements>
<bt:Sets DefaultMinVersion="1.3">
<bt:Set Name="Mailbox" />
</bt:Sets>
</Requirements>
<Hosts>
<Host xsi:type="MailHost">
<DesktopFormFactor>
<FunctionFile resid="functionFile" />
<ExtensionPoint xsi:type="MessageReadCommandSurface">
</ExtensionPoint>
</DesktopFormFactor>
</Host>
</Hosts>
Don't forget the namespace:
xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0"
xmlns:mailappor="http://schemas.microsoft.com/office/mailappversionoverrides"
来源:https://stackoverflow.com/questions/45721635/enable-outlook-web-add-in-only-on-the-web