问题描述
我的插件在Outlook Web Client中按预期工作,但未在Outlook 365 Windows客户端中显示(功能区按钮未出现)。
我仔细检查了清单,它在Outlook Client中的另一个租户(仅不同的URL,Outlook版本2009-较新,因为在预览通道中)正在按预期运行,但在另一个(Outlook版本1908半年度的通道)中却按预期运行。加载项已激活并已在Web客户端中加载,但未在Windows Client中加载。
清单(更改的名称,URL和guid)
<?xml version="1.0" encoding="UTF-8"?>
<!-- Example + Schema: https://docs.microsoft.com/en-us/office/dev/add-ins/develop/add-in-manifests?tabs=tabid-3#manifest-v11-xml-file-examples-and-schemas -->
<OfficeApp
xmlns="http://schemas.microsoft.com/office/appforoffice/1.1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0"
xmlns:mailappor="http://schemas.microsoft.com/office/mailappversionoverrides/1.1"
xsi:type="MailApp">
<Id>BDE022E4-6241-433F-2222-1BC250CE1E27</Id>
<Version>3.3.0.0</Version>
<ProviderName>Name</ProviderName>
<DefaultLocale>de-DE</DefaultLocale>
<!-- The display name of your add-in. Used on the store and varIoUs places of the Office UI such as the add-ins dialog. -->
<displayName DefaultValue="AddinName" />
<Description DefaultValue="Name AddinName Add-in"/>
<IconUrl DefaultValue="https://url/OutlookAddin/assets/HT_Icons_DMS.png" />
<HighResolutionIconUrl DefaultValue="https://url/OutlookAddin/assets/HT_Icons_DMS.png" />
<SupportUrl DefaultValue="https://name.de/support" />
<!-- Domains that will be allowed when navigating. For example,if you use ShowTaskpane and then have an href link,navigation will only be allowed if the domain is on this list. -->
<AppDomains>
<AppDomain>https://url</AppDomain>
</AppDomains>
<!--End Basic Settings. -->
<Hosts>
<Host Name="MailBox" />
</Hosts>
<Requirements>
<Sets>
<Set Name="MailBox" MinVersion="1.1" />
</Sets>
</Requirements>
<FormSettings>
<Form xsi:type="ItemRead">
<DesktopSettings>
<SourceLocation DefaultValue="https://url/OutlookAddin/index.html"/>
<RequestedHeight>250</RequestedHeight>
</DesktopSettings>
</Form>
</FormSettings>
<Permissions>ReadWriteItem</Permissions>
<Rule xsi:type="RuleCollection" Mode="Or">
<Rule xsi:type="ItemIs" ItemType="Message" FormType="Read" />
<Rule xsi:type="ItemIs" ItemType="Message" FormType="Edit" />
</Rule>
<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>
<!-- Location of the Functions that UI-less buttons can trigger (ExecuteFunction Actions). -->
<FunctionFile resid="functionFile" />
<!-- Message Read -->
<ExtensionPoint xsi:type="MessageReadCommandSurface">
<!-- Use the default tab of the ExtensionPoint or create your own with <CustomTab id="myTab"> -->
<OfficeTab id="TabDefault">
<!-- Up to 6 Groups added per Tab -->
<Group id="msgReadGroup">
<Label resid="readGroupLabel" />
<!-- Launch the add-in : task pane button -->
<Control xsi:type="Button" id="msgReadOpenPaneButton">
<Label resid="paneReadButtonLabel" />
<Supertip>
<Title resid="paneReadSuperTipTitle" />
<Description resid="paneReadSuperTipDescription" />
</Supertip>
<Icon>
<bt:Image size="16" resid="readicon16" />
<bt:Image size="32" resid="readicon32" />
<bt:Image size="80" resid="readicon80" />
<bt:Image size="96" resid="readicon96" />
</Icon>
<Action xsi:type="ShowTaskpane">
<SourceLocation resid="messageReadTaskPaneUrl" />
</Action>
</Control>
<!-- Go to http://aka.ms/ButtonCommands to learn how to add more Controls: ExecuteFunction and Menu -->
</Group>
</OfficeTab>
</ExtensionPoint>
<!-- Message compose form -->
<ExtensionPoint xsi:type="MessageComposeCommandSurface">
<OfficeTab id="TabDefault">
<Group id="msgComposeGroup">
<Label resid="composeGroupLabel" />
<!-- Task pane button -->
<Control xsi:type="Button" id="msgCompoSEOpenPaneButton">
<Label resid="paneComposeButtonLabel" />
<Supertip>
<Title resid="paneComposeSuperTipTitle" />
<Description resid="paneComposeSuperTipDescription" />
</Supertip>
<Icon>
<bt:Image size="16" resid="composeicon16" />
<bt:Image size="32" resid="composeicon32" />
<bt:Image size="80" resid="composeicon80" />
<bt:Image size="96" resid="composeicon96" />
</Icon>
<Action xsi:type="ShowTaskpane">
<SourceLocation resid="composeTaskPaneUrl" />
</Action>
</Control>
</Group>
</OfficeTab>
</ExtensionPoint>
<!-- Go to http://aka.ms/ExtensionPointsCommands to learn how to add more Extension Points: MessageRead,AppointmentOrganizer,AppointmentAttendee -->
</DesktopFormFactor>
</Host>
</Hosts>
<Resources>
<bt:Images>
<bt:Image id="readicon16" DefaultValue="https://url/OutlookAddin/assets/readicon-16.png"/>
<bt:Image id="readicon32" DefaultValue="https://url/OutlookAddin/assets/readicon-32.png"/>
<bt:Image id="readicon80" DefaultValue="https://url/OutlookAddin/assets/readicon-80.png"/>
<bt:Image id="readicon96" DefaultValue="https://url/OutlookAddin/assets/readicon-96.png"/>
<bt:Image id="composeicon16" DefaultValue="https://url/OutlookAddin/assets/composeicon-16.png"/>
<bt:Image id="composeicon32" DefaultValue="https://url/OutlookAddin/assets/composeicon-32.png"/>
<bt:Image id="composeicon80" DefaultValue="https://url/OutlookAddin/assets/composeicon-80.png"/>
<bt:Image id="composeicon96" DefaultValue="https://url/OutlookAddin/assets/composeicon-96.png"/>
</bt:Images>
<bt:Urls>
<bt:Url id="functionFile" DefaultValue="https://url/OutlookAddin/function-file/function-file.html"/>
<bt:Url id="messageReadTaskPaneUrl" DefaultValue="https://url/OutlookAddin/index.html?mode=read"/>
<bt:Url id="composeTaskPaneUrl" DefaultValue="https://url/OutlookAddin/index.html?mode=compose"/>
</bt:Urls>
<bt:ShortStrings>
<bt:String id="readGroupLabel" DefaultValue="AddinName"/>
<bt:String id="paneReadButtonLabel" DefaultValue="Hochladen"/>
<bt:String id="paneReadSuperTipTitle" DefaultValue="AddinName"/>
<bt:String id="composeGroupLabel" DefaultValue="AddinName"/>
<bt:String id="paneComposeButtonLabel" DefaultValue="Attachment anfügen"/>
<bt:String id="paneComposeSuperTipTitle" DefaultValue="AddinName"/>
</bt:ShortStrings>
<bt:LongStrings>
<bt:String id="paneReadSuperTipDescription" DefaultValue="Name AddinName Add-in"/>
<bt:String id="paneComposeSuperTipDescription" DefaultValue="Name AddinName Add-in"/>
</bt:LongStrings>
</Resources>
<VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides/1.1" xsi:type="VersionOverridesV1_1">
<Requirements>
<bt:Sets DefaultMinVersion="1.3">
<bt:Set Name="MailBox" />
</bt:Sets>
</Requirements>
<Hosts>
<Host xsi:type="MailHost">
<DesktopFormFactor>
<!-- Location of the Functions that UI-less buttons can trigger (ExecuteFunction Actions). -->
<FunctionFile resid="functionFile" />
<!-- Message Read -->
<ExtensionPoint xsi:type="MessageReadCommandSurface">
<!-- Use the default tab of the ExtensionPoint or create your own with <CustomTab id="myTab"> -->
<OfficeTab id="TabDefault">
<!-- Up to 6 Groups added per Tab -->
<Group id="msgReadGroup">
<Label resid="readGroupLabel" />
<!-- Launch the add-in : task pane button -->
<Control xsi:type="Button" id="msgReadOpenPaneButton">
<Label resid="paneReadButtonLabel" />
<Supertip>
<Title resid="paneReadSuperTipTitle" />
<Description resid="paneReadSuperTipDescription" />
</Supertip>
<Icon>
<bt:Image size="16" resid="readicon16" />
<bt:Image size="32" resid="readicon32" />
<bt:Image size="80" resid="readicon80" />
<bt:Image size="96" resid="readicon96" />
</Icon>
<Action xsi:type="ShowTaskpane">
<SourceLocation resid="messageReadTaskPaneUrl" />
<SupportsPinning>true</SupportsPinning>
</Action>
</Control>
<!-- Go to http://aka.ms/ButtonCommands to learn how to add more Controls: ExecuteFunction and Menu -->
</Group>
</OfficeTab>
</ExtensionPoint>
<!-- Message compose form -->
<ExtensionPoint xsi:type="MessageComposeCommandSurface">
<OfficeTab id="TabDefault">
<Group id="msgComposeGroup">
<Label resid="composeGroupLabel" />
<!-- Task pane button -->
<Control xsi:type="Button" id="msgCompoSEOpenPaneButton">
<Label resid="paneComposeButtonLabel" />
<Supertip>
<Title resid="paneComposeSuperTipTitle" />
<Description resid="paneComposeSuperTipDescription" />
</Supertip>
<Icon>
<bt:Image size="16" resid="composeicon16" />
<bt:Image size="32" resid="composeicon32" />
<bt:Image size="80" resid="composeicon80" />
<bt:Image size="96" resid="composeicon96" />
</Icon>
<Action xsi:type="ShowTaskpane">
<SourceLocation resid="composeTaskPaneUrl" />
<SupportsPinning>true</SupportsPinning>
</Action>
</Control>
</Group>
</OfficeTab>
</ExtensionPoint>
<!-- Go to http://aka.ms/ExtensionPointsCommands to learn how to add more Extension Points: MessageRead,AppointmentAttendee -->
</DesktopFormFactor>
</Host>
</Hosts>
<Resources>
<bt:Images>
<bt:Image id="readicon16" DefaultValue="https://url/OutlookAddin/assets/readicon-16.png"/>
<bt:Image id="readicon32" DefaultValue="https://url/OutlookAddin/assets/readicon-32.png"/>
<bt:Image id="readicon80" DefaultValue="https://url/OutlookAddin/assets/readicon-80.png"/>
<bt:Image id="readicon96" DefaultValue="https://url/OutlookAddin/assets/readicon-96.png"/>
<bt:Image id="composeicon16" DefaultValue="https://url/OutlookAddin/assets/composeicon-16.png"/>
<bt:Image id="composeicon32" DefaultValue="https://url/OutlookAddin/assets/composeicon-32.png"/>
<bt:Image id="composeicon80" DefaultValue="https://url/OutlookAddin/assets/composeicon-80.png"/>
<bt:Image id="composeicon96" DefaultValue="https://url/OutlookAddin/assets/composeicon-96.png"/>
</bt:Images>
<bt:Urls>
<bt:Url id="functionFile" DefaultValue="https://url/OutlookAddin/function-file/function-file.html"/>
<bt:Url id="messageReadTaskPaneUrl" DefaultValue="https://url/OutlookAddin/index.html?mode=read"/>
<bt:Url id="composeTaskPaneUrl" DefaultValue="https://url/OutlookAddin/index.html?mode=compose"/>
</bt:Urls>
<bt:ShortStrings>
<bt:String id="readGroupLabel" DefaultValue="AddinName"/>
<bt:String id="paneReadButtonLabel" DefaultValue="Hochladen"/>
<bt:String id="paneReadSuperTipTitle" DefaultValue="AddinName"/>
<bt:String id="composeGroupLabel" DefaultValue="AddinName"/>
<bt:String id="paneComposeButtonLabel" DefaultValue="Attachment anfügen"/>
<bt:String id="paneComposeSuperTipTitle" DefaultValue="AddinName"/>
</bt:ShortStrings>
<bt:LongStrings>
<bt:String id="paneReadSuperTipDescription" DefaultValue="Name AddinName Add-in"/>
<bt:String id="paneComposeSuperTipDescription" DefaultValue="Name AddinName Add-in"/>
</bt:LongStrings>
</Resources>
</VersionOverrides>
</VersionOverrides>
</OfficeApp>
可能是什么问题?如何解决正在发生的事情?微软明显的故障排除文章没有帮助。
编辑:OnPremise Exchange 2016,Addin与Windows上其他版本的Outlook(非365版本)一起使用
解决方法
感谢Outlook Add-ins Team - MSFT给我的提示,我找到了解决问题的方法:
这确实是组策略在注册表中分发的隐私控制设置。在我们的情况下,尤其是密钥
HKEY_CURRENT_USER \ Software \ Policies \ Microsoft \ office \ 16.0 \ common \ privacy -> 已启用控制器连接的服务
设置为dword:00000002(已禁用)。
将其更改为dword:00000001(启用)后,该加载项立即出现!
相关信息可以在此Microsoft文章https://docs.microsoft.com/en-us/deployoffice/privacy/manage-privacy-controls的底部找到