如何安装/部署使用C#.net开发的VSTO Excel 2010插件?

4
我使用C#.net中的VSTO开发了一个Excel插件。现在我想在其他机器上部署这个插件,这样安装了这个插件的用户就可以在Excel菜单中看到我的插件-> Addins-> MyAddin。
或者我可以给他们一个带有我的addin的Excel。这样,拥有这个Excel的人可以访问和使用addin。这种方式他们不会在每个Excel文件的附加组件菜单中看到我的addin。

你查看了VSTO页面吗?它有一整套关于如何部署VSTO插件的解释和说明:http://msdn.microsoft.com/zh-cn/office/hh128824 - Mathias
哈哈,我喜欢大家都像“哦,答案,看这个链接……”谢谢大家的帮助。 - James Heffer
2个回答

3
你可以使用Visual Studio 2010设置项目创建Windows Installer包。请参考此MSDN链接:http://msdn.microsoft.com/en-us/library/ff937654.aspx 该链接中的引用:

Summary: Learn how to deploy a Microsoft Visual Studio Tools for the Office system 2010 add-in or document- level solution using a Visual Studio 2010 setup project to create a Windows Installer package that targets the 2007 Microsoft Office system or Microsoft Office 2010.

Wouter van Vugt, Code Counsel

Ted Pattison, Ted Pattison Group

This article was updated by Microsoft with permission from the original authors.

Applies to: Visual Studio 2010 Tools for Office, 2007 Microsoft Office system, Microsoft Office 2010, Visual Studio 2010.

Download: http://code.msdn.microsoft.com/VSTO2010MSI

Contents

Overview
Deployment Methods
Deploying Office solutions that target the Visual Studio 2010 Tools for Office runtime
Download Samples Provided with this Article
Creating a Basic Installer
Conclusion
Additional Resources
About the Authors

编辑

您也可以查看此链接以获取所有用户的部署方法。


0
从概念上讲,你需要专注于创建一个COM对象,即使应用程序(这里是MS Excel)在资源管理器中没有打开也能够运行。
更多信息可以在以下链接中找到:

http://www.codeproject.com/Articles/7859/Building-COM-Objects-in-C

(附注:链接是针对C#而不是C)
接下来,您应该为用户提供一个.exe文件,其中包含创建COM对象的代码。

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接