Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2005
Visual Studio
 Setup Projects for Application-Leve...
This page is specific to
Microsoft Visual Studio 2005/.NET Framework 2.0

Other versions are also available for the following:
Visual Studio Tools for the Microsoft Office System
Setup Projects for Application-Level Add-ins

When you create an application-level add-in project by using Visual Studio Tools for Office, a Setup project is automatically added to the solution. The Setup project for add-ins generates a Microsoft Windows Installer (.msi) file that configures the target computer and installs the add-in. For more information about Setup projects, see Setup and Deployment Projects.

Setup Project Overview

By default, when you build the Setup project, Visual Studio creates a Windows Installer file that performs the following steps:

  1. Verifies that the .NET Framework 2.0 is installed on the client computer.

    NoteNote

    By default, the Setup project does not check for other prerequisites, including the Visual Studio Tools for Office runtime and the primary interop assembly (PIA) for the Microsoft Office application. For more information about the prerequisites, see How to: Prepare End User Computers to Run Office Solutions.

    NoteNote

    By default, the Setup program will not run if the .NET Framework 2.0 is not installed, even if a later or earlier version of the Framework is installed. The installer will not run because the AllowLaterVersions launch condition property for the .NET Framework in the Setup project is set to false. For more information about launch conditions in Setup projects, see Launch Conditions Editor and Properties for the Launch Conditions Editor.

  2. Creates the required registry keys on the client computer. For more information about these registry keys, see Deploying Application-Level Add-ins.

  3. Copies the files generated by the build process, including the add-in assembly and the application manifest, to a user-specified directory on the target computer.

The add-in assembly and any referenced assemblies must also be granted full trust in the security policy of each end user. The Setup project does not set the security policy by default. You can add a step to the Setup project to configure the security policy, or the appropriate security policy can be set by an administrator. For more information, see Security Requirements to Run Office Solutions.

NoteNote

For articles that describe how to modify the Setup project to set the security policy and install prerequisites, see "Deploying Visual Studio 2005 Tools for Office Solutions Using Windows Installer (Part 1 of 2)" (http://go.microsoft.com/fwlink/?linkid=57779) and "Deploying Visual Studio 2005 Tools for Office Solutions Using Windows Installer: Walkthroughs (Part 2 of 2)" (http://go.microsoft.com/fwlink/?linkid=57780).

Changing Default Registry Keys for Microsoft Office 2003 Add-ins on Windows Vista

If you use the Setup project to deploy a Microsoft Office 2003 add-in to a computer that is running Windows Vista, you must change some of the registry keys in the Setup project in the following scenarios:

  • The user is running the Microsoft Office application with a full administrator access token.

    - or -

  • The user has turned off User Account Control (UAC).

For more information, see Deploying Application-Level Add-ins.

To modify the registry keys in the Setup project

  1. Open the add-in project in Visual Studio.

  2. In Solution Explorer, right-click the Setup project, point to View, and then click Registry.

    The Registry Editor opens.

  3. In the navigation pane, expand the HKEY_CURRENT_USER and HKEY_LOCAL_MACHINE nodes.

  4. Under HKEY_CURRENT_USER, expand the Software node.

  5. Drag the Classes node from the Software node under HKEY_CURRENT_USER to the Software node under HKEY_LOCAL_MACHINE.

    NoteNote

    Do not move the registry keys that are under HKEY_CURRENT_USER\Software\Microsoft in these scenarios.

See Also

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker