问题部署共享添加到Office 2007 [英] Issues Deployng a Shared Add In to Office 2007

查看:78
本文介绍了问题部署共享添加到Office 2007的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一些帮助。我被要求开发一个Office Addin(我已经完成)它在我的开发机器上完美运行但在部署到使用Office 2007的机器时无法工作。

I'm in need of some help. I have been asked to develop an Office Addin (which I have done) it works perfectly on my development machine but fails to work when deployed to a machine using Office 2007.

我开发了一个共享在我的计算机上安装了使用Visual Studio 2010和Office 2010的插件 - 运行正常,我已经能够将其部署到使用Office 2010的其他计算机上,这也适用。

I developed a shared Addin using Visual Studio 2010 and Office 2010 was installed on my machine - this runs fine, and I have been able to deploy this to other machines using Office 2010 which also works.

部署时到Office 2007 - 无法加载插件,加载行为的注册表项从3更改为2

When I deploy to Office 2007 - the addin fails to load and the registry key for load behavior changes from 3 to 2

在我的部署项目中,我将.NET 3.5和Office 2007 PIA作为预先获取的目标以及VSTO2010工具运行时(x64 x86)

In my deployment project I have targeted .NET 3.5 and Office 2007 PIAs as pre-requisits and also the VSTO2010 tools runtime (x64 x86)

最初注册表键全部在HKEY LM下用于Word和Excel键,但我已经读过,对于Office  2007,键应该是在当前用户下,这是正确的吗?

Originally the registry keys were all under HKEY LM for the Word and Excel keys but I have read that that for Office 2007 the keys should be under Current User, is this correct?.

reg键设置FriendlyName,LoadBehavior和Description。现在,我已经看到了Manifest = AddInName.vsto  |的内容vstolocal这仅适用于VSTO,而不是共享AddIn所必需的吗?我真的很难过,因为我读过
的每个网站都表示你可以部署到Office 2007,只要你包含我已经完成的VSTO2010运行时。

The reg keys set FriendlyName, LoadBehavior and Description. Now, I have seen things about Manifest = AddInName.vsto | vstolocal Is this just for a VSTO then and not required for a shared AddIn? I'm really stumped because every site I have read says that you can deploy to Office 2007 as long as you include the VSTO2010 runtime which I have done.

我有不知道为什么它在2007年的时候不适用于2010年 - 我承受了相当大的压力来实现这一目标,并证明它有效(在2010年之下)那些不明白的原因为什么它不能被部署到客户端(运行2007)

I have no idea why it doesn't work for 2007 when it does for 2010 - I'm under quite a lot of pressure to deliver this and having demonstrated it working (under 2010) the powers that be don't understand why it can't be deployed to the client (running 2007)

正如我所说,我已经阅读了我能够找到的关于此的每一页,在我的脑海里,我已经完成了所建议的但是应用程序启动时仍然没有加载。

As I said, I have read every page I have been able to find about this and in my mind I've done what has been suggested but still the Add In doesn't load during application start up.

请帮忙。

 

推荐答案

您好Subtle81,

Hi Subtle81,

这可能听起来像是一个信任证书问题。本文可能有所帮助。

Potentially it sounds like a trust certificate issue. This article might help.

http://blogs.msdn.com/b/vsto/archive/2010/03/08/deploying-your-vsto-add-ins-to- all-users-saurabh-bhatia.aspx

vsto | vstolocal设置与Windows Installer  MSI和ClickOnce部署有关。由于您要安装共享加载项,因此必须通过Windows Installer  MSI完成。

The vsto|vstolocal setting has to do with a Windows Installer MSI versus a ClickOnce deployment. Since you are installing a shared add-in it has to be done via a Windows Installer MSI.

我为Office 2007部署的加载项全部使用Windows Installer 因此,MSI必须具有"vstolocal"。作为清单名称的一部分,并已放入HKCU。 我部署加载项时,文章中提到的新HotFix不可用
。 我按照记录的方式遵循了以下方法。

Add-ins that I have deployed for Office 2007 were all done with Windows Installer MSI, thus had to have the "vstolocal" as part of the manifest name and had be placed into HKCU.  The new HotFixs mentioned in the article were not available when I deployed my add-ins.  I followed the following methods as documented.

http://blogs.msdn.com/b/mshneer/archive/2007/09/04/deploying-your-vsto-add-in -to-all-users-part-i.aspx

http://blogs.msdn.com/b/mshneer/archive/2007/09/05/deploying -your-vsto-add-in-all-users-part-ii.aspx

希望这有帮助


这篇关于问题部署共享添加到Office 2007的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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