Click Here!
home account info subscribe login search My ITKnowledge FAQ/help site map contact us


 
Brief Full
 Advanced
      Search
 Search Tips
To access the contents, click the chapter and section titles.

Visual Basic 6 Black Book
(Publisher: The Coriolis Group)
Author(s): Steven Holzner
ISBN: 1576102831
Publication Date: 08/01/98

Bookmark It

Search this book:
 
Previous Table of Contents Next


Chapter 30
Deploying Your Program: Creating Setup Programs, Help Files, And Online Registration

If you need an immediate solution to:
Creating Your Application’s EXE File
Using The Package And Deployment Wizard
Step 1: Package Type
Step 2: Build Folder
Step 3: Files
Step 4: Distribution Type
Step 5: Installation Title
Step 6: Icons
Step 7: Install Locations
Step 8: Shared Files
Step 9: Finished!
Creating Help Files With The Microsoft Help Workshop
Creating A Help Project’s RTF File
Entering Text In A Help File
Creating A Help Hotspot
Creating A Help Hotspot Target
Titling A Help Page
Adding Help Topics To The Help Index
Creating Help Pop-Up Links
Creating Help “Tool Tips” Targets
Compiling Help Files With The Help Workshop
Displaying A Help File From Visual Basic
Building Online Help Into Your Application
Creating Online User Registration
Uploading Online Registration Information To An FTP Server
Concluding The FTP Transfer Of The Online Registration Information

In Depth

You’ve created your application, and it’s a doozy. It runs fine—on your computer. But what’s next? How do you get your application out the door and onto other people’s computers?

That’s what this chapter is all about. Here, we’re going to reap the benefits of all our work by deploying applications to users. We’ll see how to create setup programs, Help files, and even online registration.

Application deployment is a topic many books skip, but it’s of vital interest to many programmers. After all, the EXE files you create might run fine on your computer, which has a full installation of Visual Basic on it, but what about other computers? You can’t just copy the EXE files to another computer and expect them to run: Visual Basic applications require a great deal of support in terms of dynamic link libraries and possibly other components like ActiveX controls you may have used. How do you install all that? We’ll see how that works in this chapter.

Setup Programs

You use setup programs to install your application on other computers, and Visual Basic has a good tool that will help us here: the Package And Deployment Wizard. Using this wizard, you can create setup files that you can distribute on CDs, multiple disks, or even across the Internet.


TIP:  It’s important to make sure that you don’t distribute licensed material or components without permission, of course. Check with the manufacturer of the DLL or OCX files you want to distribute first, making sure its policy allows distribution.

In this chapter, we’ll see how easy it is to create setup programs with the Package And Deployment Wizard. Once you’ve created your application’s EXE file, you’re all set—the Package And Deployment Wizard will analyze what files your application needs and include them in the data file for your setup program. The data itself is stored in a cabinet file, with the extension .cab, and the setup.exe program will unpack and deploy the contents of that file as needed.

Help Files

Help files are an asset to any application, and just about all serious applications come with a Help system of some sort. In this chapter, we’ll see how to create Windows Help files of the kind you can display on the user’s computer with standard Windows calls.

To create a Windows Help file, you use the Windows Help Workshop, which creates a Help project. You place the actual Help text in a rich text (RTF) file, and add that file to the Help project. Why rich text? The Help Workshop uses RTF files so that you can embed jumps, called hotspots, that work like hyperlinks, and commands directly into your Help file, encoding those items with rich text footnotes, hidden text, and so forth. We’ll see how this works in this chapter. When you’re done with your RTF file, you use the Help Workshop to compile it into an HLP file.

Now that you have an HLP file, how do you open it from Visual Basic? Here, we’ll use the Windows API WinHelp function, which allows you a great deal of flexibility when opening Help files. You can even make the Package And Deployment Wizard include your Help files and data files in the setup program, as we’ll see in this chapter.

Online Registration

Keeping in touch with an application’s users is important for many programmers, which is why online registration has become so popular. Using online registration, the user has only to select a menu item to register the application with you.

In this chapter, we’ll use the FTP protocol to let users connect and register their applications in a few easy steps. Using FTP is probably the most common method for handling online registration and provides us with a better and more robust alternative to using another alternative, email, because the Visual Basic email support relies on the Microsoft MAPI system, which the user may not have enabled.

When users decide to register online, the program will display an information dialog box, asking them to enter their name and email address. When they click a button labeled Register, the program will establish an FTP connection to your server (connecting to the Internet, if necessary, first) and upload the information the users provided, along with the date and time. In this way, you can keep track of your application’s users.


Previous Table of Contents Next


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.