Creating a Setup Package Using the Packaging Wizard

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

The Packaging Wizard makes it easy for you to build and deploy setup programs for your Microsoft® Office XP Developer applications. The wizard guides you through the steps of creating a setup program that contains all of the information required for installation.

**Note **  The Packaging Wizard targets applications that create redistributable applications. Because Microsoft® FrontPage® and Microsoft® Outlook® only support projects that are based on user profiles, the Packaging Wizard cannot package applications using these products. However, you can package stand-alone projects, such as Add-in projects, created in the Microsoft® Visual Basic® for Applications (VBA) environment from within these applications.

You can create multiple packages for an application to facilitate the packaging of your application in multiple ways, for example, different packages can be used for each language you deploy your application in.

Note   If your application is a template or application-specific add-in, creating a setup package with the Packaging Wizard might not be your best option because the wizard does not provide a way to install the template or add-in to the special folders reserved for these on the user's computer.

To create a setup package

  1. Open the Visual Basic Editor (Alt+F11) from the Office application in which you created the application.

  2. From the Add-Ins menu, click Packaging Wizard.

    Note   If the Packaging Wizard is not listed on the Add-Ins menu, you must load it using the Add-In Manager, located in the Add-Ins menu.

  3. On the Identify Application and Package screen select the package you would like to build for the selected main file. For details, see Identifying Application and Setup Package Information.

  4. On the Application Information screen, enter the appropriate information about your application. In the Setup Language field, select the language you want the Setup program to use.

  5. On the Dependencies screen, verify that all required files to be included in the package are selected. Add any additional files you want in your package. For details, see Including Dependency Files in Setup Packages.

  6. The next few screens that appear depend on the type of application you are packaging. Provide application-specific information in the wizard screens. For details about specific applications, see:

  7. On the Modify Installation Locations screen, click Next to select the default installation locations or change the locations. For details, see Changing Default Installation Locations for Setup Packages.

  8. On the Define Start Menu Shortcuts screen, click Next to accept the default shortcut. For details about customizing your Start menu shortcuts, see Defining Start Menu Shortcuts.

  9. On the Run On Complete screen, select the Run this command when installation is finished check box to have a file launched when setup is complete. Select or enter the file name (or any command that can be run from the Run dialog box on the Start menu) in the field.

    Note   The file you choose to run on complete must be added to the package if it will not be on the user's computer.

  10. On the Build the Application Package screen, select the Build the setup program option to create the package now, or select the Save the package script without building option to save the package definition for building later.

  11. Click Finish to close the Packaging Wizard. The wizard will begin packaging your application.

  12. In the Browse For Folder dialog box, select a folder where you want to save your packaged application.

    Note   To save to a network location, you can copy and paste the network path into the folder field.

  13. If your package contains the Access Runtime components, you will be prompted to save the Access Runtime files to a local folder and to insert the Microsoft Office CD (not the Office Developer CD). For details, see Locating Access Runtime Files.

When the Packing Wizard finishes creating your package, you can find the Setup program in the folder you selected in the last step of the wizard. You can then test your Setup program.

To create the package again, open the Packaging Wizard, select the main file for the application, and then select the package you want to create. If you do not want to change any of the settings, click Finish to create the package.

To modify your package, open the Packaging Wizard, select the main file for the application, and then select the package you want to modify. Continue through the wizard, making any changes you want. When the changes are made, click Finish to create the package with the new settings. Note that the Packaging Wizard saves the package settings.

See Also

The Packaging Process | Deploying Your Application | Packaging Wizard | Deploying Office Templates and Application-Specific Add-ins | Deploying COM Add-ins | Deploying Microsoft Access Applications using the Access Runtime | Deploying Outlook and FrontPage Applications | Testing Your Setup Package | Localizing Your Application