Customizing Office Solution Installation (2007 System)

Applies to

The information in this topic applies only to the specified Visual Studio Tools for Office projects and versions of Microsoft Office.

Project type

  • Document-level projects

  • Application-level projects

Microsoft Office version

  • 2007 Microsoft Office system

For more information, see Features Available by Application and Project Type.

If you create a custom Setup program for your Office solution, instead of using the default one that is created by Visual Studio Tools for Office, you can install the solution without opening a Microsoft Office application. Call the Visual Studio Tools for Office installer tool (VSTOInstaller.exe) as part of the process. By default, the tool is installed in the following location:

%commonprogramfiles%\microsoft shared\VSTO\9.0\VSTOInstaller.exe

Parameters for VSTOInstaller.exe

The following table explains the parameters that are available.

Parameter

Definition

/Install or /I

Install the solution. This option must be followed by the path of a deployment manifest. The path can be on the local computer, a UNC file share, or an HTTP/HTTPS Web site. The path can be local (c:\foldername\publishfolder), relative (publish\), or a fully qualified location (\\servername\foldername or https://servername/foldername).

/Uninstall or /U

Uninstall the solution. This option must be followed by the path of a deployment manifest. The path can be on the local computer, a UNC file share, or an HTTP/HTTPS Web site. The path can be local (c:\foldername\publishfolder), relative (publish\), or a fully qualified location (\\servername\foldername or https://servername/foldername).

/Silent or /S

Install or uninstall without prompting for input or displaying any messages. If a trust prompt is required, the customization is not installed or updated.

/Help or /?

Display the help information.

For an explanation of the error codes that are returned by VSTOInstaller.exe, see VSTOInstaller Error Codes (2007 System).

See Also

Tasks

How to: Install a ClickOnce Office Solution (2007 System)

Concepts

Deployment Overview (2007 System)

Publishing Office Solutions (2007 System)

Reference

VSTOInstaller Error Codes (2007 System)