创建Outlook 2007加载项的安装项目的过程是什么? [英] What is the procedure for creating a setup project to an Outlook 2007 add-in?

查看:109
本文介绍了创建Outlook 2007加载项的安装项目的过程是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我创建了一个outlook 2007插件项目。在解决方案中添加了一个安装项目和一个setSecurity(CASPOL)项目。
然后将setSecurity和MyAddIn项目的输出添加到安装项目中。
手动创建注册表并导入到安装项目的注册表中。
我在ClickOnce中生成了测试证书,并且还签署了程序集(带有pfx文件)。

我构建了安装项目。 setSecurity.dll和MyAddIn.dll已添加到安装文件中。 'MyAddIn.dll.manifest'没有添加到它。
当我打开outlook并在COM插件列表中看到时,加载项路径显示为c:\programfiles \ ... \ MyAddIn。 dll.manifest。
但是,此文件不存在于指定(或应用程序)路径中。这是问题吗?我是否需要在项目中添加清单文件?如果是的话,怎么样?

我已经创建了很多像这样的项目并试过......没有运气。他们都没有工作。
最后,了解了这个论坛,并在这里登陆。希望我能在这里找到解决问题的方法。

问候

hi
i have created an outlook 2007 addin project. Added a setup project and a setSecurity(CASPOL) project to the solution.
And then added the outputs of setSecurity and MyAddIn projects to setup project.
Created the registries manually and imported into setup project`s registry.
I have generated a test certificate in ClickOnce and also signed the assembly (with a pfx file).

I build the setup project. setSecurity.dll and MyAddIn.dll have added to the setup file. 'MyAddIn.dll.manifest' is not adding to it.
When I open outlook and see in COM addins list, the add-in path is showing as c:\programfiles\...\MyAddIn.dll.manifest.
But, this file is not present in the specified(or application) path. Is this the problem? Do I need to add the manifest file with project? If yes, how?

I have created many projects like this and tried... no luck. none of them worked.
Finally, came to know about this forum and landed here. Hope I get a solution for my problem here.



Regards

推荐答案

Hi LasyaPriya

根据我的经验,仅在部署2003 Outlook加载项项目时需要SetSecurity项目,并且在2007 Outlook Add中需要将MyAddIn项目的输出添加到MyAddInSetup项目(即安装项目) -在。 2003 Outlook加载项和2007 Outlook加载项之间的部署有所不同。

有一个关于为2007 Excel加载项创建安装项目的过程的示例,该过程与2007 Outlook加载项相同。您可以在以下链接中参考2007 Excel加载项的部署演练: http:// msdn。 microsoft.com/en-us/library/cc563937.aspx 。此步骤比部署2003 Outlook加载项时更简单。

在完成上述文章的演练之后,在构建安装项目时,安装文件中没有.dll文件。在安装项目配置过程中,我们需要将.vsto和.dll.menifest文件添加到安装项目中。步骤如下:
1。在Solution Explorer中,右键单击MyAddinSetup,单击Add,然后单击File。在"添加文件"对话框中,导航到MyAddIn输出目录。通常,输出目录是项目根目录的bin \ release子文件夹,具体取决于所选的构建配置。选择MyAddIn.vsto和MyAddIn.dll.manifest文件,然后单击确定将这两个文件添加到安装项目中。

在Visual Studio 2008和Office 2007下。
如果您有任何其他问题,请随时告诉我们。

问候,

Hi LasyaPriya

Based on my experience, a SetSecurity project is only needed when deploying a 2003 Outlook Add-in project, and adding the output of MyAddIn project to MyAddInSetup project(i.e. setup project) is needed in 2007 Outlook Add-in. There is a difference about deployment between 2003 Outlook Add-In and 2007 Outlook Add-In.

There is a sample about the procedure for creating a setup project to an 2007 Excel Add-in, which is the same as an 2007 Outlook Add-in. You could refer to deployment walkthroughs of an 2007 Excel Add-in in the following link: http://msdn.microsoft.com/en-us/library/cc563937.aspx. this steps are simpler than those when deploying 2003 Outlook Add-in. 

After following the walkthroughs of above article, there is no .dll files in the setup file when building the setup project. In the process of setup project configuration, we need to add the .vsto and .dll.menifest files to setup project. The step is as below:
1. In the Solution Explorer, right-click MyAddinSetup, click Add, and click File.
2. In the Add Files dialog box, navigate to the MyAddIn output directory. Usually the output directory is the bin\release subfolder of the project root directory, depending on the selected build configuration.
3. Select the MyAddIn.vsto and MyAddIn.dll.manifest files and click Ok to add these two files to the setup project.

There are under Visual Studio 2008 and Office 2007.

If you have any further questions, please feel free to let us know.

Regards,


这篇关于创建Outlook 2007加载项的安装项目的过程是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆