简体   繁体   English

将Outlook加载项部署到Citrix XenApp安装

[英]Deploying Outlook addin to a Citrix XenApp installation

I created an Outlook addin. 我创建了一个Outlook插件。 It does nothing special, just adds a menu with one menu item. 它没有什么特别的,只需添加一个带有一个菜单项的菜单。 I followed the installer creation tutorial from http://blogs.msdn.com/b/mcsuksoldev/archive/2010/10/01/building-and-deploying-an-outlook-2010-add-in-part-2-of-2.aspx . 我按照http://blogs.msdn.com/b/mcsuksoldev/archive/2010/10/01/building-and-deploying-an-outlook-2010-add-in-part-2-of中的安装程序创建教程进行了操作。 -2.aspx

It installs and works properly on a normal windows desktop installation, but I cant figure out how to do it in a Citrix XenApp environment. 它在正常的Windows桌面安装上安装并正常运行,但我无法弄清楚如何在Citrix XenApp环境中执行此操作。 I can install it using the installer in the same profile where the Outlook is installed successfully. 我可以使用安装程序在安装Outlook成功的相同配置文件中安装它。 But when Outlook is run, it is in the "Inactive Application Addins" section when I view it from the Trust Center menu, and it wont activate properly. 但是当Outlook运行时,当我从“信任中心”菜单中查看它时,它位于“非活动应用程序插件”部分,并且它无法正常激活。 If I open the Manage COM Addins menu, it displays "Load at Startup" as my addin's Load Behavior. 如果我打开Manage COM Addins菜单,它会显示“Load at Startup”作为我的插件的加载行为。 If I try to activate it manually from this menu, nothing happens, and if I open it again, Load Behavior will change to "Not Loaded. The Managed Add-in Loader failed to initialize." 如果我尝试从此菜单手动激活它,则不会发生任何事情,如果我再次打开它,Load Behavior将更改为“Not Loaded.Managed Add-in Loader初始化失败。”

Anyone encountered this or something similar before? 以前有人遇到这个或类似的东西吗? Thanks in advance. 提前致谢。

If it's installing but inactive then it's probably throwing an exception upon startup. 如果它正在安装但不活动,那么它可能在启动时抛出异常。

I'd wrap all of your startup code (ThisAddIn_Startup function inside your ThisAddIn.cs) inside a try {} catch {} and log all errors out to disk so you can see why outlook is disabling your addin. 我将所有启动代码(ThisAddIn_Startup函数放在你的ThisAddIn.cs中)包含在try {} catch {}中,并将所有错误记录到磁盘中,这样你就可以看到为什么outlook会禁用你的插件。

Have you tried setting the VSTO_SUPPRESSDISPLAYALERTS environment variable to see if you can get outlook to give you more info? 您是否尝试过设置VSTO_SUPPRESSDISPLAYALERTS环境变量以查看是否可以获取Outlook以获取更多信息?

(BTW I have found outlook VSTO's to be flaky. Sometimes they just refuse to install and work.) (顺便说一句,我发现VSTO的外观很不稳定。有时它们只是拒绝安装和工作。)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM