Deploying Office 2003 Solutions with Windows Installer (Mary Lee)
You may want to develop Microsoft Office 2003 solutions with Visual Studio Tools for Office (VSTO) in Visual Studio 2008 SP1 for several reasons.
- Your customers are using Microsoft Office 2003.
- Your customers are using both Microsoft Office 2003 and the 2007 Microsoft Office system.
- Your customers are using .NET Framework 2.0 and cannot migrate to .NET Framework 3.5.
On
- Check for and install the following prerequisites: .NET FX 2.0, VSTO 2005 SE runtime, and the Microsoft Office primary interop assemblies. If your client computers already have the prerequisites, or you want to do this manually, you can skip this step.
- Copy the customization assembly to the end user computer.
- Grant full trust to the customization assembly.
- For application-level add-ins on
ly, create a set of registry keys so that the Office application knows to load the add-in.
Due to customer demand, I’ve created five deployment samples that demonstrate these steps. Step 1 is demonstrated in two ways: you can select your prerequisites through the Prerequisites Dialog Box to be installed with the Setup.exe bootstrapper; alternatively, you can configure launch conditions in the Setup project to on
Prerequisites Dialog Box:
Launch Conditions editor:
You can use the Setup project to complete step 2 by copying the customization assembly and for document-level projects, the document or workbook, to the designated installation location. This is done by adding the project output with the File System Editor. The default installation location in these Setup projects is %PROGRAMFILES%MyCompany<Name of Setup Project>.
File System Editor:
Full trust is granted by using the SetSecurity project for step 3. This co
Custom Actions Editor:
Step 4 on
Registry Editor:
The process of preparing the development computer for deployment and configuring the Setup project is written out step-by-step in the following two whitepapers:
Now, it’s time to experiment on your own. Download the sample co
Happy deployment!
Mary Lee, Programming Writer.