|
|
|
![]() | |
|
|
|
To access the contents, click the chapter and section titles.
Visual Basic 6 Black Book
Step 2: Build FolderIn Step 2 of the Package And Deployment Wizard, you select the folder in which your deployment package will be created. By default, this folder is named Package and Package And Deployment is added to your Visual Basic projects folder. For example, in the alarm project, which is in the C:\vbbb\alarm folder, the deployment package will be created in the folder C:\vbbb\alarm\Package. If you want to build the deployment package in another folder, select that folder now. When youre ready, click the Next button to move on to the next step in the Package And Deployment Wizard. Step 3: FilesIn Step 3 of the Package And Deployment Wizard, you can select what files will be included for distribution. This includes your applications executable file and all the needed support filesthe Package And Deployment Wizard determines what support files your application needs and adds them automatically. The Package And Deployment Wizard presents a list of files it will include in your deployment package in this step, and you can deselect ones you dont want to include. You can also include additional files in your deployment package, such as Help or application-specific data files, by clicking the Add button and specifying those files.
When youre ready, click the Next button to move on to the next step in the Package And Deployment Wizard. Step 4: Distribution TypeIn Step 4 of the Package And Deployment Wizard, you specify how you want to distribute your applicationas one single cabinet (.cab) file, or over multiple disksas shown in Figure 30.2. If you select deployment with multiple disks, you can specify the capacity of each disk, from 360K to 2.88MB, and the Package And Deployment Wizard will create a CAB file for each disk and let you know how many disks you need. Here, well select the single cab option for the alarm clock application were working with.
When youre ready, click the Next button to move on to the next step in the Package And Deployment Wizard. Step 5: Installation TitleIn Step 5 of the Package And Deployment Wizard, you enter the installation title for your application, as shown in Figure 30.3. This title will appear on the setup programs wash screen (which covers the whole screen) when the user installs the application.
Here, well use the title Alarm, as shown in Figure 30.3, while creating the deployment package for our alarm clock application, but you may also want to include your companys name in the title, if applicable. When youre ready, click the Next button to move on to the next step in the Package And Deployment Wizard. Step 6: IconsIn Step 6 of the Package And Deployment Wizard, you indicate what new program group(s) you want to add to Windows and the icons to use. In this case, where were building a deployment package for our alarm application, were only going to add one program group, Alarm, and use the icon from the alarm.exe file, as shown in Figure 30.4 (these are the defaults the Package And Deployment Wizard has selected for us).
When youre ready, click the Next button to move on to the next step in the Package And Deployment Wizard. Step 7: Install LocationsIn Step 7 of the Package And Deployment Wizard, you indicate where you want the parts of your application installed on the target computer. By default, your application is placed into the directory the user specifies, which is represented in the Package And Deployment Wizard with the macro $(AppPath), and the other files, like DLL files, are installed where your application expects to find them (such as the windows\system directory). You can change the default installation location of your applications files in this step; for example, if you want your Help files to go into the installation folders Help subfolder, specify that they should be installed in the $(AppPath)\Help folder. When youre ready, click the Next button to move on to the next step in the Package And Deployment Wizard. Step 8: Shared FilesIn Step 8 of the Package And Deployment Wizard, you can indicate which files you want to register as shared files. These files may be used by several applications in the target computer and will be uninstalled only if all applications that use them are uninstalled. If in doubt, its better to register files as sharedespecially common DLLs and OCXs. (And if really in doubt, dont forget to test your applications setup program.) When youre ready, click the Next button to move on to the next step in the Package And Deployment Wizard. Step 9: Finished!Step 9 in the Package And Deployment Wizard is the last step in creating your applications deployment package. Just click the Finish button to create the CAB file(s), the setup.exe program itself, and the setup.lst file, which holds a list of the files to install and where they go (setup.exe reads setup.lst to know what to install where). When you click Finish, the Package And Deployment Wizard also displays a packaging report indicating that the alarm.cab file has been created (click Close to close the packaging report dialog box and click Close again to close the Package And Deployment Wizard). And thats all it takesnow the user can run the setup.exe program to install your application, as shown in Figure 30.5. When the setup program runs, it handles all the details of checking for adequate disk space, asking the user where to install the application, and installs the necessary files for you, using the CAB file and the setup.lst file. Its that simple.
Youve completed the process: using the Package And Deployment Wizard, you can now create setup programs to distribute your application.
|
|
Products | Contact Us | About Us | Privacy | Ad Info | Home
Use of this site is subject to certain Terms & Conditions, Copyright © 1996-2000 EarthWeb Inc. All rights reserved. Reproduction whole or in part in any form or medium without express written permission of EarthWeb is prohibited. |