为所有用户部署从 Visual Studio 2010 创建的 Outlook 2007 外接程序
我正在尝试为 Windows 7 中的所有用户部署 Outlook 2007 插件。我使用 Visual Studio 2010 开发了该插件,以便在加载时显示一个消息框。
private void ThisAddIn_Startup(object sender, System.EventArgs e)
{
MessageBox.Show("test addin");
}
由于据说使用发布(ClickOnce)功能创建安装程序不会将插件安装给所有用户,因此我尝试按照以下给出的步骤创建一个 MSI 安装项目, http://msdn.microsoft.com/en-us/library/ ff937654.aspx#Create
由于我仅针对 Outlook 2007,因此我仅执行了配置注册表之前的步骤。
创建设置并安装它(选择“Everyone”)后,该插件最初不会在 Outlook 中运行。当我在信任中心检查它时,我可以看到我的插件列在“非活动应用程序插件”部分中。
一旦我检查了系统注册表(使用 regedit),所有注册表项也都正确包含在
HKEY_LOCAL_MACHINE
下。
(当我安装它时选择“仅我”,该插件工作正常。)
任何人都可以帮助我让这个对所有用户都有效。 谢谢。
I'm trying to deploy a Outlook 2007 addin for all users in windows 7. I developed the addin using visual studio 2010 to simply to show a message box on load.
private void ThisAddIn_Startup(object sender, System.EventArgs e)
{
MessageBox.Show("test addin");
}
Since it is stated that creating a installer using Publish(ClickOnce) feature will not install the addin to all users, i tried creating an MSI setup project following the steps given in,
http://msdn.microsoft.com/en-us/library/ff937654.aspx#Create
Since I'm targeting only Outlook 2007, I executed only the steps up to configuring the registry.
Once I created the setup and installed it (selecting Everyone), the addin does not run initially in outlook. when I checked it in Trust Center, I could see my addin listed in the Inactive Application Addins Section.
Once I checked in the system registry(using regedit), all the Registry Key are properly included under HKEY_LOCAL_MACHINE
as well.
(When I install it Selecting Only me, the addin works fine.)
Can anyone please help me to get this working for all users.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
本教程的第二部分展示了如何在安装过程中处理信任。您可以在此处找到它。
There is a second part to the tutorial which shows how to handle trust as part of the installation. You can find it here.