Microsoft Office 2000 Developer |
Packaging is the act of creating a package that can install your solution onto the user's computer. A package consists of one or more .cab files that contain your compressed project files and any other files the user needs to install in order to run your solution. These files may include setup programs, secondary .cab files, or other needed files.
You can freely distribute any redistributable solution or component that you create with Microsoft Office. Note that because FrontPage and Outlook only support projects that are based on user profiles, the Package and Deployment Wizard cannot package or deploy solutions using these products. You can, however, package and deploy any stand-alone project, such as Add-in projects, created in the Visual Basic for Applications (VBA) environment regardless of the application used.
In addition to document, spreadsheet, workbook, or other Office files, your solution might require other files you've created, such as DLLs, ActiveX® controls (.ocx files), or bitmaps (.bmp files). You can also include the Microsoft Access Run-Time and Graph9.exe with your packaged solution if needed. The Package and Deployment Wizard makes it easy to package and distribute all of these files. For more information about the Access Run-Time, see Targeting the Access Run-Time.
Note You may also be able to distribute other ActiveX controls, .exe files, and DLLs that you have purchased. Consult the manufacturer's license agreement for each of the files you plan to distribute to determine whether or not you have the right to distribute the file with your solution.
You can also use the packaging portion of the Package and Deployment Wizard to create dependency files. Dependency files list the run-time components that must be distributed with your solution's project files.
For More Information For a more detailed explanation of standard packages and their contents, see Standard Packages in the "Distributing Your Applications" chapter of the Visual Basic Programmer's Guide. See Dependency Files in the "Distributing Your Applications" chapter of the Visual Basic Programmer's Guide for an explanation of the contents of a dependency file. For more information about deploying Office solutions, see Chapter 2, "Designing and Deploying Office Solutions" in the Microsoft Office 2000/Visual Basic Programmer's Guide.
These are the steps in the packaging process:
To package your solution
Tip If you have not previously run the Package and Deployment Wizard, you may need to access the Add-Ins Manager to make it appear on the Add-Ins menu. Start the Add-Ins Manager, then select the Package and Deployment Wizard, and select the Loaded\Unloaded option. For more information, see Accessing Office 2000 Developer Tools.
Continue through the wizard until you have set the necessary options for your file, then click Finish.
Note If you are packaging a project from a third-party vendor, you may need to manually search for dependency files.
For More Information For a full list of common run-time, setup, and dependency files, see Files You Need to Distribute in the "Distributing Your Applications" chapter of the Visual Basic Programmer's Guide. See Creating Dependency Files later in this section for more information on creating a .dep file.