Visual Basic Concepts

Modifying the Setup Project

You can modify the Setup1.vbp project if you want to add new screens, prompts, or events to the installation sequence created by the Package and Deployment Wizard. You write code in the setup program just as you would in any other Visual Basic program. A number of function calls are available that are especially useful in setup routines.

Some examples of situations in which you might modify the Setup Toolkit project include:

Important   Because the Package and Deployment Wizard uses the files in the Setup Toolkit project, you should always make a backup of the project before making any changes. In addition, you should back up the full contents of the Setup1 directory.

To modify the Setup Toolkit project

  1. Create a backup of \Wizards\PDWizard\setup1.exe and all contents of the \Wizards\PDWizard\Setup1 directory before making any changes.

  2. Open the setup1.vbp project from the \Wizards\PDWizard\Setup1 directory.

  3. Make any changes to the code, forms, or modules in this project.

  4. Save the project and compile it to create setup1.exe.

  5. If you are using the Package and Deployment Wizard to package your application, launch the Package and Deployment Wizard and create a package for your application.

  6. If you are creating your own custom setup package, continue through the steps outlined in "The Setup Toolkit."

    Important   Any time you create a package, using either the Package and Deployment Wizard or the Setup Toolkit project, you should be sure that the version numbers for your project have been set on the Make tab of the Project Properties dialog box in Visual Basic. This is especially important if you are distributing a new version of an existing application — without the appropriate change in version numbers, the end user's computer may determine that critical files do not need to be updated.