简体   繁体   中英

How to install/deploy VSTO Excel 2010 Addin developed in C#.net?

I have developed an excel addin using VSTO in C#.net .Now i want to deploy this addin in other machines too .So that users who installed this can see my addin in excel menu -> Addins-> MyAddin

Alternatively can i give them just Excel with myaddin.So that whoever has this Excel can access addin and use it.This way they don't see myaddin in every excel file addins menu.

You can use a Visual Studio 2010 setup project to create a Windows Installer package. See this MSDN Link

Quote from that Link

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 

EDIT

You may also see this link for All Users.

Conceptually, all you need to concentrate on is get yourself a COM object created which must be running even when the application (MS Excel here) is not open in the explorer.

More can be figured out from the following link :

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

(PS : link is for c# not c).

Next you should give your users a .exe file including code to create the COM object.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM