如何为 Office 2007 .NET 3.5 目标环境部署 Excel 2010 加载项?
在装有 Office 2010 + .Net Framework 4.0 的目标计算机上安装 Excel 2010 加载项绝对没问题。但是,我不确定 Excel 2010 加载项是否与 Excel 2007 和 .Net 3.5 兼容。
有人可以给我一些关于为该目标环境部署 Excel 2010 加载项的基本想法吗?
另外,在安装项目的先决条件中,我目前已选中 .NET 4 客户端配置文件
、用于 Office 运行时的 VS2010 工具
、Windows Installer 3.1
。我需要检查其他选项吗?
Installing Excel 2010 add-in on the target machine with Office 2010 + .Net framework 4.0 is absolutely fine. However, I am not sure whether or not Excel 2010 add-in is compatible with Excel 2007 and .Net 3.5.
Would someone give me some basic ideas about deploying Excel 2010 add-in for that target environment?
Also, in the Prerequisites of setup project, I have currently got .NET 4 client profile
, VS2010 tools for office runtime
, Windows Installer 3.1
checked. Do I need to check any other options?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您是否安装了 Excel 2007 的主要互操作程序集?
请参阅有关如何部署 VSTO 2010 加载项的详细文档。
Do you have the primary interop assemblies for Excel 2007 installed?
See this for detailed documentation on how to deploy VSTO 2010 add-in.
(代表问题作者发布解决方案)。
成功将 Excel 2010 加载项安装到运行 Office 2007 的目标计算机上。 本教程,但我们需要注意一些技巧。
主项目
安装项目
如果您要部署自动化插件(例如 < strong>HKCR \ CLSID \ {您的自定义类 id} \ 可编程)
将可编程键设置为
AlwaysCreate = True
(如果您不要创建此密钥并正确设置它)在启动条件编辑器中,添加
Windows Installer Search
,并将其重命名为Search for Office 2007 Shared PIA
将 ComponentId 设置为
{1ABEAF09-435F-47D6-9FEB-0AD05D4EF3EA}
(这是 Excel 2007 组件 ID)(对于 Excel 2010,请使用
{EA7564AC-C67D-4868-BE5C-26E4FC2223FF}
)(Posted solution on behalf of the question author).
Managed to install Excel 2010 Add-in onto target machine that runs Office 2007. Mostly the steps have been covered by this tutorial but there are a few tricks that we need to be aware of.
Main project
Setup project
In registry editor, create following new keys in additional to those suggested in the above tutorial, if you are deploying automation add-in (e.g. HKCR \ CLSID \ {your custom class id} \ Programmable)
Set Programmable key to
AlwaysCreate = True
( The UDF will not appear in the automation server list if you don't create this Key and set it properly )In launch conditions editor, Add
Windows Installer Search
, and rename itSearch for Office 2007 Shared PIA
Set ComponentId to
{1ABEAF09-435F-47D6-9FEB-0AD05D4EF3EA}
( This is Excel 2007 Component ID )(For Excel 2010, use
{EA7564AC-C67D-4868-BE5C-26E4FC2223FF}
)