Microsoft Office 2000/Visual Basic Programmer's Guide   

Building a Setup Program with the Package and Deployment Wizard

If you have Microsoft Office 2000 Developer or Visual Basic 6.0, you can use the Package and Deployment Wizard to create a setup program for your solution. You can build a setup program that's stored in a folder on a network server or published to a Web server. For more information about this wizard, see the documentation for the Package and Deployment Wizard in Office 2000 Developer.

Note   If your solution is a template or application-specific add-in, creating a setup program with the Package and Deployment Wizard may not be your best option because the wizard doesn't provide a way to install the template or add-in to the special folders reserved for these on the user's machine. For more information, see the following section, "Deploying Templates and Application-Specific Add-ins."

When you create a setup script with the Package and Deployment Wizard, you can specify where the solution should be installed on users' computers by choosing from a list of installation locations. The following table lists the installation locations from which you can select and provides an example of a path to which the solution might then be installed on a typical user's computer.

Installation location Example
$(AppPath) C:\Program Files\ApplicationName
$(ProgramFiles) C:\Program Files\ApplicationName
$(CommonFiles) C:\Program Files\Common Files
$(CommonFilesSys) C:\Program Files\Common Files\System
$(WinPath) C:\Windows
$(WinSysPath) C:\Windows\System
$(OfficeAddInPath) C:\Program Files\Microsoft Office\Office

Note   When you build a setup program with the Package and Deployment Wizard, a new folder will be created under the user's C:\Program Files folder. By default, the folder is given the name you've provided for the solution. This folder is added even if you are not installing the solution itself to the Program Files folder, and is used to store information for uninstalling the solution.