Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

VSTO 2010 Office 2010 Word Add-in Deployment

Posted on 2012-03-12
6
Medium Priority
?
943 Views
Last Modified: 2012-04-01
Well the title pretty much tells the tale.  I have a VSTO 2010 Office 2010 Word Add-in and I need to build a deployment (not ClickOnce).

So far I have found one example that was different/ambiguous enough that my duplicating the steps failed.

I really need one or more good end to end tutorials and / or examples doing this.

Also please note that my target machine is running 64 bit Windows 7 and 32 bit Office 2010 Professional Plus.
0
Comment
Question by:Howard Bash
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 6

Accepted Solution

by:
xenacode earned 2000 total points
ID: 37713822
This article covers it pretty well:

http://msdn.microsoft.com/en-us/library/ff937654.aspx

There's another good article by Misha Shneerson if you want to deploy to all users:

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

I would recommend moving to a ClickOnce solution if you can - long term it will probably make things easier. ClickOnce is less than perfect but gets better with every release of .NET and Windows.


Pete
Xenacode Ltd
0
 
LVL 1

Author Comment

by:Howard Bash
ID: 37714780
I have seen the first link at that one was for deploying an excel addin and it did not call out the prerequisites and tests for them that I would need.  I tried building for a word add in using this but it failed.  

I quess part of the problem is not knowing which group of assemblies are required and the particular pneumnonics that are used.  For example in this link we have VSTORUNTIMEREDIST, OfficeRuntime, HASSHAREDPIA and [TARGETDIR].

Where are these defined?   These magic strings are needed but where does one discover that other than hours of googling?
0
 
LVL 6

Expert Comment

by:xenacode
ID: 37715899
I'm not sure I understand you. If you are using a VS setup project, you can select pre-requisites from a list - you'll need VSTO and .NET and, if you aren't embedding interop types, then Office PIA as well.

What happened when you tried to build a Word add-in - you say "it failed" but don't give details.
0
Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

 
LVL 1

Author Comment

by:Howard Bash
ID: 37718241
In the example in the first URL,  there are values that need to be placed into several property pages in building the setup:

VSTORUNTIMEREDIST
OfficeRuntime
HASSHAREDPIA
[TARGETDIR]

Are these Windows Installer settings and is there some document that talks about such macros and the like?

As to how did it fail.  I will see if I can get you a screen shot.  Also, the addin does not want to be removed.  I have done control panel add/remove program as well as running setup to remove and even the uninstall in the IDE.   I run word and it appears to be gone (I also remove it there).   If I then run the Addin Project,  the addin reappears in all loads of word and again,  I can delete it.  

Note.  I am not running setup (at least that I am aware of...)  and causing the addin to be added again to word.
0
 
LVL 6

Expert Comment

by:xenacode
ID: 37718913
Yes, they are codes that are understood by Windows Installer and I'm sure you can find a detailed explanation somewhere in Windows Installer documentation rather than VSTO documentation. The purpose of adding these is so your bootstrapper prevents installation if the pre-requisites are missing. This should just work as described in the article.

Bear in mind that the recommended method of installation for VSTO addins is ClickOnce and the complicated method described in this article is only to be used where ClickOnce is not possible e.g. where an add-in must be installed for all users or must run custom actions on installation. Are you certain you can't use ClickOnce?

Pete
0
 
LVL 1

Author Comment

by:Howard Bash
ID: 37724730
The problem with clickonce for me is that it usually required some network share or URL and I need to be able to install in connected as well as unconnected modes.

Why does it need to locations to build this setup?  I mean it's nice to have some FTP like capability to move files/folders however I don't need that baked into an IDE.  

Can I make an addin click once setup only need one (or two if you must)  of either local drives or network drive folders?  It really seems that these entries want IIS involved in this.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
Learn how to create and modify your own paragraph styles in Microsoft Word. This can be helpful when wanting to make consistently referenced styles throughout a document or template.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

722 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question