1. Field of the Invention
The present invention relates to a technique for installing a program.
2. Description of the Related Art
In information processors that implement various functions by executing programs, it is possible to change (that is, increase and decrease) the number of functions by changing the number of programs to be installed. Even after purchasing information processors, users are allowed to use desired functions by purchasing and installing programs that provide the functions.
On the other hand, by way of example, Japanese Laid-Open Patent Application No. 2000-293365 teaches (a) storing a previously downloaded version of the program in order to restore the original configuration in case there is a problem in the upgrade of the program; and (b) invalidating the current version of the program and validating the previous version of the program at the time of downgrading.
According to one aspect of the present invention, an information processor includes a storage part configured to store one or more programs included in one or more packages and installed on a package basis, the programs including package information of the respective packages and version information of respective versions; a subordination information retention part configured to correlate the package information with the version information and retain the correlated package information and version information in the storage part on a program basis; a version comparison part configured to compare, if one of the installed programs is to be installed, the version information of the installed one of the programs with version information of the one of the programs to be installed; a subordination determination part configured to determine whether the one of the programs to be installed is subordinate to a package other than a package including the one of the programs to be installed, if the comparison by the version comparison part determines that the version information of the one of the programs to be installed is lower than the compared version information; and an installation part configured to install the one of the programs to be installed if the subordination determination part determines that the one of the programs to be installed is not subordinate to the other package.
According to one aspect of the present invention, an information processing method in an information processor, where one or more programs included in one or more packages are installed in a storage part on a package basis, the programs including package information of the respective packages and version information of respective versions, and the package information is correlated with the version information and the correlated package information and version information are retained in the storage part on a program basis, includes comparing, if one of the installed programs is to be installed, the version information of the installed one of the programs with version information of the one of the programs to be installed; determining whether the one of the programs to be installed is subordinate to a package other than a package including the one of the programs to be installed, if the comparison by the comparing determines that the version information of the one of the programs to be installed is lower than the compared version information; and installing the one of the programs to be installed if the determining determines that the one of the programs to be installed is not subordinate to the other package.
According to one aspect of the present invention, a computer-readable storage medium is provided that stores a program for causing a processor of a computer to execute the information processing method as set forth above.
The object and advantages of the invention will be realized and attained by means of the elements and combinations particularly pointed out in the claims.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory and not restrictive of the invention, as claimed.
Other objects, features and advantages of the present invention will become more apparent from the following detailed description when read in conjunction with the accompanying drawings, in which:
According to, for example, the technique of Japanese Laid-Open Patent Application No. 2000-293365 mentioned above, there is a problem in that in an information processor that installs (or updates) one or more program components included in a single package in a storage device on a package-by-package basis, downgrading cannot be performed safely in the case of a package including (containing) a program component shared by multiple packages.
According to one aspect of the present invention, such an information processor and an information processing method are provided that allow downgrading to be performed safely in the case of a package including (containing) a program component shared by multiple packages in an information processor that installs (or updates) one or more program components included in a single package in a storage device on a package-by-package basis. Further, a computer-readable storage medium is provided that is stored with a program for causing a computer to execute such an information processing method.
A description is given below, with reference to the accompanying drawings, of an embodiment of the present invention.
First, a description is given of the definitions of terms used in this embodiment.
A sales package is a collection of multiple function packages for implementing a function. Examples of the sales package include a copy application sales package, a printer application sales package, and a facsimile (FAX) application sales package. A function package is the smallest program unit (plug-in component) operable in apparatuses. Examples of the function package include a printing control function package, a scanner control function package, and various user interface (UI) function packages.
A software unit visible to users is a sales package. Operations such as installation, updating, and uninstallation are performed on a sales-package basis. Sales packages are installed, updated (that is, upgraded or downgraded), and uninstalled in accordance with a user-desired environment.
The function package is installed in apparatuses as a subordinate component of a sales package. The function package may be subordinate to (included in) multiple sales packages. For example, a function package such as one for printing control may be included in each of sales packages associated with printing operations, such as those for copying, printing, and FAX communications.
A description is given of a hardware configuration of an information processor 100 according to the embodiment of the present invention.
The information processor 100 includes a central processing unit (CPU) 101, a read-only memory (ROM) 102, a random access memory (RAM) 103, a secondary storage 104, a storage medium reader 105, an input unit 106, a display unit 107, and a communication unit 108.
The CPU 101 includes a microprocessor and its peripheral circuits, and controls the information processor 100. The ROM 102 is a memory containing predetermined control programs (software components) executed by the CPU 101. The RAM 103 is a memory used as a work area when the CPU 101 executes predetermined programs stored in the ROM 102 or the secondary storage 104 and performs various control operations.
The secondary storage 104 stores a general-purpose operating system (OS) and various information items including various programs. A hard disk drive (HDD), which is a nonvolatile storage, may be used as the secondary storage 104.
The storage medium reader 105 is a reading unit for reading a storage medium (or a recording medium) 109 such as a compact disk (CD) or a portable memory loaded from outside and entering or recording data in the information processor 100. In the case where the storage medium 109 retains a sales package, the sales package may be installed in the information processor 100 from the storage medium 109 through the storage medium reader 105.
The input unit 106 is provided for a user to perform various operations for inputting data. The input unit 106 includes one or more of a mouse, a keyboard, and a touchscreen switch provided over the display screen of the display unit 107.
The display unit 107 is configured to display various data items on its display screen. The display unit 107 includes, for example, a liquid crystal display (LCD) or a cathode ray tube (CRT).
The communication unit 108 is configured to perform communications with other devices or apparatuses through a network 90 such as a local area network (LAN) or the Internet. The communication unit 108 is configured to support various forms of network communications including wired communications and wireless (radio) communications.
As described above, it is the sales package that is a software unit visible to users. Therefore, according to this embodiment, the sales package is input from outside to the information processor 100 via the storage medium reader 105 or the communication unit 108 (through the network 90).
An information processing program according to this embodiment may be prestored in the secondary storage 104. Alternatively, the information processing program may be retained in the storage medium 109 (such as a CD or a portable memory) and be input to (installed in) the information processor 100 through the storage medium reader 105. Further, it is also possible to download the information processing program from, for example, an external server, through the network 90 connected to the communication unit 108, and to install the information processing program via the communication unit 108.
Next, a description is given of a functional configuration of the information processor 100 according to this embodiment.
The information processor 100 includes a version comparison part 110, an installation part 120, a subordination (dependence) determination part 130, a subordination (dependence) information updating part 140, a subordination (dependence) information retention part 150, and a storage part 200.
The storage part 200 stores and contains data such as installed programs (such as function packages) and subordination information (to be described below). The storage part 200 may be implemented by the secondary storage 104, for example.
The subordination information retention part 150 is configured as follows. With respect to individual programs stored in the storage part 200, that is, installed in the information processor 100, the subordination information retention part 150 correlates information on one or more sales packages in which a program has been included (package information) with the version information (information on one or more corresponding versions) of the program and retains the package information and the version information as subordination information in the storage part 200. A description is given below of the subordination information.
The version comparison part 110 is configured as follows. When a program (for example, a function package) to be installed in the storage part 200 (the information processor 100) has already been installed, the version comparison part 110 compares information on the version of the program to be installed with the version information (information on an installed version) of the program correlated with the same package information as the version of the program to be installed and retained by the subordination information retention part 150 (in the storage part 200).
The subordination determination part 130 is configured to determine whether the program to be installed is subordinate to, that is, included in, a sales package other than the sales package in which the program to be installed is included by, for example, comparing the package information of the program to be installed with the package information of the program retained by the subordination information retention part 150 (in the storage part 200) or determining whether the package information related to the program to be installed matches the package information retained in the storage part 200 with respect to (in correlation with) the program.
The installation part 120 installs the program to be installed in the storage part 200.
The subordination information updating part 140 is configured to update the version information of the program correlated with the same package information as the version of the program to be installed and retained by the subordination information retention part 150 using the information on the version of the program to be installed. For example, the subordination information updating part 140 replaces (overwrites) the information on the installed version of the program correlated with the same package information as the version of the program to be installed and retained by the subordination information retention part 150 with the information on the version of the program to be installed.
The above-described functional parts 110 through 150 and 200 may be implemented by the CPU 101 executing an information processing program according to one embodiment of the present invention.
A description is given below of installation, updating (upgrading and downgrading), and uninstallation of a sales package in the case of including (containing) a function package shared with another sales package (that is, shared by multiple sales packages).
When a sales package is installed, a function package included in the sales package is installed. At this point, the package information of the sales package which the function package belongs to (is included in), such as the name or identifier of the sales package, and the version information (information on the version) of the function package included in the sales package are stored as information related to the function package on a function package basis. The package information may also include the version information of the sales package. These stored information items may be referred to as subordination (dependence) information.
In
A description is given of the subordination information referring to SALES PKG_A (ver. 1.00) by way of example. SALES PKG_A (ver. 1.00) includes FUNCTION PKG 1 (ver. 1.00) and FUNCTION PKG 2 (ver. 1.00). When SALES PKG_A (ver. 1.00) is independently installed in the information processor 100, the version information of each of installed FUNCTION PKG 1 (ver. 1.00) and FUNCTION PKG 2 (ver. 1.00) is correlated with the package information (for example, the name) of SALES PKG_A (ver. 1.00) in which FUNCTION PKG 1 (ver. 1.00) and FUNCTION PKG 2 (ver. 1.00) are included, and the correlated version information and package information are stored as subordination information on a function package basis (that is, in correlation with corresponding function packages).
Next, a description is given of a flow of installation and updating of a sales package in the information processor 100 according to this embodiment.
In this flowchart, while a user performs installation on a sales package basis, installation is performed on a function package basis in the information processor 100. Further, installation of a package means adding the package to the information processor 100 so that the information processor 100 includes the package. Further, updating of a package means replacing a version of the package already (currently) installed in the information processor 100 with a version of the package to be newly added to the information processor 100. At this point, if the version of the package to be newly added is different from the installed version of the package, updating means upgrading or downgrading of the package depending on the hierarchical relationship between the versions.
Referring to
First, in step S20, the information processor 100 determines whether the same function package as a function package to be installed is already installed in the, information processor 100. If the same function package is already installed (YES in step S20), the process proceeds to step S30. If the same function package is not installed (NO in step S20), the process proceeds to step S80. In step S80, the installation part 120 installs the function package in (that is, adds the function package to) the storage part 200.
On the other hand, if the same function package as the function package to be installed is already installed in the information processor 100 (YES in step S20), in step S30, the version comparison part 110 compares the version of the function package to be installed and the installed version of the function package (of the same sales package as the function package to be installed). If the version of the function package to be installed is higher (in order) than its installed version, the process proceeds to step S40. On the other hand, if the version of the function package to be installed is lower (in order) than its installed version, the process proceeds to step S50. If the version of the function package is the same as its installed version, the process proceeds to step S90.
If the version of the function package to be installed is higher than its installed version, in step S40, the installation part 120 updates (upgrades) the function package by replacing the installed version with the higher version to be installed.
On the other hand, if the version of the function package to be installed is lower than its installed version, in step S50, the subordination determination part 130 determines whether the function package is subordinate to (included in) another sales package. If it is determined that the function package is subordinate to another sales package (YES in step S50), the process proceeds to step S60. If it is determined that the function package is subordinate to no other sales package (NO in step S50), the process proceeds to step S70.
In step S60, the version comparison part 110 determines whether the version of the function package to be installed is higher than or equal to the version of the function package included in the other sales package. If it is determined that the version of the function package to be installed is higher than or equal to the version of the function package included in the other sales package (YES in step S60), the process proceeds to step S70. If it is determined that the version of the function package to be installed is lower than the version of the function package included in the other sales package (NO in step S60), the process proceeds to step S90.
In step S70, the installation part 120 updates (downgrades) the function package in the storage part 200 by replacing the installed version with the version to be installed. In step S90, the subordination information updating part 140 updates the subordination information in the storage part 200 based on the version of the function package installed or updated.
As illustrated in (a) of
As illustrated in (a) of
Likewise, FUNCTION PKG 2 is updated (upgraded) from ver. 1.00 to ver. 2.00, and the version information of FUNCTION PKG 2 correlated with the package information of SALES PKG_A is updated from ver. 1.00 to ver. 2.00 in the subordination information of FUNCTION PKG 2. Since FUNCTION PKG 3 is not included in installed SALES PKG_A (ver. 2.00) this time, FUNCTION PKG 3 is not installed. In
As illustrated in (a) of
Next,
As illustrated in (a) of
No installation is performed with respect to FUNCTION PKG 1 because FUNCTION PKG 1 is not included in SALES PKG_B (ver. 1.00) of this time.
The version (1.00) of FUNCTION PKG 2 included in SALES PKG_B (ver. 1.00) is lower than the version (2.00) of FUNCTION PKG 2 subordinate to another sales package (SALES PKG_A). Accordingly, the updating of FUNCTION PKG 2 is not authorized, so that no updating is performed with respect to FUNCTION PKG 2. The version information of FUNCTION PKG 2 correlated with the package information of SALES PKG_B is updated from ver. 2.00 to ver. 1.00 in the subordination information of FUNCTION PKG 2. That is, since FUNCTION PKG 2 is used (included) also in SALES PKG_A (ver. 2.00), FUNCTION PKG 2 is not updated (downgraded).
FUNCTION PKG 3 does not belong to any other sales package (than SALES PKG_B). Accordingly, FUNCTION PKG 3 is updated (downgraded) from ver. 2.00 to ver. 1.00, and the version information of FUNCTION PKG 3 correlated with the package information of SALES PKG_B is updated from ver. 2.00 to ver. 1.00 in the subordination information of FUNCTION PKG 3. The version information of SALES PKG_B, to which FUNCTION PKG 3 belongs, may also be updated from ver. 2.00 to ver. 1.00. In
Further,
As illustrated in (a) of
FUNCTION PKG 1 is updated (downgraded) from ver. 2.00 to ver. 1.00, and the version information of FUNCTION PKG 1 correlated with the package information of SALES PKG_A is updated from ver. 2.00 to ver. 1.00 in the subordination information of FUNCTION PKG 1. The version information of SALES PKG_A, to which FUNCTION PKG 1 belongs, may also be updated from ver. 2.00 to ver. 1.00.
The version (1.00) of FUNCTION PKG 2 included in SALES PKG_A (ver. 1.00) is higher than or equal to the version (1.00) of FUNCTION PKG 2 subordinate to another sales package (SALES PKG_B). Accordingly, the updating of FUNCTION PKG 2 is authorized, so that FUNCTION PKG 2 is updated (downgraded) from ver. 2.00 to ver. 1.00. The version information of FUNCTION PKG 2 correlated with the package information of SALES PKG_A is updated from ver. 2.00 to ver. 1.00 in the subordination information of FUNCTION PKG 2. As described above, the version information of SALES PKG_A, to which FUNCTION PKG 2 belongs, may also be updated from ver. 2.00 to ver. 1.00. In
As described above, in the case of installing SALES PKG_B (ver. 1.00) in
According to an information processor and an information processing method of this embodiment, the correlation between installed program components (programs) and corresponding packages to which the installed program components respectively belong is retained in the information processor. At the time of downgrading a package, if a program component of the package is subordinate to (included in) another package, it is determined whether the downgrade of the program component is higher than or equal to the version of the program component included in the other package before downgrading the individual components of the package. If the downgrade of the program component is not higher than or equal to, that is, lower than the version of the program component included in the other package, downgrading is prevented.
All examples and conditional language recited herein are intended for pedagogical purposes to aid the reader in understanding the invention and the concepts contributed by the inventors to furthering the art, and are to be construed as being without limitation to such specifically recited examples and conditions, nor does the organization of such examples in the specification relate to a showing of the superiority or inferiority of the invention. Although the embodiment of the present invention has been described in detail, it should be understood that various changes, substitutions, and alterations could be made hereto without departing from the spirit and scope of the invention.
The present application is based upon and claims the benefit of priority of Japanese Patent Application No. 2009-168441, filed on Jul. 17, 2009, and Japanese Patent Application No. 2010-143835, filed on Jun. 24, 2010, the entire contents of which are incorporated herein by reference.
Number | Date | Country | Kind |
---|---|---|---|
2009-168441 | Jul 2009 | JP | national |
2010-143835 | Jun 2010 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
6496974 | Sliger et al. | Dec 2002 | B1 |
6704933 | Tanaka et al. | Mar 2004 | B1 |
6763517 | Hines | Jul 2004 | B2 |
7150015 | Pace et al. | Dec 2006 | B2 |
7313792 | Buban et al. | Dec 2007 | B2 |
7568195 | Markley et al. | Jul 2009 | B2 |
7593661 | Watanabe et al. | Sep 2009 | B2 |
7720875 | Maeda | May 2010 | B2 |
7987449 | Marolia et al. | Jul 2011 | B1 |
8020149 | Wolf | Sep 2011 | B2 |
8074205 | Shastry et al. | Dec 2011 | B2 |
8397230 | Ewington et al. | Mar 2013 | B2 |
8448161 | Goldman | May 2013 | B2 |
20030014381 | McMillan et al. | Jan 2003 | A1 |
20030051236 | Pace et al. | Mar 2003 | A1 |
20060033950 | Nakamura | Feb 2006 | A1 |
20060184932 | Burnley et al. | Aug 2006 | A1 |
20070006222 | Maier et al. | Jan 2007 | A1 |
20070058195 | Nakamura et al. | Mar 2007 | A1 |
20070294685 | Oh | Dec 2007 | A1 |
20080007794 | Yoshida | Jan 2008 | A1 |
20080092130 | Maeda | Apr 2008 | A1 |
20080120394 | Yokoyama et al. | May 2008 | A1 |
20080134011 | Ogura | Jun 2008 | A1 |
20080144097 | Yoshida | Jun 2008 | A1 |
20080148250 | Motta | Jun 2008 | A1 |
20080195590 | Nakamura et al. | Aug 2008 | A1 |
20090051952 | Abe et al. | Feb 2009 | A1 |
20090070755 | Taylor et al. | Mar 2009 | A1 |
20090089076 | Asakimori et al. | Apr 2009 | A1 |
20090190147 | Uruta et al. | Jul 2009 | A1 |
20090225356 | Satoh et al. | Sep 2009 | A1 |
20090323107 | Maeda | Dec 2009 | A1 |
20100235433 | Ansari et al. | Sep 2010 | A1 |
20100251232 | Shinomiya | Sep 2010 | A1 |
20110113424 | Ewington et al. | May 2011 | A1 |
20120144378 | Shah | Jun 2012 | A1 |
20120222025 | Pandit | Aug 2012 | A1 |
20120324435 | Somani et al. | Dec 2012 | A1 |
Number | Date | Country |
---|---|---|
0 703 531 | Mar 1996 | EP |
1 548 586 | Jun 2005 | EP |
2000-293365 | Oct 2000 | JP |
2007-004377 | Jan 2007 | JP |
WO 0077614 | Dec 2000 | WO |
Entry |
---|
Petr Pp Kubon; Information Packing Revisitted; [Mar. 1999]; retrieved online on Jun. 9, 2013; pp. 1-282; Retrieved from the Internet: <URL: http://fas.sfu.ca/pub/cs/theses/1999/PetrKubon Ph D.pdf>. |
Paulo Trezentos et al.; Apt-pbo: Solving the Software Dependency Problem using Pseudo-Boolean Optimization; [2010]; retrieved online on Jun. 9, 2013; pp. 427-436; Retrieved from the Internet: <URL: http://delivery.acm.org/10.1145/1860000/1859087/p427-trezentos.pdf?>. |
Eya Ben Charrada et al.; Identifying Outdated Requrements Based on Source Code Changes; [2012]; retrieved online on Jun. 9, 2013; pp. 61-70; Retrieved from the Internet <URL: http://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=6345840>. |
Extended European Search Report. |
Number | Date | Country | |
---|---|---|---|
20110016464 A1 | Jan 2011 | US |