Document revision date: 30 March 2001
[Compaq] [Go to the documentation home page] [How to order documentation] [Help on this site] [How to contact us]
[OpenVMS documentation]

POLYCENTER Software Installation Utility Developer's Guide


Previous Contents Index

2.6.2 Managed Object Conflict

Occasionally, your product will supply a managed object that conflicts with another managed object. For example, if you supply a file called FOO.TXT and a file by that name was also provided (in the same directory) by another product, a conflict occurs. The existing file will be overwritten under the following circumstances:

However, if the file is a managed object identified in the product database, and is owned by some other product, it might not be appropriate to replace it.

The following two types of managed object conflict can occur:

When the utility detects conflict, it displays an informational message. The following statements detect managed object conflict and display informational messages:

2.6.3 Preventing Managed Object Conflict

In some cases, the POLYCENTER Software Installation utility allows you to anticipate and resolve conflict before it occurs. The following statements provide some level of conflict resolution:

Managed object conflict is resolved differently depending on what type of object is involved. The description of these statements in Chapter 7 indicates how each one resolves managed object conflict.

For example, some statements provide a generation option that lets you assign a generation number to an object. During installation, if the utility attempts to create an object that already exists, it compares the generation numbers of the objects, selecting the object with the highest generation number.

When two or more products provide the same file or module, the one with the highest generation number must implement a superset of the capabilities found in the objects having lower generation numbers. This is required so that all products installed that use this object will continue to function properly.

When one of these products is removed, the POLYCENTER Software Installation utility retains the object with the highest generation number and reassigns the ownership of the object to the product remaining on the system.

Thus, when products update one or more objects in common (indirectly modify each other), removal of one product might result in not restoring the other product to its former state. This is because the objects with the highest generation numbers are left on the system.

For example, the product description files for products TEST1 and TEST2 are as follows:


product CPQ AXPVMS TEST1 V1.0 full; 
    file [SYSEXE]TEST.EXE generation 100; 
end product; 
 
product CPQ AXPVMS TEST2 V1.0 full; 
    file [SYSEXE]TEST.EXE generation 200; 
end product; 

If you first install product TEST1 and then install TEST2, file TEST.EXE with generation number 200 will supersede the previously installed file TEST.EXE with generation number 100. However, if you subsequently remove product TEST2, the utility will retain generation 200 of file TEST.EXE and list product TEST1 as its owner. It is assumed that the file having the higher generation number is a functional superset of the file with the lower generation number and thus product TEST1 will continue to work properly. To restore product TEST1 to its original state, you will need to re-install it. This will remove all files installed associated with the product and replace them with files from the kit.

2.6.4 Managed Object Replacement and Merging

As described in Section 2.6.2, managed objects occasionally have characteristics that conflict with each other. The POLYCENTER Software Installation utility handles this situation differently depending on the kit type:

If you want to provide new characteristics for a managed object in a partial, patch, or mandatory update kit, use the remove statement to delete the existing object and then respecify the object with the desired characteristics.

For more information about kit types, see Table 2-2.

2.6.5 Managed Object Scope and Lifetime

The scope of a managed object defines the degree of sharing that the managed object permits. For example, some objects are available only to certain processes, and some can be shared by all processes. The utility usually ensures that managed objects have the correct scope.

Occasionally, you might need to use the scope statement to give a managed object a scope other than its default. For more information about specifying the scope of a managed object, refer to the description of the scope statement in Chapter 7.

2.7 Creating a Platform (Product Suite)

In addition to packaging individual products, the POLYCENTER Software Installation utility gives you the means to assemble integrated platforms. An integrated platform is a combination of several products, such as a suite of complementary management products that you might bundle together.

Functionally, a platform is the same as a full kit, except that it has the designation "PLATFORM." A platform is intended to reference other products, but it can also supply files.

Figure 2-2 shows an example of an integrated platform.

Figure 2-2 Integrated Platform Example


To package a platform, you create a platform PDF and platform PTF. In addition to other statements, the platform PDF contains software statements that specify the products that make up the platform. The individual products have their own PDFs and PTFs (independent of the platform PDF and PTF). For more information about platform PDFs, see Section 3.5.3.


Chapter 3
Creating the Product Description File

The product description file (PDF) is a required component of any software product kit that you create using the POLYCENTER Software Installation utility. The PDF does the following:

3.1 General Guidelines

The POLYCENTER Software Installation utility is intended to simplify the job of system managers, making products quick and easy to install and manage. Use the following guidelines when writing PDFs:

3.2 Defining Your Environment

To define the environment for your product, use the following checklist. (Chapter 7 of this guide describes each PDL statement.)

3.3 PDF File Naming Conventions

You supply the PDF as input to the PRODUCT PACKAGE command. The PDF can have any valid OpenVMS file name and file type. Compaq recommends that you give the input PDF file the extension .PCSI$DESC. For example:


TEST.PCSI$DESC 

When you execute the PRODUCT PACKAGE command, it creates an output PDF. (See Section 2.3.8 for the distinction between input and output files.)

The output PDF file format is the same as the input PDF; that is, a sequential file containing PDL statements. The contents of the output PDF, however, may differ slightly from that of the input PDF. For example, the POLYCENTER Software Installation utility adds the size option to every file statement and supplies the actual size of the file in disk blocks.

The name of the output PDF consists of the product's stylized file name and a file type of .PCSI$DESCRIPTION:


producer-base-product-version-kittype.PCSI$DESCRIPTION. 

For example, the output PDF for product BLACKJACK V2.1-17 might be named:


ABC_CO-AXPVMS-BLACKJACK-V0201-17-1.PCSI$DESCRIPTION 
See Section 2.3 for a description of the product naming syntax.

3.4 Structure of a PDF

A PDF is a text file that contains a sequence of PDL statements. A PDF must begin with a product statement and end with an end-product statement. The product statement uniquely identifies the product and specifies the type of kit to build (full, partial, patch, and so forth). Each file that is part of the product material must be specified with a file statement. The following example shows a complete PDF for a product that places one file named test.exe in SYS$COMMON:[SYSEXE].


product DEC axpvms test v1.0 full ; 
    file [sysexe]test.exe ; 
end product ; 

3.4.1 Overview of PDL Statements

The product description language consists of statements that are defined in Chapter 7 of this manual. As an overview, these statements are listed below in classes according to their main function.

Many software products require only the use of a small subset of these PDL statements to create their PDF. Commonly used statements are as follows:


Previous Next Contents Index

  [Go to the documentation home page] [How to order documentation] [Help on this site] [How to contact us]  
  privacy and legal statement  
5952PRO_002.HTML