hp.com home products and services support and drivers solutions how to buy
cd-rom home
End of Jump to page title
HP OpenVMS systems
documentation

Jump to content


POLYCENTER Software Installation Utility Developer's Guide

POLYCENTER Software Installation Utility Developer's Guide


Previous Contents Index


register module

The register module statement registers in the product database one or more existing modules in a command, help, macro, object, or text library file.

Syntax

register module type type module (module_name,...)
[ [no] generation generation ]
[ library library ] ;


Parameters

type type

Indicates the library type. Table 7-9 lists the keywords you can use with this parameter.

Table 7-9 Library Types for Register Module Statement
Keyword Library Type Default Library File
Command Command definition library [SYSLIB]DCLTABLES.EXE
Help Help library [SYSHLP]HELPLIB.HLB
Macro Macro library [SYSLIB]STARLET.MLB
Object Object library [SYSLIB]STARLET.OLB
Text Text library [SYSLIB]STARLETSD.TLB

module module_name

Indicates the names of the modules contained within the library.

Options

[no] generation generation

Indicates that the module has an explicit generation number. Enter the number as an unsigned integer in the range of 0 through 4294967295. See the Description section of the module statement for the meaning of this value. By default, the module does not have an explicit generation number (no generation), which is equivalent to 0.

library library

The file specification of the library. The file you use must be a library of the type you specified with the type parameter.

Description

The register module statement registers in the product database one or more existing modules in a command, help, macro, object, or text library file. Typically, register module statements are used when a product provides a library file with a file statement that is already populated with modules. Registering these modules in the product database allows the utility to detect conflicts with other modules.

Do not use register module statements to register information about modules specified in a module statement. When a module statement is processed, module information is automatically placed in the product database. Therefore, use of register module statements in this context would be redundant.

See Also module

Examples

#1

register module type HELP 
              module (":=","=","@",ACCOUNTING,ALLOCATE,ANALYZE,APPEND,...) ; 
      

In this example, the register module statement registers several help modules in [SYSHLP]HELPLIB.HLB.

#2

register module type OBJECT generation  1 
              module (BAS$$CB,BAS$$COPY_FD,BAS$$DISPATCH_T,...) ; 
      

In this example, the register module statement registers several object modules. The generation option allows the utility to perform conflict resolution with these object modules.


remove

The remove statement deletes objects from the user's system. The remove and end remove statements form a remove group.

Note

You cannot use the remove statement in a transition PDF.

Syntax

remove ;

[ PDL-statements ]

end remove ;


Option

PDL-statements

Any product description language statement or a group of statements described in this reference section, except the product and end product statements.

Required Terminator

end remove ;


Description

The remove group is used to delete objects from the user's system. Statements that normally provide managed objects (such as file and directory statements) cause these objects to be deleted when the statements are enclosed in a remove group.

By using the remove group in a partial, patch, or mandatory update kit, you can eliminate obsolete files from a previous version of your product. By using the remove group in a full kit, you can eliminate objects provided by a previous installation mechanism (for example, VMSINSTAL). You can also use a remove group to delete objects that were created by a previous version of your product, but which were not recorded in the product database as managed objects. These include archived files (those saved as *.*_OLD) and files created by command procedures invoked through execute statements.

Statements that do not provide managed objects function normally within a remove group.

You can nest remove, end remove within scope, end scope, if necessary.


Examples

#1

remove ; 
  directory [SYSHLP.EXAMPLES.FOO] ; 
  file [SYSHLP.EXAMPLES.FOO]SMLUS.COM ; 
  file [SYSHLP.EXAMPLES.FOO]SMLUT.COM ; 
  file [SYSHLP.EXAMPLES.FOO]SMLUU.COM ; 
end remove ; 
 
      

The statements in this example remove some files and a directory (if they exist) from the product database and the running system.

#2

scope bootstrap ; 
    remove ; 
        file [SYSEXE]PROD_PROC.EXE ; 
    end remove ; 
    file [SYSEXE]PROD_PROC_V2.EXE ; 
end scope ; 
      

The statements in this example remove a file in the bootstrap scope and then provide a new file.


rights identifier

The rights identifier statement uses a command procedure to create a rights identifier.

Syntax

rights identifier name with (parameters,...) ;


Parameters

name

Indicates the name of the rights identifier. The rights identifier name is passed to the command procedure as P1.

with (parameters,...)

Indicates the list of parameters that are passed to the command procedure that creates the rights identifier. Each parameter must be a single unquoted or quoted string that specifies P2 and P3, in order. If there are no qualifiers to pass, specify a null string (" "). See the Description section for the meaning of the parameters.

Description

The rights identifier statement invokes a command procedure (SYS$UPDATE:PCSI$CREATE_RIGHTS_IDENTIFIER.COM) to create rights identifiers. This command procedure runs the AUTHORIZE utility to perform the function. The utility passes the following parameters to the command procedure:

When you remove a product that created rights identifiers, the POLYCENTER Software Installation utility uses a command procedure (SYS$UPDATE:PCSI$DELETE_RIGHTS_IDENTIFIER.COM) to delete rights identifiers associated with your product. This happens regardless of whether the SYSUAF.DAT is shared by another system disk.

Note

In a future version, the utility may create and delete these managed objects directly without the use of command procedures. If this is the case, these statements will continue to function, but the command procedures may not be maintained or shipped with future versions of the utility.

The rights identifier statement specifies a rights identifier managed object that has the following characteristics:

See Also account

Example


rights identifier PCSI_TEST 
       with ("/attributes=DYNAMIC", 
             "/value=IDENTIFIER:14600926") ; 
      

In this example, the rights identifier statement creates a rights identifier named PCSI_TEST with a value of 14600926.


scope

The scope statement establishes the scope of one or more managed objects. The scope and end scope statements form a scope group.

Syntax

scope
{ bootstrap |
global |
processor |
product } ;

[ PDL-statements ]

end scope ;


Option

PDL-statements

Any product description language statement or a group of statements described in this reference section, except the product and end product statements.

Required Terminator

end scope ;


Description

The scope statement establishes the scope of one or more managed objects. 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; whereas others are shared by all processes.

The scope and end scope statements form a scope group. The type of scope indicated in the scope statement pertains to all objects within the scope group. You can nest scope groups.

Note

In almost all cases, the POLYCENTER Software Installation utility defaults establish the correct scope for each type of managed object. Because using scope statements unnecessarily or incorrectly can cause problems, we recommend that you use explicit scope statements only when you are sure product scope is not sufficient, as explained here or stated in the description of certain PDL statements.

The different types of scope that a managed object can have are as follows:

When you update your product with a partial, patch, or mandatory update kit, you can either explicitly state the scope of the file managed objects you are updating or let the utility determine the scope of the file managed objects:

If you use the patch statement, the object you are updating must have been provided by your product. If you use the module statement, the object you are updating either must have been provided by your product or must be in global or bootstrap scope.

See Also directory
file
infer
link

Example


scope bootstrap ; 
    file [SYSEXE]SYSBOOT.EXE ; 
    file [SYSEXE]VMB.EXE ; 
    bootstrap block [SYSEXE]VMB.EXE image [SYSEXE]BOOTBLOCK.EXE ; 
end scope; 
      

The statements in this example specify that the files VMB.EXE and SYSBOOT.EXE must be placed on every bootstrap disk.


software

The software statement signals a software dependency on the specified product: the specified product must be installed prior to (or concurrently with) the installation of the product that contains the software statement. Upon successful installation, the software statement causes a permanent software reference to be recorded in the product database.

The software function tests for the presence of the specified product, including any version constraints that you may impose.

In contrast to the software statement, the software function does not create a permanent software reference to the specified product in the product database. The software function also does not cause the referenced product to be implicitly installed.

Note

Please note the distinction between the software statement and the software function. The statement and function serve different purposes and are not interchangeable. See the Description section for a full discussion of the differences.

Statement Syntax

software producer base name
[ [no] component ]
[ { version above version |
version below version |
version maximum version |
version minimum version |
version required version |
version above version version below version |
version above version version maximum version |
version minimum version version below version |
version minimum version version maximum version } ] ;


Function Syntax

< software producer base name
[ { version above version |
version below version |
version maximum version |
version minimum version |
version required version |
version above version version below version |
version above version version maximum version |
version minimum version version below version |
version minimum version version maximum version } ]
[ { installed before | installed after | kit accessible} ] >


Parameters

producer

Indicates the legal owner of the software product. This parameter must be a single quoted or unquoted string.

base

Indicates the base hardware/software system on which the product is intended to be installed. This parameter must be a single quoted or unquoted string. By convention, the string AXPVMS denotes an OpenVMS Alpha product, VAXVMS denotes an OpenVMS VAX product, and VMS denotes a product applicable for either OpenVMS Alpha or VAX.

name

Indicates the name of the product. This parameter must be a single quoted or unquoted string. The combination of producer, base, and name parameters must be unique among products installed on the system.

Options

[no] component

Indicates that if the product is copied (using the PRODUCT COPY command), the component products will be copied along with the product. The default is no component (the product does not need to be present during a copy operation).

installed after

Directs the utility to test whether the specified software product will be installed on the system at the conclusion of the current operation. This option is available only for the software function. You cannot use this option with either the installed before or kit accessible option. This option is the default when neither the installed before nor the kit accessible option is used.

installed before

Directs the utility to test whether the specified software product was installed on the system before the current operation began. This option is available only for the software function. You cannot use this option with either the installed after or kit accessible option. Take special note of the fact that installed before is not the default. When neither the installed before nor the installed before option is used, the default is installed after. Therefore, if you want to determine if a product is already installed, you must use the installed before option.

kit accessible

Directs the utility to test whether the specified software product kit, either in sequential or reference format, is present in the source directory. This option is available only for the software function. You cannot use this option with either the installed after or installed before option. By default, availability of the kit is not tested.

version above version

Establishes a lower version limit. The version identifier must be a single quoted or unquoted string. Use this option to specify that the product version must be greater than (but not equal to) the specified version. You cannot use this option with either the version minimum or version required option. By default, there is no lower version limit.

version below version

Establishes an upper version limit. The version identifier must be a single quoted or unquoted string. Use this option to specify that the product version must be less than (but not equal to) the specified version. You cannot use this option with either the version maximum or version required option. By default, there is no upper version limit.

version maximum version

Establishes an upper version limit. The version identifier must be a single quoted or unquoted string. Use this option to specify that the product version must be less than or equal to the specified version. You cannot use this option with either the version below or version required option. By default, there is no upper version limit.

version minimum version

Establishes a lower version limit. The version identifier must be a single quoted or unquoted string. Use this option to specify that the product version must be greater than or equal to the specified version. You cannot use this option with either the version above or version required option. By default, there is no lower version limit.

version required version

Establishes a required version. The version identifier must be a single quoted or unquoted string. Use this option to specify that the product version must be equal to the specified version. You cannot use this option with either the version above, version below, version maximum, or version minimum option. By default, there is no required version constraint.

Description

Software Statement

The software statement signals a software dependency on the specified product: the specified product must be installed prior to (or concurrently with) the installation of the product that contains the software statement. Upon successful installation, the software statement causes a permanent software reference to be recorded in the product database.

One of three situations may occur when a product with a software statement is installed:

If you intend only to check whether a certain software product is installed on the system and alert the user if it is not, use the software function.

You use the software statement for the following purposes:

If two products reference each other (creating a circular reference list), the utility issues an error message.

If you use the component option, the utility creates a copy of the referenced product when you use the PRODUCT COPY command.

If the operation executes in batch mode and a referenced product is not available, the operation terminates.

Software Function

The software function tests for the presence of a product. You can also specify the version of the product that must be present.

You can use different options to determine whether the specified product:

The software function, unlike the software statement, does not create a permanent software reference to another product and does not force the installation of the other product.


Previous Next Contents Index