• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1170
  • Last Modified:

VSTO Merge Module

Hi.  I need to include installation of a VSTO-based Excel add-in, created in Microsoft Visual Studio 2008, into our existing installer.  A merge module seems to be the easiest option.  Is there a way to create a merge module for a VSTO add-in?  Alternatively, are there other ways to include installation of this add-in?  Thank you.
0
deatc
Asked:
deatc
  • 3
  • 2
1 Solution
 
xenacodeCommented:
Yes you can using an ordinary VS merge module project however there are differences depending on whether it is for Office 2003 or 2007. Which one are you deploying to?

Pete
Xenacode Ltd
0
 
xenacodeCommented:
...and are you deploying to all users via an administrator install or just the logged in user?

Pete
0
 
deatcAuthor Commented:
Thank you for your response, Pete.  I need to distribute both an Excel 2003 add-in and an Excel 2007 add-in, presumably in separate merge modules.  Also, I require that the user who runs the installer have administrative privileges.  Thank you.
0
 
xenacodeCommented:
If this is to install only for the current user and that user has admin privilages then your job is relatively easy.

For Office 2007, put the required assemblies, application manifest and VSTO deployment manifest (.VSTO) files in the merge module and add the registry entries described in this article:

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

Office 2007 uses ClickOnce for deployment so what you are doing is deploying all the required files to the install folder then using that as the ClickOnce folder. When the Office app runs, it reads a registry entry that points to your .VSTO file containing all the information it needs to perform a ClickOnce deployment. The assemblies will then be copied to a cache in the user profile.

For Office 2003, there is no .VSTO file and the above link tells you what registry entries you need.

Pete
Xenacode Ltd
0
 
deatcAuthor Commented:
Thanks, Pete!
0

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now