HP OpenVMS Systems Documentation |
Common Desktop Environment: Help System Author's and Programmer's Guide 13 Preparing an Installation PackageContents of Chapter: This chapter identifies the help files that are included in an application installation package. It also describes how help files are handled when your application is registered on the desktop. OverviewWhen it comes time to prepare your final product, you must be sure that all your help files are created and installed properly. Your product package includes both the run-time help file (volume.sdl) and its graphic files. Additionally, you can provide a help family file that enables your volume to be viewed using the Front Panel Help Viewer.Delivering Online HelpOnline help can be fully integrated into an application or provided as a standalone help volume. Fully integrated help allows a user to directly access help information from an application by using a Help menu or Help key. A standalone volume on the other hand, can only be displayed using the desktop Help Viewer.A system administrator may choose to add a standalone help volume to the desktop when an application does not provide integrated help or a customized environment provides a supplemental help volume. See "Standalone Help." for instructions to install a standalone volume on the desktop. Creating an Installation PackageYour installation package should include these help files:
If your application's help volume includes execution links, it is recommended that the author define execution aliases in an application defaults file. This takes advantage of the Help System's default execution policy which will automatically execute links with execution aliases. However, if the help volume is viewed as an independent volume using a separate information viewer, such as the Help Viewer, the Help System will display a confirmation dialog box when an execution link is selected.
Figure 13-1 shows a typical installation package for an application and its help files. Help files are grouped in a separate Figure 13-1 Application installation package
If your application provides online help in multiple languages, you should create a language subdirectory to accommodate each language (where language matches the user's Run-Time Help FileHelpTag creates a single run-time help file, volume.sdl. The base name, volume, is the same as the base name of your volume.htg file. The Help Viewer uses information stored in this master help file and also accesses any associated graphic files.You don't need to ship the volume.htg or any additional files generated by the HelpTag software. Graphics FilesIf your help volume uses graphics, the image files are typically stored in a separate directory for convenience. However, you may choose to store them in the same location as your volume.htg file.A run-time help file does not include actual graphic images. Instead, it contains a "reference" to the location of each graphic file. When you run HelpTag, the dthelptag compiler incorporates the relative path names of the graphics files into the help volume.
When the help files are installed, the graphics files must be in the same relative position as when the run-time file was built. Otherwise, the help volume will be unable to locate the graphics files. For example, if your graphics files are in a subdirectory named Figure 13-2 Relationship of build directories and installation package
Help Family FileYou can optionally provide a help family file (volume.hf ). A family file briefly describes your help volume and includes copyright information. It can also be used to group one or more related volumes into a single product category. If you want your help volume to be accessible from the desktop browser volume, then you must provide a family file in your installation package. To create a family file, see "To Create a Help Family." Registering Your Application and Its HelpThe desktop's integration utility,dtappintegrate , registers your application and its help files by creating symbolic links between the installed application files and specific desktop directories. Application registration ensures that your help files are located in the directory search paths used by the Help System. Registration enables two important features of the Help System:
If you register a help family with one or more help volumes, you make your help available for general browsing from the Front Panel Help Viewer. This allows access to application-specific help without using the application. Or, if you are writing standalone help, this is the only way for users to get to your help. Standalone HelpA standalone help volume for an application or a customized environment can be created using the Help System Developer's Kit. To make the help volume accessible from in the desktop browser volume, a system administrator installs the run-time help file, associated graphics, and family file in the/etc/dt/appconfig/help/ language directory.Remember that the run-time help file and its graphics files must be installed in the same relative position as when the help volume was built. See "Graphics Files." to review the installation of graphics files. What Happens When the Application Is RegisteredApplication registration creates symbolic links from the run-time help file and family located in app_root/dt/appconfig/help / language to the /etc/dt/appconfig/help /language directory. Refer to the CDE Advanced User's and System Administrator's Guide for detailed instructions for application registration. How a Help Volume Is FoundThe Help System uses desktop search paths to locate help volumes. When help is requested within an application or a help volume is specified in a command line, the help volume is found by checking a set of search path directories. You can control the directory search path for help volumes by modifying several environment variables. Refer to the CDE Advanced User's and System Administrator's Guide for detailed information about specifying search paths.Product Preparation ChecklistsThe following checklists should help you verify that you've prepared your product correctly. Of course, there's no substitute for testing your product by using it as a user will.For Authors
For Product Integrators
For Programmers
|