无法安装 Outlook 2007 加载项?

发布于 2024-08-20 15:35:30 字数 501 浏览 2 评论 0原文

我将在这里解释我所做的事情,如果有人帮助我,我将非常感激。我看到有一些关于这个问题的帖子,但我想知道我是否犯了一些错误。

我使用 VS2008 和 C# 开发了 Outlook 2007 (.NET Framework 3.5) 的加载项。完成后,在解决方案资源管理器中,右键单击“解决方案(我的项目)”,然后单击“添加新项目”->“其他项目类型”->“安装和部署”->“安装项目”。

在这个新项目中,我有选项卡“文件系统”,其中包含 3 个文件夹:

  • 应用程序文件夹
  • 用户桌面
  • 用户程序菜单

我右键单击“应用程序文件夹”->“添加”->“项目输出”--->主要输出(我的项目)

毕竟,在添加的安装项目的 Debug 文件夹中有 setup.exe 和 MyProject.msi 文件,但是当我将其安装在其他计算机上时,Microsoft Outlook 中没有安装加载项:(

什么我做错了??

I'll explain here what I have done and I will be really grateful if someone helps me. I've seen there are some posts about this problem, but I want to know if I made some mistakes.

I developed add-in for Outlook 2007 (.NET Framework 3.5) using VS2008 and C#. When I finished, in Solution Explorer, right-click on "Solution(my project)" and clicked on Add New Project->Other Project Types->Setup and Deployment->Setup Project.

In this new project I have tab File System with 3 folders:

  • Application folder
  • User's desktop
  • User's program menu

I clicked right click on Application folder->Add->Project Output---> Primary output (My Project)

After all this, in the Debug folder of added setup project there are setup.exe and MyProject.msi files, but when I install it on other computer, there's no add-in installed in Microsoft Outlook :(

What I did wrong??

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

生来就爱笑 2024-08-27 15:35:30

不幸的是,部署 Outlook 加载项不仅仅涉及在 Visual Studio 中创建默认安装项目。特别是,您需要向安装项目添加一些注册表项,Outlook 需要这些注册表项来识别您的加载项;并且您需要确保安装了先决条件。这两篇 MSDN 文章应该可以帮助您入门:

由于您的目标是 Outlook 2007(而不是 2003),因此使用 ClickOnce 是(据说更容易)使用安装项目的替代方案:

Unfortunately, deploying an Outlook add-in involves more than just creating a default setup project in Visual Studio. In particular, you need to add some registry entries to your setup project, which are required by Outlook to recognize your add-in; and you need to make sure that the prerequisites are installed. These two MSDN articles should get you started:

Since you are targeting Outlook 2007 (rather than 2003), using ClickOnce is a (supposedly easier) alternative to using a setup project:

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文