JP2020049699A - Image processor, and method and program for processing library included in application - Google Patents
Image processor, and method and program for processing library included in application Download PDFInfo
- Publication number
- JP2020049699A JP2020049699A JP2018179144A JP2018179144A JP2020049699A JP 2020049699 A JP2020049699 A JP 2020049699A JP 2018179144 A JP2018179144 A JP 2018179144A JP 2018179144 A JP2018179144 A JP 2018179144A JP 2020049699 A JP2020049699 A JP 2020049699A
- Authority
- JP
- Japan
- Prior art keywords
- library
- application
- difference
- image processing
- processing apparatus
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Accessory Devices And Overall Control Thereof (AREA)
- Facsimiles In General (AREA)
Abstract
Description
この発明は、複写機、プリンタ、ファクシミリ、あるいはこれらの複合機等の画像処理装置、同装置で実行されるアプリケーション内包ライブラリの処理方法、及びプログラムに関する。 The present invention relates to an image processing apparatus such as a copier, a printer, a facsimile, or a multifunction peripheral thereof, a method of processing an application-containing library executed by the apparatus, and a program.
昨今の画像処理装置では、アプリケーションの開発等に際して、1個又は複数個のアプリケーションで使用される、プログラムであるライブラリを記憶部に保存しておき、アプリケーションの使用時には、保存されているライブラリを呼び出して使用することが行われている。 In recent image processing apparatuses, a library that is a program used by one or a plurality of applications is stored in a storage unit when an application is developed, and the stored library is called when the application is used. The use has been done.
このようなライブラリとしてアプリケーションに内包されているものがあり、この場合は、アプリケーションをインストールすると、内包されているライブラリも同時にインストールされることになる。 Some of such libraries are included in the application. In this case, when the application is installed, the included library is also installed at the same time.
しかし、内包されているライブラリと同じライブラリが既に存在している場合は、画像処理装置のリソースの最適化の観点から、内包ライブラリを削除することが望ましい。 However, if the same library as the included library already exists, it is desirable to delete the included library from the viewpoint of optimizing the resources of the image processing apparatus.
特許文献1には、イベントの発生を検出した際に旧版プログラムを起動する構成とされた情報処理装置において、旧版プログラムを最新版プログラムに変更する作業や旧版プログラムに戻す作業を、より簡単に実施可能とする技術が開示されている。具体的には、最新バージョンのインストールの度にレジストリに管理情報を登録し、対象プログラムの実行時に最新のバージョンのものを指定したり、復旧時には旧バージョンのものを指定する、という構成である。
しかし、アプリケーションが内包するライブラリと既に保存されているライブラリの名称やバージョンが同じであっても、内容(中身)に差異がある場合がある。例えば、アプリケーションが内包するライブラリが、アプリケーション用にカスタマイズされているようなライブラリである場合が考えられる。このようなライブラリまで削除してしまうと、このライブラリを内包するアプリケーションが正常に動作しなくなる恐れがあるという課題がある。 However, even if the name and version of the library included in the application and the library already stored are the same, there may be a difference in the contents (contents). For example, the library included in the application may be a library customized for the application. When such a library is deleted, there is a problem that an application including the library may not operate normally.
なお、特許文献1に記載の技術では、バージョン情報を参照するだけでプログラムの内容までは考慮されておらず、同一バージョン情報であっても内容が異なっているプログラムについては対応できない。このため特許文献1の技術では上記課題を解決することはできなかった。
Note that the technique described in
この発明は、このような技術的背景に鑑みてなされたものであって、ライブラリを内包するアプリケーションがインストールされるときに、内包されているライブラリが既に保存されているライブラリと内容が相違するにも拘わらず削除されるのを防止できる画像処理装置、アプリケーション内包ライブラリの処理方法及びプログラムの提供を目的とする。 The present invention has been made in view of such a technical background, and when an application including a library is installed, the content of the included library is different from that of a library in which the library is already stored. It is an object of the present invention to provide an image processing apparatus, a method for processing an application inclusion library, and a program, which can prevent deletion despite the fact.
上記目的は以下の手段によって達成される。
(1)アプリケーションで使用される1個または複数個の第1のライブラリを保存する保存手段と、アプリケーションをインストール可能なインストール手段と、前記インストール手段により第2のライブラリを内包するアプリケーションがインストールされるときまたはインストールされた後に、アプリケーションに内包された前記第2のライブラリを抽出する抽出手段と、前記抽出手段により抽出された前記第2のライブラリと前記保存手段に保存されている第1のライブラリとを差分比較する比較手段と、前記比較手段による差分比較の結果、前記第2のライブラリと第1のライブラリとに差異が存在する場合、前記第2のライブラリは削除することなく使用可能に保持する制御手段と、を備えたことを特徴とする画像処理装置。
(2)前記比較手段は、サイズ比較により前記第2のライブラリと第1のライブラリを差分比較する前項1に記載の画像処理装置。
(3)前記比較手段は、バイナリ比較により前記第2のライブラリと第1のライブラリを差分比較する前項1に記載の画像処理装置。
(4)前記比較手段は、チェックサム比較により前記第2のライブラリと第1のライブラリを差分比較する前項1に記載の画像処理装置。
(5)前記比較手段は、ソースコード比較により前記第2のライブラリと第1のライブラリを差分比較する前項1に記載の画像処理装置。
(6)前記比較手段による差分比較の結果、前記第2のライブラリと差異がない第1のライブラリが存在する場合、前記制御手段は、前記第2のライブラリを削除する前項1〜5のいずれかに記載の画像処理装置。
(7)前記第2のライブラリが保持された場合、前記制御手段は、前記第2のライブラリを内包するアプリケーションに対して第2のライブラリを優先的に使用させる前項1〜6のいずれかに記載の画像処理装置。
(8)前記第2のライブラリが画像処理装置の固有の機能に関するライブラリである場合、前記制御手段は、前記第2のライブラリを内包するアプリケーションに対して前記第1のライブラリを優先的に使用させる前項7に記載の画像処理装置。
(9)画像処理装置はプリント動作が可能であり、画像処理装置の固有の機能に関連するライブラリは、プリント動作に関連するライブラリである前項8に記載の画像処理装置。
(10)画像処理装置はスキャン動作が可能であり、画像処理装置の固有の機能に関連するライブラリは、スキャン動作に関連するライブラリである前項8に記載の画像処理装置。
(11)アプリケーションで使用される1個または複数個の第1のライブラリを保存する保存手段を備えた画像処理装置が、アプリケーションをインストールするインストールステップと、前記インストールステップにより第2のライブラリを内包するアプリケーションがインストールされるときまたはインストールされた後に、アプリケーションに内包された前記第2のライブラリを抽出する抽出ステップと、前記抽出ステップにより抽出された前記第2のライブラリと前記保存手段に保存されている第1のライブラリとを差分比較する比較ステップと、前記比較ステップによる差分比較の結果、前記第2のライブラリと第1のライブラリとに差異が存在する場合、前記第2のライブラリは削除することなく使用可能に保持する制御ステップと、を実行することを特徴とするアプリケーション内包ライブラリの処理方法。
(12)アプリケーションで使用される1個または複数個の第1のライブラリを保存する保存手段を備えた画像処理装置のコンピュータに、アプリケーションをインストールするインストールステップと、前記インストールステップにより第2のライブラリを内包するアプリケーションがインストールされるときまたはインストールされた後に、アプリケーションに内包された前記第2のライブラリを抽出する抽出ステップと、前記抽出ステップにより抽出された前記第2のライブラリと前記保存手段に保存されている第1のライブラリとを差分比較する比較ステップと、前記比較ステップによる差分比較の結果、前記第2のライブラリと第1のライブラリとに差異が存在する場合、前記第2のライブラリは削除することなく使用可能に保持する制御ステップと、を実行させるためのプログラム。
The above object is achieved by the following means.
(1) A storage unit for storing one or a plurality of first libraries used by an application, an installation unit capable of installing the application, and an application including a second library is installed by the installation unit. Extracting means for extracting the second library included in the application at a time or after being installed; and the second library extracted by the extracting means and the first library stored in the storage means. Means for comparing the difference between the first library and the second library, as a result of the difference comparison by the comparing means, the second library is kept usable without being deleted. An image processing apparatus comprising: a control unit.
(2) The image processing apparatus according to (1), wherein the comparing means compares the difference between the second library and the first library by size comparison.
(3) The image processing apparatus according to (1), wherein the comparing unit compares the difference between the second library and the first library by binary comparison.
(4) The image processing device according to (1), wherein the comparing unit compares the difference between the second library and the first library by a checksum comparison.
(5) The image processing device according to (1), wherein the comparing unit compares the difference between the second library and the first library by comparing source codes.
(6) As a result of the difference comparison by the comparing unit, when there is a first library having no difference from the second library, the control unit deletes the second library. An image processing apparatus according to
(7) In the case where the second library is held, the control unit causes the application including the second library to use the second library preferentially. Image processing device.
(8) When the second library is a library relating to a function unique to the image processing apparatus, the control unit causes an application including the second library to preferentially use the first library. Item 8. The image processing device according to Item 7.
(9) The image processing apparatus according to the aforementioned item 8, wherein the image processing apparatus is capable of performing a printing operation, and the library relating to the unique function of the image processing apparatus is a library relating to the printing operation.
(10) The image processing device according to the aforementioned item 8, wherein the image processing device is capable of performing a scanning operation, and the library relating to the unique function of the image processing device is a library relating to the scanning operation.
(11) An image processing apparatus including a storage unit for storing one or a plurality of first libraries used in an application includes an installation step of installing the application, and includes the second library by the installation step. An extracting step of extracting the second library included in the application when or after the application is installed, and the second library extracted by the extracting step and being stored in the storage unit A comparing step of comparing the first library with the difference; and, as a result of the difference comparison in the comparing step, when there is a difference between the second library and the first library, the second library is not deleted. Control step to keep available Method of processing an application containing the library, which comprises the, execution.
(12) an installation step of installing the application in a computer of the image processing apparatus provided with a storage unit for storing one or a plurality of first libraries used by the application; An extraction step of extracting the second library included in the application when or after the included application is installed, and the second library extracted in the extraction step and the second library extracted by the extraction step are stored in the storage unit. A comparison step of comparing the difference between the first library and the first library, and if the difference between the second library and the first library is found as a result of the difference comparison in the comparison step, the second library is deleted. Can be used without Program for executing a control step that, a.
前項(1)に記載の発明によれば、第2のライブラリを内包するアプリケーションがインストールされるときまたはインストールされた後に、アプリケーションに内包された第2のライブラリが抽出されるとともに、抽出された第2のライブラリと保存手段に保存されている第1のライブラリとが差分比較される。つまり、名称やバージョンに基づく同一性ではなく、内容(中身)の同一性を比較する。差分比較の結果、第2のライブラリと第1のライブラリとに差異が存在する場合は、第2のライブラリは削除されることなく使用可能に保持される。つまり、インストールされるアプリケーションに内包される第2のライブラリが、既に保存されている第1のライブラリと内容に差があれば、使用可能に保持されるから、例えば、内包されているライブラリがアプリケーション用にカスタマイズされているようなライブラリである場合に、このライブラリが削除されることによりアプリケーションが適正に動作しなくなるといった問題を解消することができる。 According to the invention described in the above (1), when or after the application including the second library is installed, the second library included in the application is extracted and the extracted second library is extracted. The difference between the second library and the first library stored in the storage unit is compared. That is, it compares not the identity based on the name or the version but the identity of the contents (contents). As a result of the difference comparison, if there is a difference between the second library and the first library, the second library is kept usable without being deleted. In other words, if the content of the second library included in the application to be installed is different from the content of the first library already stored, the second library is retained so that it can be used. In the case where the library is customized for use, the problem that the application does not operate properly due to the deletion of the library can be solved.
前項(2)に記載の発明によれば、サイズ比較により第2のライブラリと第1のライブラリが差分比較されるから、的確な差分比較を行うことができる。 According to the invention described in the above item (2), since the difference between the second library and the first library is compared by the size comparison, accurate difference comparison can be performed.
前項(3)に記載の発明によれば、バイナリ比較により第2のライブラリと第1のライブラリが差分比較されるから、的確な差分比較を行うことができる。 According to the invention described in the above item (3), since the difference between the second library and the first library is compared by the binary comparison, an accurate difference comparison can be performed.
前項(4)に記載の発明によれば、チェックサム比較により第2のライブラリと第1のライブラリが差分比較されるから、的確な差分比較を行うことができる。 According to the invention described in the above item (4), since the difference between the second library and the first library is compared by the checksum comparison, an accurate difference comparison can be performed.
前項(5)に記載の発明によれば、ソースコード比較により第2のライブラリと第1のライブラリが差分比較されるから、的確な差分比較を行うことができる。 According to the invention described in the above item (5), since the difference between the second library and the first library is compared by the source code comparison, an accurate difference comparison can be performed.
前項(6)に記載の発明によれば、差分比較の結果、第2のライブラリと差異がない第1のライブラリが存在する場合、第2のライブラリは削除されるから、画像処理装置の保存手段等のリソースをその分有効に活用することができる。 According to the invention described in the above (6), if the result of the difference comparison indicates that there is a first library having no difference from the second library, the second library is deleted. And other resources can be effectively utilized.
前項(7)に記載の発明によれば、第2のライブラリが保持された場合、第2のライブラリを内包するアプリケーションに対して第2のライブラリを優先的に使用させるから、アプリケーションを第2のライブラリに従って動作させることができる。 According to the invention described in the above item (7), when the second library is held, the application including the second library is preferentially used by the second library. It can be operated according to the library.
前項(8)に記載の発明によれば、アプリケーションに内包される第2のライブラリが画像処理装置の固有の機能に関するライブラリである場合、アプリケーションに第2のライブラリを使用させると、画像処理装置の固有の機能の動作に影響を与えるおそれがあることから、固有の機能の動作を保証できる第1のライブラリを使用させる。 According to the invention described in the above item (8), when the second library included in the application is a library relating to a function unique to the image processing apparatus, when the application uses the second library, Since the operation of the unique function may be affected, the first library that can guarantee the operation of the unique function is used.
前項(9)に記載の発明によれば、アプリケーションに内包される第2のライブラリが画像処理装置のプリント動作に関連するライブラリである場合に、アプリケーションに第1のライブラリを使用させることで、プリント動作への影響を防止する。 According to the invention as recited in the aforementioned Item (9), when the second library included in the application is a library related to the printing operation of the image processing apparatus, the application is caused to use the first library to perform printing. Prevent effects on operation.
前項(10)に記載の発明によれば、アプリケーションに内包される第2のライブラリが画像処理装置のスキャン動作に関連するライブラリである場合に、アプリケーションに第1のライブラリを使用させることで、スキャン動作への影響を防止する。 According to the invention described in the above (10), when the second library included in the application is a library related to the scanning operation of the image processing apparatus, the application is allowed to use the first library to perform the scanning. Prevent effects on operation.
前項(11)に記載の発明によれば、インストールされるアプリケーションに内包される第2のライブラリが、既に保存されている第1のライブラリと内容に差があれば、使用可能に保持されるから、例えば、内包されているライブラリがアプリケーション用にカスタマイズされているようなライブラリである場合に、このライブラリが削除されることによりアプリケーションが適正に動作しなくなるといった問題を解消することができる。 According to the invention described in (11) above, if the second library included in the application to be installed has a difference in content from the already stored first library, the second library is held usable. For example, when the included library is a library customized for the application, the problem that the application does not operate properly due to the deletion of the library can be solved.
前項(12)に記載の発明によれば、第2のライブラリを内包するアプリケーションをインストールされるときまたはインストールされた後に、アプリケーションに内包された第2のライブラリを抽出し、この抽出した第2のライブラリと保存手段に保存されている第1のライブラリとの差分比較を行い、差分比較の結果、第2のライブラリと第1のライブラリとに差異が存在する場合、第2のライブラリは削除することなく使用可能に保持する処理を、画像処理装置のコンピュータに実行させることができる。 According to the invention as recited in the aforementioned Item (12), when or after the application including the second library is installed, the second library included in the application is extracted, and the extracted second library is extracted. Comparing the difference between the library and the first library stored in the storage unit, and, as a result of the difference comparison, when there is a difference between the second library and the first library, the second library is deleted. It is possible to cause the computer of the image processing apparatus to execute the process of keeping the image processing device usable.
以下、この発明の実施形態を図面に基づいて説明する。 Hereinafter, embodiments of the present invention will be described with reference to the drawings.
図1は、この発明の一実施形態に係る画像処理装置としての画像形成装置1の構成を示すブロック図である。この実施形態では、画像形成装置1として、コピー機能、プリンタ機能、ファクシミリ機能、スキャン機能等を備えた多機能デジタル複合機であるMFP(Multifunction Peripheral)が用いられている。以下、画像処理装置をMFPともいう。
FIG. 1 is a block diagram showing a configuration of an
図1に示すように、MFP1は、制御部100、記憶装置110、画像読取装置120、操作パネル130、画像出力装置140、プリンタコントローラ150及びネットワークインターフェイス(ネットワークI/F)160、無線通信インターフェース(無線通信I/F)170、認証部180等を備え、互いにシステムバス175を介して接続されている。
As shown in FIG. 1, the
制御部100は、CPU(Central Processing Unit)101、ROM(Read Only Memory)102、S−RAM(Static Random Access Memory)103、NV−RAM(Non Volatile RAM)104及び時計IC105等を備えている。
The control unit 100 includes a CPU (Central Processing Unit) 101, a ROM (Read Only Memory) 102, an S-RAM (Static Random Access Memory) 103, an NV-RAM (Non Volatile RAM) 104, a
CPU101は、ROM102等に保存されている動作プログラムを実行することにより、MFP1の全体を統括的に制御する。例えばコピー機能、プリンタ機能、スキャン機能、ファクシミリ機能等を実行可能に制御したり、ユーザーによる操作パネル135の操作入力を受け付けて、指示されたジョブの動作条件の設定値を設定する処理を行う。更にこの実施形態では、アプリケーションをインストールしたり、ライブラリを内包するアプリケーションがインストールされるときまたはインストールされた後に、アプリケーションに内包されたライブラリを抽出するとともに、抽出したライブラリと同一の名称及び同一のバージョンのライブラリが、記憶装置110に保存されているかどうかを判断したり、抽出したライブラリと同一の名称及び同一のバージョンのライブラリが保存されている場合は、そのライブラリと抽出したライブラリとを差分比較して内容(中身)が同一かどうかを判断する等の処理を行うが、詳細は後述する。
The
ROM102は、CPU101が実行するプログラムやその他のデータを格納する。
The
S−RAM103は、CPU101がプログラムを実行する際の作業領域となるものであり、プログラムやプログラムを実行する際のデータ等を一時的に保存する。
The S-
NV−RAM104は、バッテリでバックアップされた不揮発メモリであり、画像形成に係わる各種の設定等を記憶するものである。
The NV-
時計IC105は、時刻を計時すると共に、内部タイマーとして機能し処理時間の計測等を行う。
The
記憶装置110(保存手段に相当する)は、ハードディスク等からなり、1個または複数個のアプリケーション、1個または複数個のライブラリその他各種データ等を保存する。 The storage device 110 (corresponding to a storage unit) includes a hard disk or the like, and stores one or a plurality of applications, one or a plurality of libraries, and various other data.
画像読取装置120は、スキャナ等を備え、プラテンガラス上にセットされた原稿を走査することによって読み取り、読み取った原稿を画像データに変換する。つまりスキャン動作を実行する。
The
操作パネル130は、操作手段として、ユーザーがMFP1へジョブ等の指示や各種設定を行う際に用いられるものであり、リセットキー131、スタートキー132、ストップキー133、表示部134及びタッチパネル135等を備えている。
The
リセットキー131は、設定をリセットする際に使用されるものであり、スタートキー132はスキャン等の開始操作に使用されるものであり、ストップキー133は動作を中断する場合等に押下されるものである。
A
表示部134は、例えば液晶表示装置からなりメッセージや各種の操作画面等を表示するものであり、タッチパネル135は表示部134の画面上に形成され、ユーザーのタッチ操作を検出する。
The
画像出力装置140は、画像読取装置120で読み取られた原稿の画像データや、端末装置3から送信されたプリントデータから生成された複写画像を用紙上に印字し印刷物として出力するものである。つまりプリント動作を実行する。
The
プリンタコントローラ150は、ネットワークインターフェース160によって受信されたプリントデータから複写画像を生成するものである。
The
ネットワークI/F160は、ネットワーク4を介してデータの送受信を行う通信手段として機能し、無線通信I/F170は近距離無線通信により外部装置と通信を行うためのインターフェースである。
The network I /
認証部180はログインするユーザーの認証用情報を取得し、この認証用情報を予め固定記憶装置110等に保存されている照合用の情報と比較照合して認証を行うものである。なお、ユーザーの認証用情報と照合用の情報との比較照合は、外部の認証サーバーにより行い、認証部180が認証サーバーから認証結果を受信することにより認証が行われても良い。
The
次に、図1に示したMFP1の動作を説明する。
Next, the operation of the
図2(A)に示すように、MFP1の保存領域(保存手段)である記憶装置110には、1個又は複数個のアプリケーションで使用されるプログラムであるライブラリA(第1のライブラリに相当)200が保存されているものとする。
As shown in FIG. 2A, a
次に、ライブラリA200が保存されている状態で、同図に示すように、ライブラリA200と名称及びバージョンが同じライブラリA’210(第2のライブラリに相当する)を内包する新たなアプリケーションB300が、MFP1にインストールされる場合を考える。
Next, in a state where the library A200 is stored, as shown in the figure, a new application B300 including the library A'210 (corresponding to the second library) having the same name and version as the library A200 is created. It is assumed that the
MFP1は、ユーザーの端末装置2やサーバー等からアプリケーションB300のインストールを開始すると(丸数字1)、アプリケーションB300をS−RAM103上に展開して内包されているライブラリA’(以下、内包ライブラリともいう)210を抽出し、内包ライブラリ210と記憶装置110に既に保存されているライブラリA200の内容(中身)をRAM103上で差分比較し、同一内容かどうかを判断する(丸数字2)。
When the
内包ライブラリ210とライブラリA200の内容の差分比較の方法は限定されない。一例として、両ライブラリのファイルサイズを比較するサイズ比較法を挙げることができ、両ライブラリのファイルサイズが同一であれば中身が同じと判断する。
The method for comparing the difference between the contents of the included
差分比較法の他の例として両ライブラリのバイナリデータファイルを比較するバイナリ比較法を挙げることができ、両ライブラリのバイナリデータファイルが同一であれば中身が同じと判断する。 Another example of the difference comparison method is a binary comparison method in which the binary data files of both libraries are compared. If the binary data files of both libraries are the same, it is determined that the contents are the same.
差分比較法のさらに他の例として、両ライブラリのチェックサムを算出して比較するチェックサム比較法を挙げることができ、両ライブラリのチェックサムが同一であれば中身が同じと判断する。 Still another example of the difference comparison method is a checksum comparison method in which the checksums of both libraries are calculated and compared. If the checksums of both libraries are the same, the contents are determined to be the same.
差分比較法のさらに他の例として、両ライブラリがそれぞれソースコードを含んでいる場合は、ソースコードを比較するソースコード比較法を挙げることができ、両ライブラリのソースコードが同一であれば中身が同じと判断する。 Another example of the difference comparison method is a source code comparison method in which the source code is compared when both libraries include the source code. Judge the same.
このような差分比較法を用いることによって、内包ライブラリ210と記憶装置110に既に保存されているライブラリA200の中身に差異があるかどうかを的確に調べることができる。
By using such a difference comparison method, it is possible to accurately check whether there is a difference between the contents of the included
内包ライブラリ210と記憶装置110に既に保存されているライブラリA200の中身に差異がある(同一でない)と判断された場合、内包ライブラリ210はライブラリA200をカスタマイズしたライブラリの可能性があるため、内包ライブラリ210をアプリケーションB300から削除することなく保持したままで、アプリケーションB300をインストールする(丸数字3)。
If it is determined that there is a difference (not identical) between the contents of the included
従って、図2(B)に示すように、既にライブラリA200が保存されているMFP1の記憶装置110には、内包ライブラリ210を保持したアプリケーションB300が保存される。
Therefore, as shown in FIG. 2B, the application B300 holding the included
アプリケーションB300のインストール後、アプリケーションB300の使用時には、MFP1のCPU101は、アプリケーションB300の内包アプリ210を優先的に使用させる。つまり、アプリケーションB300は自身の内包アプリ210を使用するから、正常に動作する。
After the application B300 is installed, when using the application B300, the
このように、この実施形態では、ライブラリ210を内包するアプリケーションB300がインストールされるときに、アプリケーションB300に内包されたライブラリ210が抽出され、この抽出された内包ライブラリ210と記憶装置110に既に保存されているライブラリA200の中身が同一かどうかが差分比較され判断される。そして、抽出された内包ライブラリ210と記憶装置110に保存されているライブラリA200に差異があれば、内包ライブラリ210は削除されることなく保持されたままアプリケーションB300がインストールされる。また、アプリケーションB300に対して内包ライブラリ210を使用させるから、アプリケーションB300は内包ライブラリ210に従って適正に動作する。
In this manner, in this embodiment, when the application B300 including the
なお、上記の実施形態では、アプリケーションB300のインストールのときに内包ライブラリ210を抽出し、内包ライブラリ210と記憶装置110に既に保存されているライブラリA200の差異を比較した。しかし、アプリケーションB300がインストールされた後、換言すればアプリケーションB300と内包ライブラリ210が記憶装置110に保存された後に、内包ライブラリ210を抽出し、内包ライブラリ210と記憶装置110に既に保存されているライブラリA200の差異を比較しても良い。
In the above embodiment, the
また、内包ライブラリ210と記憶装置110に既に保存されているライブラリA200とに差異がない場合は、MFP1のリソースを有効活用するため、内包ライブラリを削除しても良い。
If there is no difference between the included
次に、この発明の他の実施形態を説明する。上記の実施形態では、アプリケーション300に内包されている内包ライブラリ210が、記憶装置110に保存されているライブラリA200と名称やバージョンが同じであっても、中身に差異があれば内包ライブラリ210をそのまま保持させるものとした。
Next, another embodiment of the present invention will be described. In the above embodiment, even if the included
しかし、この実施形態では、内包ライブラリ210がMFP1の固有の機能に関するライブラリである場合は、中身に差異があっても、アプリケーション300に対しては内包ライブラリ210ではなく、記憶装置110に保存されているライブラリA200を優先的に使用させるようになっている。
However, in this embodiment, if the included
MFP1の固有の機能に関するライブラリは予め設定されており、例えばプリント動作に関連するライブラリや、画像読取装置120により原稿を読み取って画像データに変換するスキャン機能に関連するライブラリを例示できる。
Libraries relating to functions unique to the
図3に示すように、MFP1の記憶装置110には、ライブラリA200〜ライブラリE204が既に保存されている。この例では、ライブラリA200及びライブラリB201がプリント用カスタマイズライブラリであり、ライブラリC202がセキュリティ用ライブラリであり、ライブラリD203が通信用ライブラリであり、ライブラリE204がスキャン用カスタマイズライブラリである場合を示している。MFP1の固有の機能に関するライブラリは、ライブラリA200、ライブラリB201及びライブラリE204である。
As shown in FIG. 3, the
次に、ライブラリA200が保存されている状態で、図4(A)に示すように、ライブラリA200と名称及びバージョンが同じライブラリA’210を内包する新たなアプリケーションN300が、MFP1にインストールされる場合を考える。
Next, when the library A200 is stored and a new application N300 including the library A'210 having the same name and version as the library A200 is installed in the
MFP1は、ユーザーの端末装置2やサーバー等からアプリケーションN300のインストールを開始すると(丸数字1)、アプリケーションN300をS−RAM103上に展開して内包ライブラリ210を抽出する。そして、各ライブラリの中から内包ライブラリ210と名称及びバージョンが同じライブラリA200を検出したのち、内包ライブラリ210とライブラリA200の内容(中身)をRAM103上で差分比較し、同一内容かどうかを判断する(丸数字2)。
When the
ここで、内包ライブラリ210とライブラリA200の中身に差異がある(同一でない)と判断されても、ライブラリA200はMFP1の固有の機能であるプリント用カスタマイズライブラリであるから、内包ライブラリ210を削除する(丸数字3)。これによって、図4(B)に示すように、MFP1にインストールされ記憶装置110に保存されたアプリケーションNの動作時にはライブラリA200を使用させることになる。なお、図4(B)では、他のライブラリB201〜ライブラリE204は省略してある。
Here, even if it is determined that there is a difference (not the same) in the contents of the included
なお、内包ライブラリ210を削除するのではなく、アプリケーションNにそのまま保持させるが、アプリケーションNの動作時には内包ライブラリ210の使用を禁止して、ライブラリA200を使用させる制御を行っても良い。
In addition, instead of deleting the included
このように、内包ライブラリ210の削除を含む使用禁止により、アプリケーションNの動作時にはライブラリA200を優先的に使用させることで、MFP1の固有の機能であるプリント動作に影響を与える恐れを極力排除することができる。
As described above, by using the
なお、内包ライブラリ210がスキャン用カスタマイズライブラリであるライブラリE204と名称、バージョンが同一である場合も同様である。
The same applies to the case where the included
図5は、ライブラリ210を内包するアプリケーション300がインストールされるときのMFP1の動作を説明するためのフローチャートである。このフローチャートに示される動作は、MFP1のCPU101がROM102等の記録媒体に格納された動作プログラムに従って動作することにより実行される。
FIG. 5 is a flowchart illustrating an operation of
ステップS01ではアプリケーション300のインストールを開始し、ステップS02で、アプリケーション300内のライブラリ保持状態、換言すれば内包ライブラリ210が存在しているかどうかを確認する。
In step S01, the installation of the
次いでステップS03で内包ライブラリ210の有無を判断する。内包ライブラリ210が存在しなければ(ステップS03でNO)、ステップS10で、アプリケーション300のインストールを継続し完了する。内包ライブラリ210が存在すれば(ステップS03でYES)、ステップS04で内包ライブラリ210を抽出した後、ステップS05で、MFP1の記憶装置110に、抽出した内包ライブラリ210と名称が同じでバージョンも同じライブラリA200が存在するかどうかを判断する。
Next, in step S03, the presence or absence of the
抽出した内包ライブラリ210と名称が同じでバージョンも同じライブラリA200が存在しない場合(ステップS05でNO)、ステップS10に進み、アプリケーション300のインストールを継続し完了する。内包ライブラリ210と名称が同じでバージョンも同じライブラリA200が存在する場合は(ステップS05でYES)、ステップS06で、記憶装置110内の該当ライブラリA200と抽出した内包ライブラリ210を差分比較したのち、ステップS07で差異の有無を判断する。
If there is no library A200 having the same name and the same version as the extracted included library 210 (NO in step S05), the process proceeds to step S10, where the installation of the
差異がなければ(ステップS07でNO)、両ライブラリは中身も同一であるから、ステップS09で内包ライブラリ210を削除した後、ステップS10でアプリケーション300のみをインストールする。
If there is no difference (NO in step S07), the contents of the two libraries are the same. Therefore, after deleting the included
ステップS07で差異がある場合(ステップS07でYES)、ステップS08で、ライブラリA200はMFP1の固有の機能に関連するライブラリかどうかを判断する。MFP1の固有の機能に関連するライブラリでなければ(ステップS08でNO)、ステップS10で、内包アプリ210を保持したアプリケーション300をインストールする。MFP1の固有の機能に関連するライブラリであれば(ステップS08でYES)、ステップS9で内包ライブラリ210を削除した後、ステップS10でアプリケーション300のみをインストールする。
If there is a difference in step S07 (YES in step S07), in step S08, library A200 determines whether or not the library is a library related to a function unique to MFP1. If the library is not a library related to the unique function of the MFP 1 (NO in step S08), the
1 MFP
100 制御部
101 CPU
102 ROM
110 記憶装置(保存手段)
134 表示部
200〜204 画像処理装置側のライブラリ
210 アプリケーションに内包されているライブラリ
300 インストールされるアプリケーション
1 MFP
100
102 ROM
110 storage device (storage means)
134
Claims (12)
アプリケーションをインストール可能なインストール手段と、
前記インストール手段により第2のライブラリを内包するアプリケーションがインストールされるときまたはインストールされた後に、アプリケーションに内包された前記第2のライブラリを抽出する抽出手段と、
前記抽出手段により抽出された前記第2のライブラリと前記保存手段に保存されている第1のライブラリとを差分比較する比較手段と、
前記比較手段による差分比較の結果、前記第2のライブラリと第1のライブラリとに差異が存在する場合、前記第2のライブラリは削除することなく使用可能に保持する制御手段と、
を備えたことを特徴とする画像処理装置。 Storage means for storing one or more first libraries used by the application;
Installation means for installing the application,
Extracting means for extracting the second library included in the application when or after the application including the second library is installed by the installing means;
Comparing means for comparing the difference between the second library extracted by the extracting means and the first library stored in the storing means;
Control means for holding the second library in a usable state without deleting if the difference between the second library and the first library is found as a result of the difference comparison by the comparing means;
An image processing apparatus comprising:
アプリケーションをインストールするインストールステップと、
前記インストールステップにより第2のライブラリを内包するアプリケーションがインストールされるときまたはインストールされた後に、アプリケーションに内包された前記第2のライブラリを抽出する抽出ステップと、
前記抽出ステップにより抽出された前記第2のライブラリと前記保存手段に保存されている第1のライブラリとを差分比較する比較ステップと、
前記比較ステップによる差分比較の結果、前記第2のライブラリと第1のライブラリとに差異が存在する場合、前記第2のライブラリは削除することなく使用可能に保持する制御ステップと、
を実行することを特徴とするアプリケーション内包ライブラリの処理方法。 An image processing apparatus including a storage unit that stores one or a plurality of first libraries used in an application,
An installation step for installing the application;
An extracting step of extracting the second library included in the application when or after the application including the second library is installed by the installing step;
A comparing step of comparing the difference between the second library extracted by the extracting step and the first library stored in the storing unit;
A control step of, if a difference between the second library and the first library exists as a result of the difference comparison in the comparing step, holding the second library usable without deleting it;
A method for processing an application inclusion library, comprising:
アプリケーションをインストールするインストールステップと、
前記インストールステップにより第2のライブラリを内包するアプリケーションがインストールされるときまたはインストールされた後に、アプリケーションに内包された前記第2のライブラリを抽出する抽出ステップと、
前記抽出ステップにより抽出された前記第2のライブラリと前記保存手段に保存されている第1のライブラリとを差分比較する比較ステップと、
前記比較ステップによる差分比較の結果、前記第2のライブラリと第1のライブラリとに差異が存在する場合、前記第2のライブラリは削除することなく使用可能に保持する制御ステップと、
を実行させるためのプログラム。 A computer of the image processing apparatus having storage means for storing one or a plurality of first libraries used in the application,
An installation step for installing the application;
An extracting step of extracting the second library included in the application when or after the application including the second library is installed by the installing step;
A comparing step of comparing the difference between the second library extracted by the extracting step and the first library stored in the storing unit;
A control step of, if a difference between the second library and the first library exists as a result of the difference comparison in the comparing step, holding the second library usable without deleting it;
A program for executing
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2018179144A JP7103112B2 (en) | 2018-09-25 | 2018-09-25 | Image processing device, application inclusion library processing method and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2018179144A JP7103112B2 (en) | 2018-09-25 | 2018-09-25 | Image processing device, application inclusion library processing method and program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2020049699A true JP2020049699A (en) | 2020-04-02 |
JP7103112B2 JP7103112B2 (en) | 2022-07-20 |
Family
ID=69995439
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2018179144A Active JP7103112B2 (en) | 2018-09-25 | 2018-09-25 | Image processing device, application inclusion library processing method and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP7103112B2 (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001154831A (en) * | 1999-11-25 | 2001-06-08 | Nec Software Hokkaido Ltd | System and method for controlling dynamic link library, and recording medium |
JP2007206965A (en) * | 2006-02-01 | 2007-08-16 | Canon Inc | Information processor and method for executing object-oriented program in the same device and its program |
US20170192766A1 (en) * | 2015-12-31 | 2017-07-06 | Quixey, Inc. | Cooperative Web-Assisted Deep Link Redirection |
JP2018077690A (en) * | 2016-11-10 | 2018-05-17 | キヤノン株式会社 | Installation considering compatibility depending on difference in application execution environment, and firmware update method |
-
2018
- 2018-09-25 JP JP2018179144A patent/JP7103112B2/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001154831A (en) * | 1999-11-25 | 2001-06-08 | Nec Software Hokkaido Ltd | System and method for controlling dynamic link library, and recording medium |
JP2007206965A (en) * | 2006-02-01 | 2007-08-16 | Canon Inc | Information processor and method for executing object-oriented program in the same device and its program |
US20170192766A1 (en) * | 2015-12-31 | 2017-07-06 | Quixey, Inc. | Cooperative Web-Assisted Deep Link Redirection |
JP2018077690A (en) * | 2016-11-10 | 2018-05-17 | キヤノン株式会社 | Installation considering compatibility depending on difference in application execution environment, and firmware update method |
Also Published As
Publication number | Publication date |
---|---|
JP7103112B2 (en) | 2022-07-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4274227B2 (en) | Image processing apparatus and program | |
US20080294845A1 (en) | Information processing apparatus, information processing method, and information processing program product | |
US10116826B1 (en) | Method and apparatus for automatically resuming a print job from portable memory device | |
US10567435B2 (en) | Apparatus that is managed in accordance with a security policy, control method thereof, and storage medium | |
US10126992B2 (en) | Image processing apparatus, control method thereof, and storage medium | |
JP2004303216A (en) | Information processor, image forming apparatus, error processing method in starting program, and recording medium | |
US8860982B2 (en) | Image forming apparatus, installation method and uninstallation method | |
KR20170015171A (en) | Information processing apparatus, method of controlling the same, and storage medium | |
JP7103112B2 (en) | Image processing device, application inclusion library processing method and program | |
US10572182B2 (en) | Image forming apparatus, image forming system, control method, and recording medium | |
JP2006004137A (en) | Image forming apparatus, data processing method, storage medium storing computer-readable program, and program | |
US9542128B2 (en) | Preview image of output data from an output device with user input | |
US10740171B2 (en) | Information processing apparatus, memory control method for information processing apparatus, and program | |
US10691383B2 (en) | Image forming apparatus and control method | |
JP7087755B2 (en) | Data transmission system and data transmission device | |
JP6519942B2 (en) | Image forming apparatus and program | |
JP2009070106A (en) | Image forming apparatus, data processing method and data processing program | |
JP7103113B2 (en) | Image processing device, application inclusion library processing method and program | |
US10649705B2 (en) | Memory control apparatus and resource management method for memory control apparatus to process PDL data | |
JP7102969B2 (en) | Image forming system, image forming apparatus, and image forming method | |
US20230297677A1 (en) | Information processing apparatus and function operation control method of the same | |
US11310390B2 (en) | Information processing apparatus, information processing method, and non-transitory recording medium | |
CN103124320A (en) | Printing apparatus, method and program | |
US20220366051A1 (en) | Information processing apparatus, information processing method, and storage medium | |
WO2020262347A1 (en) | Image-forming device, firmware alteration-preventing method, and computer-readable non-temporary storage medium which stores alteration-preventing program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20210820 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20220405 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20220601 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20220607 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20220620 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 7103112 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |