Software products and updates may require multiple distribution media (e.g., digital versatile disks or “DVDs”) for executable program files. In many instances, executable program files require a number of resource files, such as Cabinet (“CAB”) files for various activities such as the installation of software product updates. Currently however, due to size constraints associated with CAB files as well as computer-based file systems (e.g., FAT32 file systems), executable program files may be limited to only a single CAB file even when the distributed media itself (e.g., the DVD) may be capable of storing additional data. As a result of the aforementioned limitation, additional executable program files must be utilized in order to access any additional required CAB files for installing software products or associated updates. The drawbacks of utilizing multiple executable program files include longer production times for distribution media (i.e., each executable file must be generated separately), forced partitioning of the multiple executable program files onto a single distribution media and/or additional copies of distribution media, and increasing the time required for signing data using digital signatures. It is with respect to these considerations and others that the various embodiments of the present invention have been made.
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended as an aid in determining the scope of the claimed subject matter.
Embodiments are directed to installing a software product, comprising a program file, using a single executable file. An installation script for managing installation operations may be generated by a computing device. The installation script may be combined with the program file associated with the installation operations. A single executable file that includes the combined installation script and the program file may be generated by the computing device. The single executable file may be distributed by the computing device. The single executable file may be executed by the computing device. Executing the single executable file may include querying a manifest, within the single executable file, which includes a list of resource files external to the single executable file. The resource files may be utilized by the single executable file to install the program file.
These and other features and advantages will be apparent from a reading of the following detailed description and a review of the associated drawings. It is to be understood that both the foregoing general description and the following detailed description are explanatory only and are not restrictive of aspects as claimed.
As briefly described above, embodiments are directed to installing a software product, comprising a program file, using a single executable file. An installation script for managing installation operations may be generated by a computing device. The installation script may be combined with the program file associated with the installation operations. A single executable file that includes the combined installation script and the program file may be generated by the computing device. The single executable file may be distributed by the computing device. The single executable file may be executed by the computing device. Executing the single executable file may include querying a manifest, within the single executable file, which includes a list of resource files external to the single executable file. The resource files may be utilized by the single executable file to install the program file.
In the following detailed description, references are made to the accompanying drawings that form a part hereof, and in which are shown by way of illustrations specific embodiments or examples. These aspects may be combined, other aspects may be utilized, and structural changes may be made without departing from the spirit or scope of the present disclosure. The following detailed description is therefore not to be taken in a limiting sense, and the scope of the present invention is defined by the appended claims and their equivalents.
While the embodiments will be described in the general context of program modules that execute in conjunction with an application program that runs on an operating system on a personal computer, those skilled in the art will recognize that aspects may also be implemented in combination with other program modules.
Generally, program modules include routines, programs, components, data structures, and other types of structures that perform particular tasks or implement particular abstract data types. Moreover, those skilled in the art will appreciate that embodiments may be practiced with other computer system configurations, including hand-held devices, multiprocessor systems, microprocessor-based or programmable consumer electronics, minicomputers, mainframe computers, and the like. Embodiments may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote memory storage devices.
Embodiments may be implemented as a computer process (method), a computing system, or as an article of manufacture, such as a computer program product or computer readable media. By way of example, and not limitation, computer-readable media may comprise computer storage media and communication media.
Computer storage media includes volatile and non-volatile, removable and non-removable hardware storage media implemented in any physical method or technology for the storage of information such as computer-readable instructions, data structures, program modules or other data. Computer storage media includes, but is not limited to, RAM, ROM, EPROM, EEPROM, flash memory or other solid state memory technology, CD-ROM, digital versatile disks (“DVD”), or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, which can be used to store the desired information.
Communication media includes any information delivery media. For example, in accordance with an embodiment, communication media may include a wired network or direct-wired connection. In accordance with another embodiment, communication media may include wireless media such as acoustic, RF, infrared, and other wireless media. In accordance with yet another embodiment, communication media may include computer-readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism. The term “modulated data signal” means a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal. Combinations of any of the above should also be included within the scope of computer-readable media. Computer-readable media may also be referred to as a computer program product.
Referring to
Typically, installation files for a software product or an update include a number of data files, DLLs, and other types of files. In some cases, these may be organized in a plurality of directories. In addition to potential downloading problems, dealing with multiple files increases risks of unauthorized use (e.g. individual files may be easier to tamper with) and limits customizability of installation processes.
As shown in
Once loaded onto a computing device such as desktop computer 110, the installation executable may be executed, where the script controls the execution of individual actions interacting with user 108, performing pre-installation checks, copying and/or expanding program files, configuring and/or registering components, and the like. Post-installation tasks such as activating installed application 112, deleting unnecessary files, and the like.
As mentioned above, the schema defining the installation script may be in XML format. However, embodiments are not limited to the XML programming languages and formats. Packaging software products in a single executable file containing scripting logic may be implemented in any language, format, and structure using the principles described herein.
In generating the installation executable 206, the program files 204 and installation script 202 are combined into a single file. The installation executable may be compressed or otherwise processed for distribution in any way known in the art. Security measures, such as password protection, may also be integrated into the installation executable 206. The installation executable 206 is then distributed to the users through various methods such as those described in conjunction with
Installation executable 306, according to embodiments, conforms to an extensibility model where it is able to load Dynamic Link Libraries (DLLs) and is able to call into functions with a specific signature, thus allowing the addition of new features that cannot just be “coded” using the XML language. This way, the UI experience may be changed without affecting a package behavior.
The behavior for the package may be defined in an XML file as a list of actions to be performed in a specific order. This order may be defined by the order of the elements in the XML file. Each of these actions may be defined as an <Action> element with a type attribute that defines what kind of action is called. An example piece of code is provided below:
The action described above is an action of type YesNoPrompt, which when executed by the interpreter prompts the user with a YES/NO message box. The example code also shows that each action element may contain all of the information required to execute it. In this case, the action contains the text for the title, the $(TEST.TITLE) is a reference to a property, the text for the prompt and what to do if the user presses the button NO.
Installation executable 306 performs multiple tasks once it is executed. These tasks may include detection, user interaction, installation, and post-installation tasks. Detection may include determination of environmental parameters such as system capabilities (processor speed, available memory and hard disk space, and the like), existing product(s) and/or product qualification, version(s) of existing components, language, user preferences (e.g. currency, date and time, and the like).
In an update scenario, the executable may detect if a patch or update is needed by or applicable to the system before doing so. The script may be set up such that the executable may be run in a “detection” mode to determine whether the patch is needed or not, but not install the patch. This mode provides users a simple way of knowing if the patch is needed, installed or not applicable. Once the script determines the applicability of the update, pre-requisite installation criteria may be checked prior to installing the payload. This check may include, but is not limited to, qualifying product(s), preferred language, operating system and/or platform, and required baseline updates. In some cases, an order of updates may be critical for the program. The script may determine which updates are already installed and install any additional ones according to the prescribed order. If there are time limitations on a patch such as an expiration date, the script may determine that and propose to the user to download and install a different patch. The users may also be directed to a download center, where they can download the package themselves.
The use of a schema-based script for describing the actions enables custom dialogs, actions, and custom execution of the actions. Thus, a developer may easily modify the installation executable by changing the installation script 302 and customizing the installation package for a particular purpose. Installation script 302 also provides the ability to create a universal package applicable to any language. Each package may contain language resources for as many languages as necessary.
In the case of update packaging, part of the payload of the update package may be update metadata for consumption by end users and other systems. For example, the XML schema-based script and delivery method may be employed to keep an inventory of the patches in a database.
According to some embodiments, additional installation and post-installation tasks controlled by the installation script 302 may include transmission of failure reports to a monitoring center, activation of components, querying of system resources to gather information regarding existing components and registry operations. A time-sensitive limitation may even be included such that the script may check a download center for current updates if a pre-defined deadline for installing the product has expired. According to other embodiments, installation script 302 may also include rules that define constraints on installation parameters such as which components are to be installed for a given language or user ID.
In an operation, installation script 302 initiates the installation process with the detection actions 318 as described above. Once sufficient information is gathered the script interacts with the user by prompting dialogs 314 and receiving user input 316. The information provided by the user, such as a product key number, user name, and the like, may then be validated in a input validation operation 320. The installation operations 322, such as copying of program files 304, configuration and registration of components, and the like, follow the input validation 320. In some embodiments, post-installation operations such as those described above may also be performed upon successful completion of installation operations 322.
Embodiments are not limited to the illustrated examples operations and components in
Referring now to the following figures, aspects and exemplary operating environments will be described.
In a typical operation according to embodiments, server 432 executes one or more applications that prepare an installation script for a software product, retrieve program files associated with installing the software product from data store 434, and combine the script and the program files into a single-file installation executable. The single-file executable may then be distributed to users through one or more networks 438 or using portable storage media. Portable storage media may include any method of storing and distributing files such as CD-ROMs, DVDs, floppy disks, flash drives, and others.
Server 438 may include additional programs with various functionalities associated with the installation of the software product such as an error monitoring program, a current update download program, and the like. These functionalities and similar ones may also be provided by other servers. As mentioned previously, distribution of software products by downloading over networks is becoming increasingly common. Commonly, there are two primary online software distribution scenarios. The first scenario is distribution of complete software programs, which is occurring with increasing frequency over networks. The second and more common scenario is distribution of product updates (e.g. security updates, functional patches, and the like) over the networks.
Network(s) 438 may include a secure network such as an enterprise network, an unsecured network such as a wireless open network, or the Internet. Network(s) 438 provide communication between the nodes described herein. By way of example, and not limitation, network(s) 438 may include wired media such as a wired network or direct-wired connection, and wireless media such as acoustic, RF, infrared and other wireless media.
Once distributed, the installation executable may be activated in any computing device including, but not limited to, the example devices of Personal Digital Assistant (PDA) 440, laptop computer 442, and desktop computer 444.
Many other configurations of computing devices, applications, data sources, data distribution and analysis systems may be employed to implement distribution of a software product using single-file executables containing scripting logic. Furthermore, the networked environments discussed in
With reference to
As described previously in more detail, packaging application 552 manages the creation of the installation script for controlling the installation of a software product and/or its updates and combines the installation script with applicable program files for installing the product (or updates). Packaging application 552, and any other related programs may be an integrated part of a distribution application or operate remotely and communicate with the distribution application and with other applications running on computing device 532 or on other devices. Furthermore, packaging application 552 may be executed in an operating system other than operating system 565. This basic configuration is illustrated in
The computing device 532 may have additional features or functionality. For example, the computing device 532 may also include additional data storage devices (removable and/or non-removable) such as, for example, magnetic disks, optical disks, or tape. Such additional storage is illustrated in
The computing device 532 may also contain communication connections 576 that allow the device to communicate with other computing devices 510, such as over a network in a distributed computing environment, for example, an intranet or the Internet. Communication connection 576 is one example of communication media. Communication media includes any information delivery media. For example, in accordance with an embodiment, communication media may include a wired network or direct-wired connection. In accordance with another embodiment, communication media may include wireless media such as acoustic, RF, infrared, and other wireless media. In accordance with yet another embodiment, communication media may include computer-readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism. The term “modulated data signal” means a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal. Combinations of any of the above should also be included within the scope of computer-readable media. Computer-readable media may also be referred to as a computer program product.
As described in detail previously, the installation executable created by packaging application 552 may be distributed through communication connections 576 to other computing devices 510, where it may be executed as installation application 506 within operating system 555. Operating systems 565 and 555 do not necessarily have to be the same.
The claimed subject matter also includes methods. These methods can be implemented in any number of ways, including the structures described in this document. One such way is by machine operations, of devices of the type described in this document.
Another optional way is for one or more of the individual operations of the methods to be performed in conjunction with one or more human operators performing some. These human operators need not be collocated with each other, but each can be only with a machine that performs a portion of the program.
Process 700 begins with operation 702, where a type of installation is defined. The type of installation, whether a new product installation or an update/patch installation may determine how an installation script is to be generated and an order of installation operations. Processing advances from operation 702 to operation 704.
At operation 704, the installation script is generated defining the actions and the order of actions for the installation tasks. The schema-based script may be generated using a structured language such as XML and is customizable and extensible. Processing proceeds from operation 704 to operation 706.
At operation 706, applicable program files are gathered. For each type of installation different sets of files including data files, DLLs, and the like may be necessary. Processing moves from operation 706 to operation 708.
At operation 708, the gathered program files and the installation script are combined into a single-file installation executable that can be downloaded over a network or distributed on a portable storage medium. Following operation 708, the installation executable is distributed to the users. A second portion of the process begins when a user executes the installation file. This gap in the operations is represented in process 700 with a dashed line.
At operation 710, the installation file is executed on a user computer. The execution activates the installation script, which begins performing the tasks in a predefined order. As discussed above with respect to
At operation 712, predefined elements such as system capacity (memory, hard disk space, etc.), existing software components, and the like may be detected. Based on the detection results, the installation script may prompt the user to provide input such as selections, product key, user information, and the like. Processing advances from operation 712 to operation 714.
At operation 714, user input in response to the script prompted dialog(s) are received. The dialogs and a UI for the user to provide input may be customized by the script based on a type of installation, a system environment, and the like. Processing advances from operation 714 to decision operation 716.
At decision operation 716, a determination is made whether part or all of the user input is valid. If the user input is valid, processing advances from decision operation 716 to operation 718.
At operation 718, the installation tasks including, but not limited to, copying of files, activation of components, registration of components, and the like, are performed. For example, and as discussed above with respect to
The above specification, examples and data provide a complete description of the manufacture and use of the composition of the embodiments. Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims and embodiments.
The present application is a continuation-in-part of U.S. patent application Ser. No. 11/590,979, entitled “Packaging Software Products As Single-File Executables Containing Script Logic,” filed on Nov. 1, 2006 and expressly incorporated herein by reference.
Number | Date | Country | |
---|---|---|---|
Parent | 11590979 | Nov 2006 | US |
Child | 12794860 | US |