Abstract:
A method for installation and configuration of selectable components of a software product. An installation user interface allows a user to identify and select a plurality of install and configuration templates from multiple sources for recommended installation of selectable software components. Responsive to a user selecting multiple install and configuration templates, the user is enabled to apply a relative weight for each of the selected install and configuration templates, wherein the relative weight is applied to each selectable software component included in the weighted template. The weighted software components from each of the install and configuration templates are merged to determine a weighted value for each selectable component. Weighted software components having a weighted value that exceed a predetermined threshold value are determined. Each selectable component having a weighted value exceeding the predetermined threshold value is installed and configured including the components to install, the install path, and other configuration options.

Description:
BACKGROUND 
       [0001]    Embodiments of the invention generally relate to software builds on computer systems and, more particularly, to installation and configuration of software packages on computer systems. 
         [0002]    As software products become increasingly complex, the options for advanced installation and configuration become too difficult for normal users to manage. For example, a user installing a Linux® distribution may be presented with a thousand different software packages that can be installed optionally. Linux distributions (distros) represent different versions of the Linux operating system built on top of the Linux kernel and include a large collection of software applications. Linux distributions are normally segmented into packages, with each package including specific applications or service. Although some Linux distributions can install packages that include the kernel and core operating system, components in a predetermined configuration, other software packages and components must be carefully configured to be useful and to work correctly with other software, resulting in administrators reviewing and reconfiguring software components. 
         [0003]    Templates or response-file driven configurations can provide a better option to reuse good default settings, but a template file can become stale and individual settings are difficult to review. 
       BRIEF SUMMARY 
       [0004]    In one embodiment, during software installation or, optionally, as a post-installation configuration, the installer software presents the user with a selection of optional components. The installer also presents a multi-form user interface display to “use recommendations from X,” wherein the user can input a Uniform Resource Locator (URL) or a file to alter the default configuration settings for the software. The template provided includes recommended components to install, as well as recommended components that should be removed if they have been selected for installation. The installer software could allow the user to select an overall weight for each of the recommendation files. The installer software could allow any number of external configuration files to be added. The installer could scale each recommended item by the weight specified for the configuration file. When the software is ready to install, the installer combines the weight for each component from all sources, to determine if the component under consideration should be installed. 
         [0005]    In one embodiment, a method is provided for installation and configuration of selectable components of a software product. An installation user interface is provided, allowing a user to identify and select a plurality of install and configuration templates from multiple sources for recommended installation of selectable software components. Responsive to a user selecting multiple install and configuration templates, the user is enabled to apply a relative weight for each of the selected install and configuration templates, wherein the relative weight is applied to each selectable software component included in the weighted template. The weighted software components from each of the install and configuration templates are merged to determine a weighted value for each selectable component. Weighted software components having a weighted value that exceed a predetermined threshold value ate determined. Each selectable component having a weighted value exceeding the predetermined threshold value is installed and configured including the components to install, the install path, and other configuration options. 
     
    
     
       BRIEF DESCRIPTION OF THE DRAWINGS 
         [0006]    These and other advantages and aspects of the embodiments of the disclosure will become apparent and more readily appreciated from the following detailed description of the embodiments taken in conjunction with the accompanying drawings, as follows. 
           [0007]      FIG. 1  illustrates an example setup graphical user interface (GUI) that enables the user to select packages to install. 
           [0008]      FIG. 2  illustrates a post-install configuration wizard in accordance with an embodiment. 
           [0009]      FIG. 3  illustrates example relative weights for the settings in each template file. 
           [0010]      FIG. 4  illustrates processing logic for weighted recommendations for installation and configuration of software products in accordance with an embodiment. 
           [0011]      FIG. 5  illustrates a display of installable components that the installer software could present to the end user for review in accordance with an embodiment. 
       
    
    
     DETAILED DESCRIPTION 
       [0012]    The following description is provided as an enabling teaching of embodiments of the invention including the best, currently known embodiment. Those skilled in the relevant art will recognize that many changes can be made to the embodiments described, while still obtaining the beneficial results. It will also be apparent that some of the desired benefits of the embodiments described can be obtained by selecting some of the features of the embodiments without utilizing other features. Accordingly, those who work in the art will recognize that many modifications and adaptations to the embodiments described are possible and may even be desirable in certain circumstances. Thus, the following description is provided as illustrative of the principles of the invention and not in limitation thereof, since the scope of the invention is defined by the claims. 
         [0013]    A complex installation package could have thousands of installation options. For example, the Cygwin installer (“Cygwin Setup”) will provide the user with a large list of optional software packages, with reasonable defaults selected. As indicated on the Cygwin project website. Cygwin is an open source collection of tools that provide a Linux look and feel environment for Windows® platforms. The user can pick and choose the packages that he wants to install and update them individually. The embodiments disclosed herein are applicable to any complex, software installation package, but the open source Cygwin software is used to illustrate the principles.  FIG. 1  illustrates a graphical user interface (GUI) that enables the user to select packages to install using the Cygwin installer. 
         [0014]    Many users will accept the software defaults in the packages, or install everything, but better default values could be tailored for the user. A template or response-file driven configuration can provide a better option to reuse good default settings, but a template file can go stale and individual settings are hard to review. A better solution, would be to point the installer to an online expert-provided configuration template, or to configurations from multiple experts, and use their settings as suggestions rather than requirements. 
         [0015]    In one embodiment, installation and configuration templates can be combined, and interactive configuration templates can be used to change the default values. Configuration templates from multiple sources including web-based templates and file-based templates can be combined. Weighted configuration settings can be used for setting priorities. 
         [0016]    An installer or post-install configuration wizard provides the option for the user to select multiple template files. The wizard allows the user to provide a response file or an option file that the user wants the installer to use during the software installation and configuration process on the user&#39;s computer.  FIG. 2  illustrates a post-install, configuration wizard in one embodiment. 
         [0017]    Table 1 shows settings in each of the template (response) files using the Cygwin installer as an example. The plus sign before the name of a software option indicates that the option should be installed; a minus sign indicates that the option should be removed or not installed. 
         [0000]    
       
         
               
               
               
               
             
           
               
                 TABLE 1 
               
               
                   
               
             
             
               
                 Filename: 
                 Favoptions.resp 
                 cygwinOptions.resp 
                 allUI.resp 
               
               
                 Purpose: 
                 A set of cygwin 
                 A set of Cygwin 
                 A template adds 
               
               
                   
                 options from the 
                 options from the 
                 all UI 
               
               
                   
                 user&#39;s favorite 
                 user&#39;s coworker 
               
               
                   
                 blogger 
               
               
                 Specific 
                 +X11 
                 +Base 
                 +Graphics 
               
               
                 Settings: 
                 +Python 
                 +Libs 
                 +X11 
               
               
                   
                 +Gnome 
                 +Net 
                 +Gnome 
               
               
                   
                 −Devel 
                 +Text 
                 +KDE 
               
               
                   
                 −KDE 
                 +Accessibility 
               
               
                   
                 −Interpreters 
               
               
                   
               
             
          
         
       
     
         [0018]    Using multiple settings files as in the preceding example can create conflicts regarding the software components or packages to install. For example, in Table 1, there is a conflict between one of the options (i.e., KDE® software) listed in both the first and third columns. This conflict can be resolved by the user applying relative weights to each of the three settings files shown in  FIG. 2 . 
         [0019]    The post-install configuration wizard also provides an option for the user to specify relative weights for the settings in each of the template files.  FIG. 3  illustrates relative weights for the settings in each template settings file shown in  FIG. 2 . As illustrated, the first template file (“favoptions”) was given a relative weight of +8.5, the second template file (“cygwinoptions”) was given a weight of +2.0, and the third template file (“allUI”) was given a weight of +2.8. In this example, the first template includes a set of software package install options from the end user&#39;s favorite blogger (including components to install and components to remove). The second template includes a set of software package install options from the end user&#39;s coworker. The third template includes the addition of specific software packages, in this example, graphics-related packages. 
         [0020]    The installer then applies the user&#39;s specified relative weights to each of the components in the template files as shown in Table 2. For example, the X11 graphics library component was given a weight of 8.5 by the user for the first settings file and a weight of 2.8 for the third settings file. The combined relative weight of the X11 component for all three settings files is thus +11.5. 
         [0000]    
       
         
               
               
               
               
             
           
               
                   
                 TABLE 2 
               
               
                   
                   
               
               
                   
                 Favoptions.resp 
                 cygwin.Options.resp 
                 allUI.resp 
               
               
                   
                   
               
             
             
               
                   
                 +8.5 X11 
                 +2.0 Base 
                 +2.8 Graphics 
               
               
                   
                 +8.5 Python 
                 +2.0 Libs 
                 +2.8 X11 
               
               
                   
                 +8.5 Gnome 
                 +2.0 Net 
                 +2.8 Gnome 
               
               
                   
                 −8.5 Devel 
                 +2.0 Text 
                 +2.8 KDE 
               
               
                   
                 −8.5 KDE 
                 +2.0 Accessibility 
               
               
                   
                 −8.5 Interpreters 
               
               
                   
                   
               
             
          
         
       
     
         [0021]    The installer combines the weighted values for each component across all templates. The combined weights for each component, shown parenthetically, include X11 (+11.3), Gnome (+11.3), Python (+8.5), Graphics (+2.8), Base (+2.0), Libs (+2.0), Net (+2.0), Text (+2.0), Accessibility (+2.0), KDE (−5.7), Interpreters (−8.5), Devel (−8.5). In one embodiment, any package having a total positive weight is selected for installation, and any package with a negative total weight is removed from installation. Thus, continuing with this example, X11, Gnome®, Python®, Graphics, Base, Libs, Net, Text, and Accessibility components or packages (i.e., downloadable software tools) would be installed. The components not installed, or removed if installed, are KDE, interpreters, and Devel. Other embodiments could include selection based on other weighting criteria, e.g., selection could be based on having a total weight that exceeds a certain value. Table 3 lists the packages selected and the packages deleted based on weighted value. 
         [0000]    
       
         
               
               
               
             
           
               
                   
                 TABLE 3 
               
               
                   
                   
               
               
                   
                 Packages added 
                 Packages removed 
               
               
                   
                 (if not selected already) 
                 (if selected) 
               
               
                   
                   
               
             
             
               
                   
                 X11 
                 KDE 
               
               
                   
                 Gnome 
                 Interpreters 
               
               
                   
                 Python 
                 Devel 
               
               
                   
                 Graphics 
               
               
                   
                 Base 
               
               
                   
                 Libs 
               
               
                   
                 Net 
               
               
                   
                 Text 
               
               
                   
                 Accessibility 
               
               
                   
                   
               
             
          
         
       
     
         [0022]    Under certain, conditions, the merged recommendations could break a dependency tree. For example, consider the case where one response file adds a component and its dependencies (i.e., subcomponents), but a higher-weighted response file removes one of those dependencies without removing the subcomponent. In one embodiment, two straightforward solutions are available. A first solution is to add the broken dependencies to complete the dependency tree for selected components. A second solution is to remove components with missing dependencies, i.e., to prune unsupported components out of the dependency tree. The choice of “adding” or “pruning” could depend on context and could be configured based on: (1) an option selected by the user, and (2) setting by the installer. Installers with generally non-dangerous optional components could implement “add” broken dependencies. For example, if the broken dependency is a child subcomponent in a parent component-dependent child subcomponent relationship, the parent component could be added automatically by the installer. Installers having some components which may be undesirable could implement “prune” unsupported components. Alternatively, the component in the response file could define if the dependencies should be added or pruned. The aggregate highest-weighted option would be used. 
         [0023]    For a simplified example, consider a Firefox® web browser installer that could allow optional selection of four components: (1) Firebug® debugger add-on, (2) Facebook® tools add-on, (3) Adblock add-on, and (4) Default adblock filterset G. 
         [0024]    As shown in Table 4 below, the user could specify two response files to be used by the installation: (1) “everything.resp” from the Firefox website to install all four components (weight: 2.0) and (2) “normalware.resp” from the user&#39;s favorite blogger to remove extensions that are at risk for containing malware (weight: 8.0). 
         [0000]    
       
         
               
               
             
           
               
                 TABLE 4 
               
               
                   
               
               
                 everything.resp 
                 nomalware.resp 
               
               
                   
               
             
             
               
                 +2.0 firebug (+2.0 dependencies: 
                 −8.0 facebook (+8.0 dependencies: 
               
               
                 add) 
                 prune) 
               
               
                 +2.0 facebook (+2.0 dependencies: 
                 −8.0 adblock (+8.0) dependencies: 
               
               
                 add) 
                 prune) 
               
               
                 +2.0 adblock (+2.0 dependencies: 
               
               
                 add) 
               
               
                 +2.0 filterset G (+2.0 dependencies: 
               
               
                 add) 
               
               
                   
               
             
          
         
       
     
         [0025]    In this case, “everything.resp” adds all four optional components, and “normalware.resp” removes the facebook and adblock plugins, and contains recommendations to prune dependencies. 
         [0026]    As shown in Table 5, the installer hits a dependency conflict since filterset G is selected, but adblock is deselected. The installer looks at the recommended dependency handling on the dependency. In this case, “prune dependencies” is weighted higher than “add dependencies” so the installer removes all children of the adblock feature (i.e., filterset G). Facebook would not be installed since the combined relative weighting is −6.0 (+2.0 weight for “everything.resp” and a −8.0 weight for “normalware.resp”). In the end, the Firefox browser is installed with one optional component—firebug. 
         [0000]    
       
         
               
               
             
           
               
                   
                 TABLE 5 
               
               
                   
                   
               
             
             
               
                   
                 +2.0 firebug (+2.0 dependencies: add) 
               
               
                   
                 −6.0 facebook (+2.0 dependencies: add, +8.0 dependencies: prune) 
               
               
                   
                 −6.0 adblock (+2.0 dependencies: add, +8.0 dependencies: prune) 
               
               
                   
                 +2.0 filterset G (+2.0 dependencies: add) 
               
               
                   
                   
               
             
          
         
       
     
         [0027]      FIG. 4  illustrates processing logic for merging weighted recommendations for installation and configuration of software products in an exemplary embodiment. The process starts with the end user invoking the software program installer as indicated in logic block  400 . The installer software then loads in computer memory as indicated in logic block  410 . The installer software allows multiple file-based selection of install input from various sources as indicated in logic block  420  and as depicted by the multiple setting files (also referred to herein as input source templates) in  FIG. 2 . Next, as indicated in logic block  430 , the installer software allows user selection of relative weights to apply to each of the multiple input source templates as depicted in  FIG. 3 . The installer software then merges the component weights from the multiple input sources, as shown in Table 2, to compute overall software component selections as indicated in logic block  440 . The installer wizard automatically resolves dependency conflicts or prompts the user to resolve dependency conflicts as indicated in logic block  450 . The installer software then presents the component selections to the end user for review as indicated in logic block  460 .  FIG. 5  illustrates an example display of installable components that the installer could present to the end user for review based on the example for Cygwin package installation. After the end user finishes the review, the installer software runs on the processor and installs the selected software components to complete the software program installation as indicated in logic block  470 . 
         [0028]    In summary, unique aspects of the disclosed embodiments include combining install and configuration templates, using interactive configuration templates to affect the default values, combining configuration templates from multiple sources including web and file-based templates, and weighted configuration settings for setting priority. 
         [0029]    As will, he appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or computer program product. Accordingly, aspects of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment (including firmware, resident, software, micro-code, etc.) or an embodiment combining software and hardware aspects that may all generally be referred to herein as a “circuit,” “module” or “system.” Furthermore, aspects of the present invention may take the form of a computer program product embodied in one or more computer readable medium(s) having computer readable program code embodied thereon. 
         [0030]    Any combination of one or more computer readable medium(s) may be utilized. The computer readable medium may be a computer readable signal medium, or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical, fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. 
         [0031]    A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. 
         [0032]    Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing. 
         [0033]    Computer program code for carrying out operations for aspects of the present invention may he written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C++ or the like and conventional procedural programming languages, such as the “C” programming language or similar programming languages. The program code may execute entirely on the user&#39;s computer, partly on the user&#39;s computer, as a stand-alone software package, partly on the user&#39;s computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user&#39;s computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the internet using an internet Service Provider). 
         [0034]    Aspects of the present invention have been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will he understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block, or blocks. 
         [0035]    These computer program instructions may also be stored in a computer readable medium that can direct a computer, other programmable data processing apparatus, or other devices to function in a particular manner, such that the instructions stored in the computer readable medium produce an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks. 
         [0036]    The computer program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. 
         [0037]    The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustrating, can be implemented, by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. 
         [0038]    The corresponding structures, materials, acts, and equivalents of all means plus function elements in any claims below are intended to include any structure, material, or acts for performing the function in combination with other claim elements as specifically claimed. 
         [0039]    Those skilled in the art will appreciate that many modifications to the disclosed embodiments are possible without departing from the scope of the present invention. In addition, it is possible to use some of the features of the embodiments disclosed without the corresponding use of the other features. Accordingly, the foregoing description of the disclosed embodiments is provided for the purpose of illustrating the principles of the invention, and not in limitation thereof, since the scope of the invention is defined solely by the appended claims.