ejm3

Once I build an application using VSTO and package it for distribution, what is needed to run the application on the target machine

Let me take a guess:

1. VSTO Runtime

2. Office Pro and or a standalone version of Word or Excel

3.

Thanks in advance.



Re: Visual Studio Tools for Office Distribution requirements

Cindy Meister

1. The .NET Framework version necessary to run your solutions

2. The Office PIAs for (2) in your list above. These won't install by default unless the Framework is already present on the machine. If Office is installed before the Framework, then the PIAs need to be installed explicitly, in an additional step.

3. Depending on how the user has been updating Office and in which version your VSTO solution was developed, it might be necessary to install updates and hotfixes for Office before your solution can run.

http://support.microsoft.com/kb/907417/

http://support.microsoft.com/kb/908002/en-us


http://www.microsoft.com/downloads/details.aspx familyid=1B0BFB35-C252-43CC-8A2A-6A64D6AC4670&displaylang=en






Re: Visual Studio Tools for Office Distribution requirements

Dennis Wallentin

In addition to Cindy's list You may also check out the following tool:

Microsoft Visual Studio 2005 Tools for Microsoft Office System: Microsoft PSS VSTO 2005 Client TroubleShooter
http://www.microsoft.com/downloads/details.aspx FamilyId=C9FB6A54-8069-4918-A6F9-E744928DFAC3&displaylang=en






Re: Visual Studio Tools for Office Distribution requirements

ejm3

OK - thank you VERY much.

It seems a little tricky but from reading further at least possible to cover all the target machine requirements. Can I make the assumption that if I use the latest version of VSTO and Office Pro and .NET Framework to develop that building a setup project will cover all the necessary bases - installing all the necessary components in the correct order Or do I need something like InstallShield (which I have) Or will there always be a case where it is necessary to install some support component(s) by hand





Re: Visual Studio Tools for Office Distribution requirements

Dennis Wallentin

Hi,

Deployment of VSTO solutions can be less complex but it can also turn into a "nightmare". There are two important aspects to focus on, prerequisites and security settings. If we starts with the prerequisites on the targeting machines they are as follows:

  • .NET Framework 2.0
  • Office 2003 PIA *)
  • VSTO Runtime
  • KB908002 *)
  • Latest Service Packs for the Windows version in use and as well as for Office 2003

*) If .NET Framework is installed after that Office 2003 has been installed then the targeting machines don't have the PIA installed and it also require that the KB908002 fix must be installed.

For more details and information please see:
Deploying Visual Studio 2005 Tools for Office Solutions Using Windows Installer (Part 1 of 2)
Deploying Visual Studio 2005 Tools for Office Solutions Using Windows Installer (Part 2 of 2)
Add-ins, smart document or smart tags that You create by using Microsoft Visual Studio 2005 do not run in Office
How To: Install the Visual Studio for Office Runtime
Deployment Manifests for Office Solutions

Downloads:
Microsoft .NET Framework Version 2.0 Redistributable Package (x86):
Deploying Visual Studio 2005 Tools for Office Solutions Using Windows Installer (Part 1 of 2)
Deploying Visual Studio 2005 Tools for Office Solutions Using Windows Installer (Part 2 of 2)
Add-ins, smart document or smart tags that You create by using Microsoft Visual Studio 2005 do not run in Office
How To: Install the Visual Studio for Office Runtime
Deployment Manifests for Office Solutions

Downloads:
Microsoft .NET Framework Version 2.0 Redistributable Package (x86):
http://www.microsoft.com/downloads/details.aspx FamilyID=0856eacb-4362-4b0d-8edd-aab15c5e04f5&displaylang=en
Microsoft Visual Studio 2005 Tools for Office Second Edition Runtime (VSTO 2005 SE) (x86):
http://www.microsoft.com/downloads/details.aspx FamilyID=f5539a90-dc41-4792-8ef8-f4de62ff1e81&DisplayLang=en
Office 2003 Update: Redistributable Primary Interop Assemblies:
http://www.microsoft.com/downloads/details.aspx FamilyId=3C9A983A-AC14-4125-8BA0-D36D67E0F4AD&displaylang=en

The decision You need to make is if all the prerequisites should be packed with the VSTO solution or in a separate package.

As for the security setting the assembly need to be granted full trust on the targeting machines. When You create the VSTO project on the developing machine the project is automatically granted full trust.

For more information please see the following articles:
Security Requirements to Run Office Solutions
http://msdn2.microsoft.com/en-us/library/6exya3kf(VS.80).aspx
How to: Grant Permissions to Folders and Assemblies
http://msdn2.microsoft.com/en-us/library/zdc263t0(VS.80).aspx

Good luck!