无法安装 Outlook 2007 加载项?
我将在这里解释我所做的事情,如果有人帮助我,我将非常感激。我看到有一些关于这个问题的帖子,但我想知道我是否犯了一些错误。
我使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不幸的是,部署 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: