Remote validation of installation input data6954930Abstract Methods, systems, and computer program products for improving installation of software packages by performing dynamic, remote validation of various installation data before building an installation image. The remote validation occurs in the target environment, such that the values for various installation parameters can be analyzed in the context of that target environment. Creation and distribution of the installation package can then be suppressed until the configuration parameters have acceptable values. This immediate feedback approach allows for a more efficient installation process. In preferred embodiments, structured markup language syntax is used to specify which configuration values are subject to remote validation. Structured markup language documents are preferably used to describe the data that is to be transmitted from a staging server to the remote environment, where an installation agent is adapted for processing the document and determining the corresponding validation routine(s) to be invoked on the remote system. Similarly, structured markup language documents are preferably used for describing results of the validation to the staging server. Claims 1. A method of improving installation of software packages, comprising steps of: Description BACKGROUND OF THE INVENTION
3) Default response values to be used as input for automatically responding to queries during customized installs, where the default values are preferably specified in a response file. The response file may specify information such as how the software package is to be subset when it is installed, where on the target computer it is to be installed, and other values to customize the behavior of the installation process. 4) Methods, usable by a systems administrator or other software installation personnel, for setting various response values or for altering various ones of the default response values to tailor a customized install. 5) Validation methods to ensure the correctness and internal consistency of a customization and/or of the response values otherwise provided during an installation. (Note, however, that the validation techniques disclosed in the related inventions pertain to local validation of installation data, whereas the present invention discloses techniques for remote validation. The related invention titled "Efficient Installation of Software Packages", referred to hereinafter as "the conditional installation invention", further discloses that validation code may be included in an installation package to control an incremental conditional installation process. Distinctions between these related inventions and the present invention will be discussed in more detail below.) 6) Optionally, localizable strings (i.e. textual string values that may be translated, if desired, in order to present information to the installer in his preferred natural language). 7) Instructions (referred to herein as the "command line model") on how the installation program is to be invoked, and preferably, how return code information or other information related to the success or failure of the installation process may be obtained. 8) The capabilities of the software package (e.g. the functions it provides). 9) A specification of the dependencies, including prerequisite or co-requisites, of the software package (such as the required operating system, including a particular level thereof; other software functions that must be present if this package is to be installed; software functions that cannot be present if this package is installed; etc.). The related inventions have described several of the challenges which are presented when performing installation of complex software packages. Additional problems may arise when those packages are configured for installation and are then distributed over a network for remote installation, using what is sometimes termed a "push" installation. In the prior art push installation model, a user typically interacts with a graphical user interface ("GUI") display at the local staging server (i.e. the server from which the software application is being distributed for remote installation) to provide a number of configuration values. (This user may be a software developer, a software installer, a systems administrator, etc. References hereinafter to a user include any of these various types of people.) The configuration values provided by the installer are then reflected in the installation image which is being built, and that image is then downloaded to the target machine (or machines). After distributing a remote installation program and invoking its installation, the installer typically has to wait for installation status information to determine validity of the configuration input. This prior art process can undermine the benefits of remote installation. Examples of configuration values that may be supplied for use during the installation image creation process include a user name (other similar identifier, referred to hereinafter as a "user ID") to be used when accessing the remote system, a user password, a destination directory where the software should be stored on the target machine, and a port number for the software application to use. A particular installation may require one or more of these types of configuration values (and as will be obvious, these are merely examples of configuration values that might be provided for a remote installation). Validation of the supplied configuration input data is crucial to the success of the installation. Prior art implementations of programmatic validation of user input are typically limited to information that is available locally at the staging server. This locally available information is normally limited to syntactic validations. As one example, the validation performed for a user's password may comprise ensuring that the minimum and maximum length constraints have been met. Generic syntax checking may also be performed, in order to ensure that the entered data is of the correct data type (i.e. consisting of digits, characters, or a mix thereof, as appropriate for a particular configuration value). A user ID might be further validated from the local system by consulting a registry of authorized users. As another example, validation of the value provided for the target directory on the remote device is typically limited to ensuring that a drive letter is provided, along with optional additional path syntax that may be checked to ensure that it does not contain any prohibited special characters. And as yet another example, validation of the port number on which the software application will be configured to run is typically limited to ensuring that a numeric value within the range of (0 . . . 65,535) has been provided. The present invention discloses techniques for dynamic, programmatic validation of user input, where this validation is carried out on the remote machine (under direction of the local staging server). Accordingly, the creation of the installation image is not carried out until the remote validation indicates that the user input is valid. The validation comprises determining whether the user input provided at the local device is valid within the remote target environment. Advantages of this approach can be seen with reference to the three examples given above. Even if the user ID and password pass local syntactical checking, it may still happen that this user should be prevented from installing software on the target machine. For example, the user having this ID/password might be already logged on to another application on the target machine. The drive letter for the target directory might be invalid for downloading the installation package to this device. (For example, the installer might select the "E" drive, expecting that a writable CD is available in that drive. If the drive is not configured as a writable device, however, then the download operation will fail.) Or, the selected drive might not have sufficient space for storing the installation package. The port number, even if it is a syntactically valid port number, might be in use on the remote system which would prevent the software application from functioning once it has been installed. These scenarios are examples of problems that are only detectable in the context of the target device or target environment, and the prior art approach of analyzing the user input on the local staging server will not detect problems of this type. In the prior art, after evaluating the user input in terms of locally-available constraints and generic requirements, the installation image is built and transferred over the network to the remote target device. Then installation program is then executed at the remote device. However, if the locally-performed validation fails to detect a problem such as those described above, then the installation operation will fail, or the installed software will be configured in an unusable state. This can prove to be a tedious, time-consuming process, which may waste considerable system resources (such as network bandwidth and storage) and impair the productivity of the personnel who are attempting the installation or prohibit the intended users of the software from being able to use it. Using the techniques of the present invention, on the other hand, provides for immediate feedback regarding the validity of user input data in the specific context of the remote target device. Installations are therefore smoother and more efficient, and a more pleasant experience for the installer/system administrator. The approach disclosed herein prevents unnecessarily transmitting a potentially large installation image over the network to the remote target device. For example, if the user enters a port number that is already in use on the target machine, the remote validation will detect this problem and allow immediately issuing an error message on the input GUI. The installer can then select a different port number, and the proper functioning of the installed software can be ensured. Building (and subsequent transmission) of the install image can be delayed until such configuration parameters have been remotely validated. The conditional installation invention discloses using the install entity as described by the related inventions, and conditionally distributing and executing the installation image based on outcome of an incremental routine of the install package which is executed before downloading and executing the subsequent dependent routines of the total install package. As an example, in the case of a remote installation, the conditional installation invention discloses that a small prerequisite routine may be dispatched over a network connection from the total install package (rather than sending the entire install package). This dispatched routine may then be executed on the remote machine, and based on its outcome, a return code may be transmitted from the remote machine to indicate whether subsequent routines from the install package should be retrieved and executed. The conditional installation invention addresses the distribution and installation of a software package. The present invention, in contrast, provides for efficiently creating installation packages prior to distribution and installation. Note that both inventions may achieve similar advantages, such as efficient utilization of processor cycles, disk space, and resources including the installer's time, as well as efficient utilization of network bandwidth. However, the two inventions define distinct techniques and pertain to different phases of the software installation process. Furthermore, the present invention also addresses the proper functioning of the installed software. A preferred embodiment of the object model used for defining installation packages as disclosed in the related inventions is depicted in FIGS. 3 and 4. FIG. 3 illustrates a preferred object model to be used for describing each software component present in an installation package. A graphical containment relationship is illustrated, in which (for example) ProductModel 300 is preferably a parent of one or more instances of CommandLineModel 310, Capabilities 320, etc. FIG. 4 illustrates a preferred object model that may be used for describing a suite comprising all the components present in a particular installation package. (It should be noted, however, that the model depicted in FIGS. 3 and 4 is merely illustrative of one structure that may be used to represent installation packages according to the present invention. Other subclasses may be used alternatively, and the hierarchical relationships among the subclasses may be altered, without deviating from the inventive concepts disclosed herein.) A version of the object model depicted by FIGS. 3 and 4 has been described in detail in the related inventions. This description is presented here as well in order to establish a context for the present invention. The manner in which this object model that may be used for supporting the present invention is also described herein in context of the overall model. Note that each of the related inventions may differ slightly in the terms used to describe the object model and the manner in which it is processed. For example, the related invention pertaining to use of structured documents refers to elements and subelements, and storing information in document form, whereas the related invention pertaining to use of JavaBeans refers to classes and subclasses, and storing information in resource bundles. As another example, the related inventions disclose several alternative techniques for specifying information for installation objects, including: use of resource bundles when using JavaBeans; use of structured documents encoded in a notation such as the Managed Object Format ("MOF") or XML; and use of properties sheets. These differences will be well understood by one of skill in the art. For ease of reference when describing the present invention, the discussion herein is aligned with the terminology used in the JavaBeans-based disclosure; it will be obvious to those of skill in the art how this description may be adapted in terms of the other related inventions. A ProductModel 300 object class is defined, according to the related inventions, which serves as a container for all information relevant to the installation of a particular software component. The contained information is shown generally at 310 through 380, and comprises the information for a particular component installation, as will now be described in more detail. CommandLineModel class 310 is used for specifying information about how to invoke an installation (i.e. the "command line" information, which includes the command name and any arguments). In preferred embodiments of the object model disclosed in the related inventions, CommandLineModel is an abstract class, and has subclasses for particular types of installation environments. These subclasses preferably understand, inter alia, how to install certain installation utilities or tools. For example, if an installation tool "ABC" is to be supported for a particular installation package, an ABCCommandLine subclass may be defined. Instances of this class then provide information specific to the needs of the ABC tool. A variety of installation tools may be supported for each installation package by defining and populating multiple such classes. Preferably, instances of these classes reference a resource or resource bundle which specifies the syntax of the command line invocation. (Alternatively, the information may be stored directly in the instance.) Instances of the CommandLineModel class 310 preferably also specify the response file information (or a reference thereto), enabling automated access to default response values during the installation process. In addition, these instances preferably specify how to obtain information about the success or failure of an installation process. This information may comprise identification of particular success and/or failure return codes, or the location (e.g. name and path) of a log file where messages are logged during an installation. In the latter case, one or more textual strings or other values which are designed to be written into the log file to signify whether the installation succeeded or failed are preferably specified as well. These string or other values can then be compared to the actual log file contents to determine whether a successful installation has occurred. For example, when an installation package is designed to install a number of software components in succession, it may be necessary to terminate the installation if a failure is encountered for any particular component. The installation engine of the present invention may therefore automatically determine whether each component successfully installed before proceeding to the next component. Additional information may be specified in instances of CommandLineModel, such as timer-related information to be used for monitoring the installation process. In particular, a timeout value may be deemed useful for determining when the installation process should be considered as having timed out, and should therefore be terminated. One or more timer values may also be specified that will be used to determine such things as when to check log files for success or failure of particular interim steps in the installation. Instances of a Capabilities class 320 are used to specify the capabilities or functions a software component provides. Capabilities thus defined may be used to help an installer select among components provided in an installation package, and/or may be used to programmatically enforce install-time checking of variable dependencies. As an example of the former, suppose an installation package includes a number of printer driver software modules. The installer may be prompted to choose one of these printer drivers at installation time, where the capabilities can be interrogated to provide meaningful information to display to the installer on a selection panel. As an example of the latter, suppose Product A is being installed, and that Product A requires installation of Function X. The installation package may contain software for Product B and Product C, each of which provides Function X. Capabilities are preferably used to specify the functions provided by Product B and Product C (and Dependencies class 360, discussed below, is preferably used to specify the functions required by Product A). The installation engine can then use this information to ensure that either Product B or Product C will be installed along with Product A. As disclosed in the related inventions, ProductDescription class 330 is preferably designed as a container for various types of product information. Examples of this product information include the software vendor, application name, and software version of the software component. Instances of this class are preferably operating-system specific. The locations of icons, sound and video files, and other media files to be used by the product (during the installation process, and/or at run-time) may be specified in instances of ProductDescription. For licensed software, instances of this class may include licensing information such as the licensing terms and the procedures to be followed for registering the license holder. When an installation package provides support for multiple natural languages, instances of ProductDescription may be used to externalize the translatable product content (that is, the translatable information used during the installation and/or at run-time). This information is preferably stored in a resource bundle (or other type of external file or document, referred to herein as a resource bundle for ease of reference) rather than in an object instance, and will be read from the resource bundle on an on-demand basis. The InstallFileSets class 340 is used in preferred embodiments of the object model disclosed in the related inventions as a container for information that relates to the media image of a software component. Instances of this class are preferably used to specify the manifest for a particular component. Tens or even hundreds of file names may be included in the manifest for installation of a complex software component. Resource bundles are preferably used, rather than storing the information directly in the object instance. The related inventions disclose use of the VariableModel class 350 as a container for attributes of variables used by the component being installed. For example, if a user identifier or password must be provided during the installation process, the syntactical requirements of that information (such as a default value, if appropriate; a minimum and maximum length; a specification of invalid characters or character strings; etc.) may be defined for the installation engine using an instance of VariableModel class. In addition, custom or product-specific validation methods may be used to perform more detailed syntactical and semantic checks on values that are supplied (for example, by the installer) during the installation process. (Note that these validation methods, being part of the Product Model 300, form part of the install image itself and are designed for use during the installation process. Thus, these are not the remote validation methods disclosed by the present invention. The remote validation methods of the present invention execute on the remote system, prior to building the install image, and thus are decoupled from ProductModel 300.) As disclosed for an embodiment of the related inventions, this validation support may be provided by defining a CustomValidator abstract class as a subclass of VariableModel, where CustomValidator then has subclasses for particular types of installation variables. Examples of subclasses that may be useful include StringVariableModel, for use with strings; BooleanVariableModel, for use with Boolean input values; PasswordVariableModel, for handling particular password entry requirements; and so forth. Preferably, instances of these classes use a resource bundle that specifies the information (including labels, tooltip information, etc.) to be used on the user interface panel with which the installer will enter a value or values for the variable information. Dependencies class 360 is used to specify prerequisites and co-requisites for the installation package, as disclosed in the related inventions. Information specified as instances of this class, along with instances of the Capabilities class 320, is used at install time to ensure that the proper software components or functions are available when the installation completes successfully. The related inventions disclose providing a Conflicts class 370 as a mechanism to prevent conflicting software components from being installed on a target device. For example, an instance of Conflicts class for Product A may specify that Product Q conflicts with Product A. Thus, if Product A is being installed, the installation engine will determine whether Product Q is installed (or is selected to be installed), and generate an error if so. VersionCheckerModel class 380 is provided to enable checking whether the versions of software components are proper, as disclosed in the related inventions. For example, a software component to be installed may require a particular version of another component. The conditional installation invention defines an additional class, IncrementalInstall 390. As disclosed in this conditional installation invention, IncrementalInstall 390 is a subclass of ProductModel 300 and may be used to provide a conditional distribution and installation of the corresponding software component. (Alternatively, this information may be represented within one or more of the previously-defined classes.) Because the conditional installation invention is distinct from the present invention, it will not be described in detail herein. Refer to the conditional installation patent for more information. Preferably, the resource bundles referenced by the software components of the present invention are structured as product resource bundles and variable resource bundles. Examples of the information that may be specified in product resource bundles (comprising values to be used by instances of CommandLineModel 310, etc.) and in variable resource bundles (with values to be used by instances of VariableModel 350, ProductDescription 330, etc.) are depicted in FIGS. 5 and 6, respectively. (Note that while 2 resource bundles are shown for the preferred embodiment, this is for purposes of illustration only. The information in the bundles may be organized in many different ways, including use of a separate bundle for each class. When information contained in the bundles is to be translated into multiple natural languages, however, it may be preferable to limit the number of such bundles.) Referring now to FIG. 4, an object model as disclosed in the related inventions for representing an installation suite comprising all the components present in a particular installation package will now be described. A Suite 400 object class serves as a container of containers, with each instance containing a number of suite-level specifications in subclasses shown generally at 410 through 470. Each suite object also contains one or more instances of ProductModel 300 class, one instance for each software component in the suite. The Suite class may be used to enforce consistency among software components (by handling the inter-component prerequisites and co-requisites), and to enable sharing of configuration variables among components. (Furthermore, as disclosed in the conditional installation invention, the Suite class 400 may contain suite-level information to be used in a conditional installation, as described therein.) SuiteDescription class 410 is defined in the related inventions as a descriptive object which may be used as a key when multiple suites are available for installation. Instances of SuiteDescription preferably contain all of the information about a suite that will be made available to the installer. These instances may also provide features to customize the user interface, such as build boards, sound files, and splash screens. As disclosed in the related inventions, ProductCapabilities class 420 provides similar information as Capabilities class 320, and may be used to indicate required or provided capabilities of the installation suite. ProductCategory class 430 is defined in the related inventions for organizing software components (e.g. by function, by marketing sector, etc.). Instances of ProductCategory are preferably descriptive, rather than functional, and are used to organize the display of information to an installer in a meaningful way. A component may belong to multiple categories at once (in the same or different installation suites). As disclosed in the related inventions, instances of ProductGroup class 440 are preferably used to bundle software components together for installation. Like an instance of ProductCategory 430, an instance of ProductGroup groups products; unlike an instance of ProductCategory, it then forces the selection (that is, the retrieval and assembly from the directory) of all software components at installation time when one of the components in the group (or an icon representing the group) is selected. The components in a group are selected when the suite is defined, to ensure their consistency as an installation group. Instances of VariableModel class 450 provide similar information as VariableModel class 350, as discussed in the related inventions, and may be used to specify attributes of variables which pertain to the installation suite. VariablePresentation class 460 is used, according to the related inventions, to control the user interface displayed to the installer when configuring or customizing an installation package. One instance of this class is preferably associated with each instance of VariableModel class 450. The rules in the VariableModel instance are used to validate the input responses, and these validated responses are then transmitted to each of the listening instances of VariableLinkage class 470. As discussed above with reference to VariableModel class 350, the rules described in the related inventions form part of the installation image, and pertain to locally-performed validation using locally-available information. This is distinct from the present invention, which discloses remote validation of information used to build an installation image, using validation logic which resides on device(s) in the target environment. As disclosed in the related inventions, instances of VariableLinkage class 470 hold values used by instances of VariableModel class 450, thereby enabling sharing of data values. VariableLinkage instances also preferably know how to translate information from a particular VariableModel such that it meets the requirements of a particular ProductModel 300 instance. The conditional installation invention defines an IncrementalInstall class 480 that may be provided for use in a conditional installation that pertains to the entire suite. (Suite-level conditional installation information may alternatively be represented in one or more of the existing classes.) If an implementation of the conditional installation invention chooses not to support conditional installation at the suite level, then this class 480 is omitted. The suite-level IncrementalInstall class 480 is similar to the component-level IncrementalInstall class 390 which was previously described. As an example of suite-level checking, code may be performed to detect the type of target device and to suppress distribution and installation of large installation images in certain cases, based upon that information (e.g. for constrained devices such as PDAs or devices that connect to a network using a relatively expensive wireless connection). Each instance of ProductModel class 300 in a suite is preferably independently serializable, as discussed in the related inventions, and is merged with other such assembled or retrieved instances comprising an instance of Suite 400. The techniques of the present invention are preferably used during that merge, or build process, such that the resulting Suite 400 instance is configured using data which has already been validated in the context of the remote target environment. During the customization process, an installer may select a number of physical devices or machines on which software is to be installed from a particular installation package. Furthermore, he may select to install individual ones of the software components provided in the package. This is facilitated by defining a high-level object class (not shown in FIGS. 3 or 4) which is referred to herein as "Groups", which is a container for one or more Group objects. A Group object may contain a number of Machine objects and a number of ProductModel objects (where the ProductModel objects describe the software to be installed on those machines, according to the description of FIGS. 3 and 4). Machine objects preferably contain information for each physical machine on which the software is to be installed, such as the machine's Internet Protocol (IP) address and optionally information (such as text for an icon label) that may be used to identify this machine on a user interface panel when displaying the installation package information to the installer. (When using the present invention, machine-specific port numbers are one example of the type of data that can be remotely validated before building the install image.) When using JavaBeans of the Java programming language to implement installation objects according to the installation object model, the object attributes and methods to be used for installing a software package are preferably specified as properties and methods of the JavaBeans. A JavaBean is preferably created for each software component to be included in a particular software installation package, as well as another JavaBean for the overall installation suite. When using Object REXX, the object attributes and methods to be used for installing a software package are preferably specified as properties and methods in Object REXX. When using structured documents, the object attributes and methods are preferably specified as elements in the structured documents. (Refer to the related inventions for a detailed discussion of these approaches.) The process of remotely validating user input, in preparation for using that input when building the component (i.e. ProductModel) objects and Suite object once the remote validation succeeds, will now be described with reference to the flowchart in FIG. 7. (The related inventions have disclosed a general software installation process using the model and framework of their respective FIGS. 3 and 4, and preferred embodiments of logic which may be used to implement this installation process have been described therein with reference to their respective FIGS. 7 through 10. Refer to those related inventions for a description of processing that occurs to distribute and install an installation package.) FIG. 8 is then described, further illustrating how this process occurs through use of an example. At Block 700, the user at a staging server selects to perform a "push" installation of a software package that requires some type of user input for building the installation image. Examples of this user input have been discussed previously, and include user IDs, passwords, target directories, and port numbers. The user then selects the target system to which the installation image is to be pushed (Block 710). Input for one or more configuration parameters is obtained from the user (Block 720), preferably through a GUI. Block 730 then passes those values to the remote target system. According to preferred embodiments of the present invention, an installation agent or analogous software routine is resident on the remote target system, and is adapted to receiving the staging server's message(s) and invoking the appropriate validation. Preferably, this installation agent is adapted for parsing an incoming message to determine the parameters for which values are being provided, and has mapping information that specifies the corresponding validation routine for each such parameter value. (The parameter values are preferably encoded as elements and/or attributes of the message.) As desired for a particular implementation, a single validation routine may encompass logic for validating multiple parameter values, or separate parameter-specific routines may be used. (Subsequent discussions assume, for purposes of illustration, that separate routines are used.) The messages exchanged between the staging server and installation agent are preferably encoded in a structured markup language, such as XML, and may be defined according to a schema or Document Type Definition ("DTD"). Details of schema definitions and DTDs are well known to those of skill in the art, and will not be described in detail herein. A protocol such as Java RMI or CORBA is preferably used for transmitting the messages between the staging server and installation agent. The validation routine(s) corresponding to the transmitted configuration parameter(s) is/are executed on the target system once the parameter values have been received (Block 740), and return code information is sent back to the staging server (Block 750). The form of this return code information may vary from one implementation of the present invention to another; what is required is that the information is sent in a format for which the implementation is adapted to process. Block 760 tests to see if the return code information indicates a successful validation. If so, then the processing in Block 770 is performed to confirm the validity to the user (although this positive confirmation may optionally be omitted), and then proceed with creating the installation image. This installation image may then be installed, using (for example) techniques which have been described in the related inventions. If the test in Block 760 indicates that one or more of the configuration parameters failed the remote validation, then an error message is preferably displayed, and the sequence of obtaining data values, passing them to the remote system, performing the remote validation, and transmitting return code information to the staging server is repeated, as indicated by Block 780. According to preferred embodiments, the parameters that have been remotely validated will be used as values that are encoded in the installation image being built. Note that an iteration of the processing in FIG. 7 may be used for obtaining and remotely validating all of the configuration values for a suite, or for selected portions thereof. Referring now to FIG. 8, sample structured markup language syntax is provided to further illustrate operation of the present invention. A partial structured document 800 is illustrated, showing definitional statements for three string variables and one password variable. In this example, the definitional statements pertain to installation of an IBM HTTP Server ("IHS"). The string variable named "IBMHTTPW32win_prod_path" represents the installation path to be used when installing this package in a particular environment. (See element 810.) The string variable named "IHS_SERVER_USERID" represents the user ID to be used when installing this package, and the password variable named "IHS_SERVER_PASSWORD" represents the password for that user ID. (See elements 820 and 830.) The string variable named "IHS_PORT_NUMBER" represents the installation port number to be used when installing the package. (See element 840.) A limited amount of local validation is specified in the markup syntax for these four items, using prior art techniques. For example, the value provided for the product installation path must be at least 4 characters in length, as specified at 811, and the port number must be at least 1 character but not more than 5 characters in length, as specified at 841. Length restrictions for the user ID and password, along with attributes pertaining to case-sensitivity, are specified at 821 and 831. These local validations will typically be performed at the time when a value of the respective configuration parameter is being provided through the GUI, giving the user immediate feedback about syntactically acceptable values. The <validator> element 812 identifies a location of a validation routine that may be used for performing validation related to the product path. This is an example of the type of validation method discussed in the related inventions, which operates on the local system to ensure the correctness and internal consistency of a customization and/or of the response values that are otherwise provided during an installation. Syntax which limits the port number to digits in the range (1 to 65535) is specified at 842. This validation can also be performed locally, but does not detect context-specific problems such as the port number being unavailable on the target system, as has been discussed previously. In this example markup syntax 800, a <remoteValidation> element 850 designates the values which are subject to remote validation. In this example, three of the four defined parameters are to be validated. The <portNumber> element 851 has as its value the name of the string variable 840 which stores the port number, indicating that the port number is to be remotely validated. Similarly, the values of the <prodPath> element 852 and <userID> element 853 indicate that the values of the product path and user ID are to be remotely validated. This markup syntax is preferably part of the installation package created according to the object model described above with reference to FIGS. 3 and 4. As has been demonstrated, the present invention defines techniques for remotely validating installation data before building an installation suite reflecting that data. Preferred embodiments leverage an object model and framework that provide a standard, consistent approach to software installation across many variable factors such as product and vendor boundaries, computing environment platforms, and the language of the underlying code as well as the preferred natural language of the installer, as was disclosed in the related inventions. An implementation of the present invention may include the teachings of one or more of these related inventions. In alternative embodiments, the techniques disclosed herein may be used to remotely validate configuration parameters that are to be used when building an installation image according to a model other than that disclosed in the related inventions. Use of the techniques disclosed herein provides for efficient, accurate creation of an installation package. The related invention titled "Self-Contained Validation of Data Model Object Content" discloses techniques for validating data by coupling validation rules to the data, enabling the rules to easily and consistently be transmitted along with the data. This related invention does not disclose techniques for remotely validating configuration parameters as a precondition to building an installation image, which is taught by the present invention. The present invention may also be used in conjunction with an implementation of the self-contained validation invention. While preferred embodiments of the present invention have been described, additional variations and modifications in that embodiment may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims shall be construed to include preferred embodiments as well as all such variations and modifications as fall within the spirit and scope of the invention.
|
Same subclass Same class Consider this |
||||||||||
