JP4402889B2 - Software version upgrade program and version upgrade method - Google Patents

Software version upgrade program and version upgrade method Download PDF

Info

Publication number
JP4402889B2
JP4402889B2 JP2003040999A JP2003040999A JP4402889B2 JP 4402889 B2 JP4402889 B2 JP 4402889B2 JP 2003040999 A JP2003040999 A JP 2003040999A JP 2003040999 A JP2003040999 A JP 2003040999A JP 4402889 B2 JP4402889 B2 JP 4402889B2
Authority
JP
Japan
Prior art keywords
software
resource
related information
information
function
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.)
Expired - Fee Related
Application number
JP2003040999A
Other languages
Japanese (ja)
Other versions
JP2004252633A (en
Inventor
亮介 波多野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP2003040999A priority Critical patent/JP4402889B2/en
Publication of JP2004252633A publication Critical patent/JP2004252633A/en
Application granted granted Critical
Publication of JP4402889B2 publication Critical patent/JP4402889B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

【0001】
【発明の属する技術分野】
本発明は、ソフトウェアをコンピュータ装置にインストール、アンインストールまたはバージョンアップするシステムに関し、特に、ソフトウェアのインストール、アンインストールまたはバージョンアップの可否を判断するシステムに関する。
【0002】
【従来の技術】
コンピュータ装置にソフトウェアをインストールしたり、コンピュータ装置からソフトウェアをアンインストールしたり、コンピュータ装置にインストールされているソフトウェアをバージョンアップしたりするプログラムがある。インストールプログラムは、プログラムおよびファイルなどのソフトウェアリソースを、コンピュータ装置の適切な場所にインストール(登録)する機能を有するものである。ここで、ソフトウェアリソースとは、ソフトウェアを構成するプログラムファイル、及び、前記プログラムファイルの実行時に使用されるデータファイルをいう。
【0003】
また、アンインストールプログラムは、不要なソフトウェアリソースが登録された場所から、そのソフトウェアリソースをアンインストール(削除)する機能を有するものである。さらに、バージョンアッププログラムは、ソフトウェアリソースのバージョンを上げる機能を有するものである。
【0004】
ソフトウェアをインストールする際には、ソフトウェアリソースの登録場所などを有するソフトウェア構成情報が作成される。そして、アンインストールまたはバージョンアップの際には、このソフトウェア構成情報を参照して、適切な登録場所からアンインストールまたはバージョンアップの対象となるソフトウェアリソースをアンインストールする。
【0005】
このようなインストール、アンインストール、バージョンアップを行うプログラムを用いたシステムとしては、以下のシステムがある。例えば、資源配布装置から、ソフトウェアリソースおよびソフトウェア構成情報を取得し、ソフトウェア構成情報を用いてソフトウェアリソースのインストール、アンインストール、バージョンアップに関する評価を行う。そして、この評価結果に基づいて対象となるソフトウェアリソースを、インストール、アンインストール、バージョンアップするシステムである(特許文献1参照)。
【0006】
また他の例としては、ソフトウェアのインストール時に、インストール対象のソフトウェアリソースと、既存のソフトウェアリソースとの整合性を判定するシステムがある。このシステムは、整合性がない場合は、インストールを中止し、整合性がある場合に限って、ソフトウェアリソースをインストールするシステムである(特許文献2参照)。
【特許文献1】
特開2001−356912
【特許文献2】
特開2002−157122
【0007】
【発明が解決しようとする課題】
前記特許文献1に記載のシステムでは、インストールの評価の際に、インストール対象のソフトウェアリソースが、その実行に必要とする前提ソフトウェアリソースについて、開示されていない。そのため、前提となるソフトウェアリソースが、コンピュータ装置に既にインストールされているか否かは、ユーザの事前確認が必要であり、人為的なミスの発生、および、確認に時間がかかるという問題を有している。
【0008】
また、アンインストールまたはバージョンアップの評価を行う際においても、アンインストールまたはバージョンアップの対象となるソフトウェアを使用している他のソフトウェアについても、同様に開示されていない。そのため、アンインストールまたはバージョンアップの対象ソフトウェアリソースを、他のソフトウェアリソースが使用しているか否かは、ユーザが事前に確認しなければならず、インストール時と同様の問題を有している。
【0009】
一方、特許文献2に記載のシステムによれば、インストール時に、インストールの対象ソフトウェアリソースと、既存のソフトウェアリソースとの整合性を判定するので、整合性の無いソフトウェアリソースについては、インストールを防止することができる。しかしながら、インストール対象のソフトウェアリソースが必要とする前提ソフトウェアリソースに関する情報は、全く保持していない。このため、前提ソフトウェアリソースが存在しない場合であっても、インストールを実行し、ソフトウェアの不具合が生じるという問題を有する。
【0010】
本発明は、上記事情に鑑みてなされたものであり、本発明の目的は、ソフトウェアをコンピュータ装置にインストール、アンインストールまたはバージョンアップする場合において、ソフトウェアのインストール、アンインストールまたはバージョンアップの可否を判断するために、ユーザが行う事前確認等の作業時間を短縮できるようにすることにある。
【0011】
【課題を解決するための手段】
上記課題を解決するために、本発明は、コンピュータ装置にインストールされている全てのソフトウェアリソースについて、それらのソフトウェアリソースの実行に前提となるソフトウェアリソースに関する情報(リソース関連情報)を一元管理する。そして、インストール、アンインストール、バージョンアップ時に、この情報を参照することで、リソースのインストール、アンインストール、バージョンアップの可否を判断し、ソフトウェアの不具合を生じるようなソフトウェアリソースのインストールおよびアンインストール、バージョンアップを防止する。そして、アンインストール、バージョンアップにより、不要となるソフトウェアがある場合、そのソフトウェアをアンインストールする。
【0014】
例えば、コンピュータ装置インストールされているソフトウェアをバージョンアップするプログラムにおいて、前記コンピュータ装置にインストールされているソフトウェアを示すソフトウェア情報と、該ソフトウェア各々について、前提となる他のソフトウェアを示す前提情報と、該ソフトウェアを前提とするソフトウェアの全てがアンインストールされた場合にアンインストールするか否かを示す性質情報と、を含むリソース関連情報を取得する機能と、外部記憶媒体に格納されているバージョンアップ用のソフトウェア、および、当該ソフトウェアの前提となる他のソフトウェアの情報を含むリソース関連情報更新データを、読み込む機能と、前記リソース関連情報の前提情報のいずれかに、バージョンアップ対象のソフトウェアが含まれているか否かを調べることで、前記バージョンアップ対象のソフトウェアのアンインストール可否を判断する機能と、前記リソース関連情報更新データに含まれる前記インストール対象のソフトウェアの前提となる他のソフトウェアの全てが、前記リソース関連情報のソフトウェア情報に含まれているか否かを調べることにより、インストール可否を判断する機能と、アンインストール可能、および、インストール可能と判断された場合に、前記バージョンアップ用のソフトウェアのインストール処理を実行することでバージョンアップ処理を実行し、さらに、前記バージョンアップ対象のソフトウェアのアンインストール処理を実行する機能と、前記リソース関連情報を参照し、前記バージョンアップ対象のソフトウェアの前提情報に含まれるソフトウェアのうち、少なくとも一部の性質情報が、該ソフトウェアを前提とするソフトウェアの全てがアンインストールされた場合にアンインストールすることを示しており、かつ、該ソフトウェアが、前記バージョンアップ対象のソフトウェアを除く他の全てのソフトウェアの前提情報に含まれていない場合、該ソフトウェアのアンインストール処理を実行する機能と、前記インストール処理、アンインストール処理の実行結果にもとづいて前記リソース関連情報を更新する機能と、アンインストール不可、または、インストール不可と判断された場合に、前記バージョンアップ処理を中止する機能とを、前記コンピュータ装置に実行させることを特徴とする。
【0015】
【発明の実施の形態】
本発明は、ソフトウェアを、インストール、アンインストール、または、バージョンアップするシステムである。ソフトウェアは、プログラムファイル、及び、前記プログラムファイルの実行時に使用されるデータファイルなどのソフトウェアリソースから構成されている。本システムでは、コンピュータ装置にリソース関連情報を持たせ、インストール、アンインストール、バージョンアップの際に、このリソース関連情報を用いて、インストール等の実行の可否を判断し、実行結果をリソース関連情報に反映させるものである。なお、リソース関連情報は、コンピュータ装置にインストールされている全てのソフトウェアリソース間の関連を示し、ソフトウェアリソースの整合性を保持するために必要な情報をいう。
以下、本発明に係る実施の形態について説明する。
【0016】
図1に、本発明に係るシステムの機能構成図を示す。
【0017】
図示するように、本実施形態のシステムは、ソフトウェアをインストール、アンインストール、バージョンアップするコンピュータ装置1と、外部記憶媒体2とを有する。コンピュータ装置1は、CPU、メモリなどの主記憶装置、および、外部記憶媒体2を動作させるドライブを備えて構成される処理装置11と、ハードディスクなどの外部記憶装置を備えて構成される記憶装置12と、ディスプレイまたはプリンタなどの出力装置13とを有する。記憶装置12には、ソフトウェアを構成する各種ソフトウェアリソースが格納されているリソースファイル121と、ソフトウェアリソースの登録先情報などを保持するリソース構成情報122と、ソフトウェアリソース間の関連情報を持つリソース関連情報123とが記憶されている。出力装置13は、インストール、アンインストール、バージョンアップの実行可否の判断結果を出力するのに用いられる。
【0018】
外部記憶媒体2は、コンピュータ装置1にインストール、またはバージョンアップするソフトウェアに関する情報が記憶されたインストールメディアである。外部記録媒体2には、対象リソース201、リソース関連情報更新データ202、実行プログラム203等が格納されている。実行プログラム203は、共通プログラム、インストール用プログラム、アンインストール用プログラム、バージョンアップ用プログラムを有する。なお、実行プログラムは、上記の4つのプログラムが各々独立したプログラムとして分かれている必要はなく、例えば、1つのプログラムが、インストール用プログラムとアンインストール用プログラムの両方を含んだプログラムとしてもよい。
【0019】
また、外部記憶媒体2は、記憶手段を有する外部装置であって、ネットワークまたはケーブルによりコンピュータ装置1と接続する場合も考えられる。
【0020】
外部記憶媒体2に格納されている実行プログラム203は、インストール時またはバージョンアップ時に、処理装置11が有するドライブからメモリ読み込まれ、CPUがメモリに読み込まれた実行プログラム203を実行することで、以下に述べる機能が実現される。なお、インストール時またはバージョンアップ時に読み込まれた実行プログラム203は、記憶装置12内に記憶され、アンインストール時には、再度、外部記憶装置2から実行プログラム203を読み込むことなしに、実行プログラムが実行できるものとする。
【0021】
実行プログラム203に含まれる共通プログラムは、次に述べる機能を、コンピュータ装置1に実行させる。図示しない入力手段により入力されたユーザの指示(インストール、アンインストールまたはバージョンアップの実行指示)を受け付ける実行指示受付機能111と、外部記憶媒体2からリソース関連情報更新データ202を読み込み、このデータとリソース関連情報123とを参照し、インストール、アンインストール、バージョンアップの実行可否を判断する判断機能112と、前記判断結果を出力装置13に出力するメッセージ出力機能113と、記憶装置12に記録されているリソース構成情報122を更新するリソース構成情報更新機能116と、リソース構成情報122を読み取るリソース構成情報読取機能117と、記憶装置12に記録されているリソース関連情報123を更新するリソース関連情報更新機能118と、リソース関連情報123を読み取るリソース関連情報読取機能119である。なお、リソース関連情報更新機能118は、インストールの際にリソース関連情報がない場合は、新規にリソース関連情報を作成する機能もあわせて有する。
【0022】
次に、実行プログラム内のインストール用プログラムは、ソフトウェアリソースを記憶装置12内のリソースファイル121へ登録するリソース登録機能114を、コンピュータ装置1に実行させる。リソース登録機能114は、共通プログラムの実行指示受付機能111に、インストール指示が入力され、判断機能112によりインストール可能と判断された場合に、実行される。
【0023】
また、実行プログラム内のアンインストール用プログラムは、ソフトウェアリソースを記憶装置12内のリソースファイル121から削除するリソース削除機能115をコンピュータ装置1に実行させる。リソース削除機能115は、共通プログラムの実行指示受付機能111に、アンインストール指示が入力され、判断機能112によりアンインストール可能と判断された場合に、実行される。
【0024】
さらに、実行プログラム内のバージョンアップ用プログラムは、記憶装置12内のリソースファイル121に存在するソフトウェアリソースを更新するために、リソース登録機能114およびリソース削除機能115を、コンピュータ装置1に実行させる。これらの機能114、115は、共通プログラムの実行指示受付機能111に、バージョンアップ指示が入力され、判断機能112によりバージョンアップ可能と判断された場合に実行される。
【0025】
なお、本発明のシステムにおいて、インストールのみを実行するシステムとする場合は、リソース削除機能115は不要となり、アンインストールのみを実行するシステムとする場合は、リソース登録機能114は不要となる。
【0026】
また、本実施の形態では、インストール、アンインストール、バージョンアップを実行する手段を、外部記憶媒体2の実行プログラム203が有しているが、この実行プログラムを、コンピュータ装置1の記憶装置12にあらかじめ格納させておくことも可能である。この場合、例えばインストール時においては、インストール実行指示を受け付けた後に、外部記憶媒体2から対象リソース201およびリソース関連情報更新データ202を読み込み、インストール処理を実行する。
【0027】
次に、本実施の形態における、コンピュータ装置1上で稼動するアプリケーションのソフトウェア構成について説明する。なお、以下に説明する図2の例では、説明をわかり易くするために、各ソフトウェアは、各々1つのソフトウェアリソース(プログラムファイル)から構成されているものとし、以下、ソフトウェアリソースをソフトウェアと記載する。しかしながら、ソフトウェアが、複数のソフトウェアリソース(複数のプログラムファイルおよび複数のデータファイル)から構成される場合であっても同様の方法が適用可能である。
【0028】
図2の例では、コンピュータ装置1のソフトウェア構成は、3層構造となっている。これは、第1層のソフトウェア401上でソフトウェア402〜409が動作し、第2層のソフトウェア402上でソフトウェア405とソフトウェア406が動作することを示している。同様に、第2層のソフトウェア403上でソフトウェア406が動作し、第2層のソフトウェア404上でソフトウェア407〜409が動作する。
【0029】
言い換えると、第3層のソフトウェア405の実行は、ソフトウェア401およびソフトウェア402が既にインストールされていることが前提条件となる。同様に、ソフトウェア406の前提条件は、ソフトウェア401、ソフトウェア402、ソフトウェア403がインストールされていることである。また、ソフトウェア407、ソフトウェア408およびソフトウェア409の前提条件は、ソフトウェア401およびソフトウェア404がインストールされていることである。なお、前提条件には、ソフトウェアだけでなく、そのバージョンも考慮される。
【0030】
このようなソフトウェア構成の例としては、複数のソフトウェアから構成される製品群(例えばグループウェア)において、第1層は基盤ソフトウェア(基盤グループウェア)、第2層は業務共通ソフトウェア(ワークフロー業務共通、電子メール/掲示板業務共通、等)、第3層は業務固有ソフトウェア(人事ワークフロー、経理ワークフロー、電子メール、電子掲示板、スケジュール管理、等)が考えられる。
【0031】
次に、図2に示すソフトウェア構成を有するコンピュータ装置1のリソース関連情報123について、図3を参照し説明する。
【0032】
図3は、リソース関連情報123の一例である。図中、列51は、コンピュータ装置1にインストールされているソフトウェアおよびそのバージョンを示しており、行52により他のソフトウェアとの関連付けを行っている。
行のデータは、列51のソフトウェアが、実行するのに必要となる前提条件のソフトウェア(以下、前提ソフトウェアという。)を示している。例えば、行53を参照すると、ソフトウェア406(バージョン1)の前提ソフトウェアは、ソフトウェア401(バージョン2)、ソフトウェア402(バージョン3)、ソフトウェア403(バージョン1以上)であることがわかる。なお、ソフトウェア403はバージョン1以上であるので、ソフトウェア403はバージョン2であってもよい。
【0033】
また、列のデータは、行52のソフトウェアを前提ソフトウェアとする他のソフトウェアの有無を示している。例えば、列54を参照すると、ソフトウェア402(バージョン3)を前提ソフトウェアとして関連付けられているソフトウェアは、ソフトウェア405(バージョン3)、ソフトウェア406(バージョン1)であることがわかる。
【0034】
さらに、左上から右下に対角線上に記載された「○」または「×」は、ソフトウェアの性質を示している。「×」は、他のソフトウェアとの関連が無くなった場合(そのソフトウェアを前提条件とするソフトウェアが全てアンインストールされた場合)に、自動的にアンインストールし、「○」は、他のソフトウェアとの関連が無くなった場合であっても自動的にアンインストールしない、という性質を示している。これにより、「×」の性質を有するソフトウェアの場合は、不要なリソースが自動的に削除され、スペースの有効活用を図ることができる。
【0035】
例えば、ソフトウェア403(バージョン1)の性質A1は、「×」と定義されているので、ソフトウェア406(バージョン1)がアンインストールされると、ソフトウェア403(バージョン1)も、それと同時に自動的にアンインストールされる。その場合、図3のリソース関連情報は、図4に示すように更新される。一方、ソフトウェア404(バージョン2)の性質A2は、「○」と定義されているので、ソフトウェア407(バージョン5)と、ソフトウェア408(バージョン1)と、ソフトウェア409(バージョン1)の全てがアンインストールされても、ソフトウェア404(バージョン2)は、自動的にはアンインストールされず、そのままコンピュータ装置1に存在する。
【0036】
このようなリソース関連情報123をコンピュータ装置1内の記憶装置12に格納し、一元管理することで、インストール、アンインストール、バージョンアップの際に、ソフトウェア間の前提条件をチェックし、ソフトウェア間の整合性を保持することができる。
【0037】
次に、リソース関連情報更新データ202について説明する。図7は、リソース関連情報更新データ202の一例である。リソース関連情報更新データ202は、インストールの対象のソフトウェア名称、バーション、性質、および前提となるソフトウェアの情報を有している。図中、列81は、インストールの対象のソフトウェア名称、バーション、性質を示したものである。具体的には、インストール対象リソースは、ソフトウェア410のバージョン1であって、その性質は「○」(他のソフトウェアとの関連が無くなった場合であっても自動的にアンインストールしない)であることを示している。
【0038】
列82は、インストール対象ソフトウェアの前提条件である前提ソフトウェアの情報を示したものである。具体的には、ソフトウェア410の前提ソフトウェアはソフトウェア401(バージョン2)、および、ソフトウェア404(バージョン1以上)であることを示している。
【0039】
次に、ソフトウェアをインストールするときの処理の流れを説明する。
【0040】
図5は、ソフトウェアのインストール処理の流れを示したものである。図示するように、この処理では、まず、外部記憶媒体2に格納されているデータ(対象リソース201、リソース関連情報更新データ202、実行プログラム203)を、コンピュータ装置1内の処理装置11に取り込み(S501)、処理装置11が実行プログラム203を実行する(S502)。この実行プログラム203を実行することにより、各種の機能(図1参照)が実現され、インストール処理を行う。
【0041】
始めに、実行指示受付機能111が、ユーザのインストール指示を受け付け(S503)、次に、判断機能112が、インストールの実行可否を判断する。具体的には、リソース関連情報123がコンピュータ装置1に既に存在しているか否かを判別し(S504)、既に存在している場合は、リソース関連情報読取機能119が、そのリソース関連情報123を取得する(S505)。一方、リソース関連情報123がコンピュータ装置1に存在しない場合は、リソース関連情報更新機能118がリソース関連情報123を、コンピュータ装置1の記録媒体12に新規に作成する(S506)。
【0042】
そして、判断機能112は、外部記憶媒体2から取り込んだリソース関連情報更新データを取得し(S507)、このデータと前述のリソース関連情報123とを用いて、コンピュータ装置1が対象リソース201の前提条件を満たしているかどうかをチェックする(S508)。
【0043】
前提条件を満たしていない場合には、メッセージ出力機能113は、インストール不可と判断し、エラーメッセージを表示装置13に出力して(S509)、インストール処理を中止する。
【0044】
前提条件を満たす場合には、判断機能112はインストール可能と判断し、リソース登録機能114は、外部記憶媒体2から取り込んだ対象リソース201を、記憶装置12のリソースファイル121に登録する(S510)。次に、リソース構成情報更新機能116が、記憶装置12内のリソース構成情報122に、登録したリソースの格納場所の情報を追加し(S511)、さらに、リソース関連情報更新機能118が記憶装置12内のリソース関連情報123を、リソース関連情報更新データ202にもとづいて更新する(S512)。以上により、インストール処理は完了する。
【0045】
次に、図7に示すリソース関連情報更新データ202を持つソフトウェア410を、図3に示すリソース関連情報123を有するコンピュータ装置1に、インストールする場合について説明する。図3を参照すると、ソフトウェア410の前提ソフトウェアであるソフトウェア401(バージョン2)が存在し、また、ソフトウェア404についてはバーション1以上のバージョン2が存在している。したがって、判断機能112は、前提条件を満たしていると判断し、ソフトウェア410のインストール処理を続行する。そして、図7のリソース関連情報更新データ202をもとに、図3のリソース関連情報123は、図8に示すように更新される。すなわち、行91および列92に、新たにインストールされたソフトウェア410の情報が追加される。
【0046】
次に、図9に示すリソース関連情報更新データ202を持つソフトウェア411(バージョン1)をインストールする場合について説明する。前提ソフトウェアは、ソフトウェア401のバージョン1およびソフトウェア402のバージョン3以上である。図3のリソース関連情報123を参照すると、ソフトウェア401はバージョン2であるので、前提条件を満たしていない。したがって、ソフトウェア411はインストール不可と判断し、インストールを中止する。このように、前提条件をチェックすることで、前提条件を満たさないソフトウェア411が、コンピュータ装置1にインストールされることを防止できる。
【0047】
次に、ソフトウェアをアンインストールするときの処理の流れを、図6を参照し説明する。
【0048】
まず、ユーザのアンインストール指示の受付により、実行プログラム203が実行され(S601)、実行指示受付機能111がアンインストール指示を受け付ける(S602)。この実行プログラムは、インストールの際に、外部記憶媒体2からコンピュータ装置1の記録媒体12に取り込んでおいたものである。
【0049】
次に、判断機能112が、アンインストールの実行可否を判断する。具体的には、リソース関連情報123が記憶媒体12に存在しているか否かを判別する。(S603)。リソース関連情報123が記録媒体12に存在しない場合、または、存在してもアンインストールの対象ソフトウェアの情報が無い場合は、アンインストールの対象となるソフトウェアが存在しないため、メッセージ出力機能113はエラーメッセージを表示装置13に出力し(S604)、アンインストール処理を中止する。
【0050】
一方、リソース関連情報123が存在している場合には、リソース関連情報読取機能119が、そのリソース関連情報123を取得し(S605)、判断機能112が、対象となるソフトウェアをコンピュータ装置1から削除しても問題がないかチェックする(S606)。
【0051】
問題がある場合は、判断機能112はアンインストール不可と判断し、メッセージ出力機能113がエラーメッセージを表示装置13に出力し(S604)、アンインストール処理を中止する。
【0052】
問題がない場合は、判断機能112はアンインストール可能と判断し、リソース構成情報読取機能117はリソース構成情報122を参照し、対象ソフトウェアの登録先情報を取得する(S607)。この登録先情報を用いて、リソース削除機能115は、リソースファイル121から対象ソフトウェアを削除し(S608)、あわせて、リソース構成情報更新機能116はリソース構成情報122から、対象ソフトウェアの登録先情報を削除する(S609)。そして、リソース関連情報更新機能118は、記憶装置12内のリソース関連情報123から、対象ソフトウェアに関する情報を削除する更新をする(S610)。以上により、アンインストール処理は完了する。
【0053】
つぎに、図3に示すリソース関連情報123を保持するコンピュータ装置1において、ソフトウェア402(バージョン3)をアンインストールする場合について説明する。ソフトウェア402の削除可否をチェックする処理(S606)において、判断機能112は、リソース関連情報読取機能119が読み取ったリソース関連情報123(図3参照)の列54を参照する。そして、ソフトウェア402を前提とするソフトウェア405およびソフトウェア406が存在するため、ソフトウェア402はアンインストール不可と判断し、アンインストール処理を中止する。
【0054】
次に、ソフトウェアをバージョンアップするときの処理の流れを説明する。バージョンアップの処理には、既存のバージョンのソフトウェアをアンインストールし、その後、新しいバージョンのソフトウェアをインストールする第1の方法(図10参照)と、既存のバージョンのソフトウェアを削除せずに新しいバージョンで新たに追加された部分のみを差分インストールする第2の方法(図11参照)とがある。
【0055】
図10は、第1の方法(アンインストールおよびインストール)のバージョンアップの処理の流れを示したものである。まず、外部記憶媒体2に格納されているデータ(対象リソース201、リソース関連情報更新データ202、実行プログラム203)を、コンピュータ装置1の処理装置11に取り込み(S701)、処理装置11が実行プログラム203を実行する(S702)。この実行プログラム203を実行することにより、各種の機能(図1参照)が実現され、バージョンアップ処理を行う。
【0056】
始めに、実行指示受付機能111が、ユーザのバージョンアップ指示を受け付け(S703)、次に、判断機能112が、バージョンアップの実行可否を判断する。具体的には、リソース関連情報123が記憶媒体12に既に存在しているか否かを判別する(S704)。リソース関連情報123が記録媒体12に存在しない場合、または、存在してもバージョンアップの対象ソフトウェアの情報が無い場合は、現行バージョンのソフトウェアが存在しないため、メッセージ出力機能113がエラーメッセージを表示装置13に出力し(S714)、バージョンアップ処理を中止する。
【0057】
一方、リソース関連情報が存在している場合は、リソース関連情報読取機能119は、そのリソース関連情報123を取得し(S705)、判断機能112が現行バージョンのソフトウェアを、コンピュータ装置1から削除しても問題がないかチェックする(S706)。問題がある場合(すなわち、現行バージョンのソフトウェアを前提とする他のソフトウェアが存在する場合)は、メッセージ出力機能113は、エラーメッセージを表示装置13に出力し(S714)、バージョンアップ処理を中止する。
【0058】
問題がない場合は、判断機能112は、外部記憶媒体2から取り込んだリソース関連情報更新データを取得し(S707)、このデータと前述のリソース関連情報123とを用いて、バージョンアップ対象ソフトウェアの前提条件を満たしているかどうかをチェックする(S708)。
【0059】
前提条件を満たしていない場合(すなわち、バージョンアップ対象ソフトウェアの前提ソフトウェアが、インストールされていない場合)には、メッセージ出力機能113はエラーメッセージを表示装置13に出力して(S714)、バージョンアップ処理を中止する。
【0060】
前提条件を満たす場合(すなわち、対象ソフトウェアの前提ソフトウェアが、全てインストールされている場合)は、リソース構成情報読取機能117はリソース構成情報122を参照し、現行バージョンのソフトウェアの登録先情報を取得する(S709)。この登録先情報を用いて、リソース削除機能115は、リソースファイル121から現行バージョンのソフトウェアを削除する(S710)。
【0061】
そして、リソース登録機能114は、外部記憶媒体2から取り込んだ対象リソース201(新バージョンのソフトウェア)を、記憶装置12のリソースファイル121に登録(S711)し、リソース構成情報更新機能116はリソース構成情報122の登録先情報を更新する(S712)。さらに、リソース関連情報更新機能118は、現行バージョンのソフトウェアの情報を、リソース関連情報更新データ202にもとづいて、リソース関連情報123を更新する(S713)。以上により、バージョンアップ処理は完了する。
【0062】
次に、第2の方法(差分インストール)によりソフトウェアをバージョンアップする場合の処理の流れを、図11を参照し説明する。
【0063】
本処理は、現行バージョンのソフトウェアをアンインストールせず、バージョンアップにより追加された部分をインストールするため、図10の処理と比較すると、リソース削除可否のチェック(S706)およびリソース削除(S710)の処理を行わない点で相違し、その他については、図10と同じである。
【0064】
以上、本発明のインストール、アンインストール、バージョンアップの実施の形態について説明した。
【0065】
本実施形態によれば、ソフウェアをコンピュータ装置にインストール、アンインストール、または、バージョンアップする際に、ソフトウェアの前提条件をチェックすることで、他のソフトウェアへの影響を機械的に判断し、不具合が発生するようなインストール等を回避することが可能となる。
【0066】
また、あるソフトウェアのアンインストール時に、これに伴って不要となる他のソフトウェアについても自動的に削除されるため、コンピュータ装置に不要なソフトウェアが残るのを防止することが可能となる。
【0067】
さらには、コンピュータ装置にインストールされている全てのソフトウェア間の関連情報を一元管理し、インストール、アンインストール、バージョンアップ時に必ず更新するため、常に最新の状態でソフトウェア関連情報を保持することが可能である。
【0068】
なお、本発明は上記の実施形態に限定されるものではなく、その要旨の範囲内で数々の変形が可能である。
【0069】
例えば、リソース関連情報としては、前提条件となる前提ソフトウェアのだけでなく、整合性のないソフトウェアもしくは相性の悪いソフトウェアの情報も、併せて保持することで、不具合が起こる現象をより一層防止することが可能である。
【0070】
また、コンピュータ装置1に格納されているリソース関連情報123は、インストール、アンインストール、または、バージョンアップの処理を伴わずに、ユーザの操作により変更する手段を有することも考えられる。
【0071】
【発明の効果】
以上のように、本発明によれば、ソフトウェアをコンピュータ装置にインストール、アンインストールまたはバージョンアップする場合において、ソフトウェアのインストール、アンインストールまたはバージョンアップの可否を判断するために、ユーザが行う事前確認等の作業時間を短縮することが可能である。
【図面の簡単な説明】
【図1】本発明の実施形態に係るシステムの機能構成図である。
【図2】本発明の実施形態に係るソフトウェア構成図である。
【図3】本発明の実施形態に係るリソース関連情報(例1)である
【図4】本発明の実施形態に係るリソース関連情報(例2)である。
【図5】本発明の実施形態に係るインストール処理を示すフローチャートである。
【図6】本発明の実施形態に係るアンインストール処理を示すフローチャートである。
【図7】本発明の実施形態に係るリソース関連情報更新データ(例1)である。
【図8】本発明の実施形態に係るリソース
関連情報(例3)である。
【図9】本発明の実施形態に係るリソース関連情報更新データ(例2)である。
【図10】本発明の実施形態に係る第1のバージョンアップ処理を示すフローチャートである。
【図11】本発明の実施形態に係る第2のバージョンアップ処理を示すフローチャートである。
【符号の説明】
1…コンピュータ装置、11…処理装置、12…記憶装置、121…リソースファイル、122…リソース構成情報、123…リソース関連情報、13…出力装置、2…外部記憶媒体、201…対象リソース、202…リソース関連情報更新データ、203…実行プログラム
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a system for installing, uninstalling, or upgrading software in a computer device, and more particularly, to a system for determining whether software installation, uninstallation, or version upgrade is possible.
[0002]
[Prior art]
There are programs that install software on a computer device, uninstall software from the computer device, and upgrade the software installed on the computer device. The installation program has a function of installing (registering) software resources such as programs and files in an appropriate location of the computer apparatus. Here, the software resource means a program file constituting software and a data file used when the program file is executed.
[0003]
The uninstall program has a function of uninstalling (deleting) software resources from a location where unnecessary software resources are registered. Further, the version upgrade program has a function of increasing the version of the software resource.
[0004]
When software is installed, software configuration information including a registration location of software resources is created. When uninstalling or upgrading, the software configuration information is referred to and the software resource to be uninstalled or upgraded is uninstalled from an appropriate registration location.
[0005]
As a system using a program for performing such installation, uninstallation, and version upgrade, there are the following systems. For example, software resources and software configuration information are acquired from a resource distribution device, and evaluations regarding installation, uninstallation, and version upgrade of software resources are performed using the software configuration information. And it is a system which installs, uninstalls, and upgrades the target software resource based on this evaluation result (refer patent document 1).
[0006]
As another example, there is a system that determines the consistency between an installation target software resource and an existing software resource at the time of software installation. This system is a system in which installation is stopped when there is no consistency, and software resources are installed only when there is consistency (see Patent Document 2).
[Patent Document 1]
JP 2001-356912 A
[Patent Document 2]
JP 2002-157122 A
[0007]
[Problems to be solved by the invention]
In the system described in Patent Document 1, the installation target software resource does not disclose the prerequisite software resource required for the execution when the installation is evaluated. For this reason, whether or not the prerequisite software resource is already installed in the computer device requires the prior confirmation of the user, and there is a problem that a human error occurs and confirmation takes time. Yes.
[0008]
In addition, when performing an evaluation of uninstallation or version upgrade, other software that uses software to be uninstalled or upgraded is not disclosed in the same manner. Therefore, it is necessary for the user to confirm in advance whether or not other software resources are using the software resource to be uninstalled or upgraded, which has a problem similar to that at the time of installation.
[0009]
On the other hand, according to the system described in Patent Document 2, since the consistency between the installation target software resource and the existing software resource is determined at the time of installation, installation of inconsistent software resources should be prevented. Can do. However, no information about prerequisite software resources required by the software resource to be installed is held. For this reason, even if the prerequisite software resource does not exist, there is a problem that installation is executed and a software defect occurs.
[0010]
The present invention has been made in view of the above circumstances, and an object of the present invention is to determine whether software can be installed, uninstalled, or upgraded when software is installed, uninstalled, or upgraded in a computer device. Therefore, it is possible to shorten the work time such as prior confirmation performed by the user.
[0011]
[Means for Solving the Problems]
  In order to solve the above-described problems, the present invention centrally manages information (resource related information) related to software resources that are prerequisites for the execution of software resources for all software resources installed in a computer apparatus. When installing, uninstalling, or upgrading the version, refer to this information to determine whether the resource can be installed, uninstalled, or upgraded, and to install or uninstall a software resource that causes a software defect. Prevent up.If there is unnecessary software due to uninstallation or version upgrade, the software is uninstalled.
[0014]
  For exampleIn the program for upgrading the software installed in the computer device, software information indicating the software installed in the computer device, prerequisite information indicating other prerequisite software for each of the software, and the software A function for obtaining resource-related information including property information indicating whether or not to uninstall when all the prerequisite software is uninstalled, and software for upgrading stored in an external storage medium, In addition, any of the functions for reading resource-related information update data including information on other software that is the prerequisite of the software and the prerequisite information of the resource-related information includes the software to be upgraded. All the other software that is the premise of the installation target software included in the resource-related information update data is a function that determines whether or not the upgrade target software can be uninstalled. A function for determining whether or not installation is possible by checking whether or not the software information of the resource-related information is included, and installation of the software for version upgrade when it is determined that the software can be uninstalled and installed A function for executing the upgrade process by executing the process, and a function for executing the uninstall process of the software to be upgraded, and the resource-related information are referred to and included in the prerequisite information of the software to be upgraded This Among the software, at least a part of the property information indicates that the software is uninstalled when all of the software premised on the software is uninstalled, and the software determines the software to be upgraded. A function of executing uninstallation processing of the software when not included in the prerequisite information of all other software, and a function of updating the resource related information based on execution results of the installation processing and uninstallation processing; The computer device is caused to execute a function of canceling the version upgrade process when it is determined that uninstallation is impossible or installation is impossible.
[0015]
DETAILED DESCRIPTION OF THE INVENTION
The present invention is a system for installing, uninstalling, or upgrading software. The software includes software resources such as a program file and a data file used when the program file is executed. In this system, resource-related information is given to the computer device. During installation, uninstallation, and version upgrade, this resource-related information is used to determine whether or not to execute installation, and the execution result is used as resource-related information. It is reflected. The resource related information indicates the relationship between all the software resources installed in the computer device, and is information necessary for maintaining the consistency of the software resources.
Embodiments according to the present invention will be described below.
[0016]
FIG. 1 shows a functional configuration diagram of a system according to the present invention.
[0017]
As shown in the figure, the system of the present embodiment includes a computer device 1 that installs, uninstalls, and upgrades software, and an external storage medium 2. The computer device 1 includes a processing device 11 that includes a main storage device such as a CPU and a memory, and a drive that operates the external storage medium 2, and a storage device 12 that includes an external storage device such as a hard disk. And an output device 13 such as a display or a printer. The storage device 12 includes a resource file 121 in which various software resources constituting the software are stored, resource configuration information 122 that holds registration destination information of the software resources, and resource related information having information related to the software resources. 123 is stored. The output device 13 is used to output the determination result of whether execution of installation, uninstallation, and version upgrade is possible.
[0018]
The external storage medium 2 is an installation medium in which information related to software to be installed or upgraded in the computer apparatus 1 is stored. The external recording medium 2 stores a target resource 201, resource related information update data 202, an execution program 203, and the like. The execution program 203 includes a common program, an installation program, an uninstallation program, and a version upgrade program. The execution program does not need to be divided into the above four programs as independent programs. For example, one program may be a program including both an installation program and an uninstallation program.
[0019]
Further, the external storage medium 2 is an external device having a storage means, and may be connected to the computer device 1 via a network or a cable.
[0020]
The execution program 203 stored in the external storage medium 2 is read into the memory from the drive of the processing device 11 at the time of installation or version upgrade, and the CPU executes the execution program 203 read into the memory as follows. The functions described are realized. The execution program 203 read at the time of installation or upgrade is stored in the storage device 12 and can be executed without reading the execution program 203 from the external storage device 2 again at the time of uninstallation. And
[0021]
The common program included in the execution program 203 causes the computer apparatus 1 to execute the following functions. An execution instruction reception function 111 that receives a user instruction (installation, uninstallation, or version upgrade execution instruction) input by an input unit (not shown), and reads the resource-related information update data 202 from the external storage medium 2. Recorded in the storage device 12 with reference to the related information 123, a determination function 112 for determining whether installation, uninstallation, and version upgrade can be executed, a message output function 113 for outputting the determination result to the output device 13, and A resource configuration information update function 116 that updates the resource configuration information 122, a resource configuration information read function 117 that reads the resource configuration information 122, and a resource related information update function 118 that updates the resource related information 123 recorded in the storage device 12. And litho Scan-related information 123 is the resource-related information reading function 119 which reads the. Note that the resource related information update function 118 also has a function of newly creating resource related information when there is no resource related information at the time of installation.
[0022]
Next, the installation program in the execution program causes the computer apparatus 1 to execute the resource registration function 114 for registering software resources in the resource file 121 in the storage device 12. The resource registration function 114 is executed when an installation instruction is input to the execution instruction reception function 111 of the common program and the determination function 112 determines that installation is possible.
[0023]
The uninstall program in the execution program causes the computer device 1 to execute the resource deletion function 115 that deletes the software resource from the resource file 121 in the storage device 12. The resource deletion function 115 is executed when an uninstall instruction is input to the execution instruction reception function 111 of the common program and the determination function 112 determines that uninstallation is possible.
[0024]
Further, the upgrade program in the execution program causes the computer apparatus 1 to execute the resource registration function 114 and the resource deletion function 115 in order to update the software resource existing in the resource file 121 in the storage device 12. These functions 114 and 115 are executed when a version upgrade instruction is input to the execution instruction reception function 111 of the common program and the determination function 112 determines that the version can be upgraded.
[0025]
In the system of the present invention, the resource deletion function 115 is unnecessary when the system performs only installation, and the resource registration function 114 is not required when the system executes only uninstallation.
[0026]
In this embodiment, the execution program 203 of the external storage medium 2 has means for executing installation, uninstallation, and version upgrade. This execution program is stored in the storage device 12 of the computer apparatus 1 in advance. It is also possible to store them. In this case, for example, at the time of installation, after receiving an installation execution instruction, the target resource 201 and the resource related information update data 202 are read from the external storage medium 2 and the installation process is executed.
[0027]
Next, a software configuration of an application running on the computer apparatus 1 in the present embodiment will be described. In the example of FIG. 2 described below, in order to make the description easy to understand, each software is assumed to be composed of one software resource (program file), and hereinafter, the software resource is described as software. However, the same method can be applied even when the software is composed of a plurality of software resources (a plurality of program files and a plurality of data files).
[0028]
In the example of FIG. 2, the software configuration of the computer apparatus 1 has a three-layer structure. This indicates that the software 402 to 409 operate on the first layer software 401 and the software 405 and software 406 operate on the second layer software 402. Similarly, software 406 operates on the second layer software 403, and software 407 to 409 operates on the second layer software 404.
[0029]
In other words, the execution of the third layer software 405 is based on the precondition that the software 401 and the software 402 are already installed. Similarly, a prerequisite for the software 406 is that software 401, software 402, and software 403 are installed. Further, a prerequisite for the software 407, software 408, and software 409 is that the software 401 and software 404 are installed. Note that the precondition includes not only the software but also its version.
[0030]
As an example of such a software configuration, in a product group (for example, groupware) composed of a plurality of software, the first layer is platform software (platform groupware), the second layer is business common software (workflow business common, The third layer may be business-specific software (HR workflow, accounting workflow, email, electronic bulletin board, schedule management, etc.).
[0031]
Next, the resource related information 123 of the computer apparatus 1 having the software configuration shown in FIG. 2 will be described with reference to FIG.
[0032]
FIG. 3 is an example of the resource related information 123. In the figure, a column 51 indicates the software installed in the computer apparatus 1 and its version, and a line 52 associates with other software.
The data in the row indicates prerequisite software (hereinafter referred to as prerequisite software) necessary for the software in the column 51 to be executed. For example, referring to line 53, it can be seen that the prerequisite software of software 406 (version 1) is software 401 (version 2), software 402 (version 3), and software 403 (version 1 or higher). Since the software 403 is version 1 or higher, the software 403 may be version 2.
[0033]
The data in the column indicates the presence or absence of other software whose software is the software in the row 52. For example, referring to column 54, it can be seen that the software associated with software 402 (version 3) as the prerequisite software is software 405 (version 3) and software 406 (version 1).
[0034]
Furthermore, “o” or “x” written on the diagonal line from the upper left to the lower right indicates the nature of the software. “X” automatically uninstalls when there is no relationship with other software (when all the software with that software as a prerequisite has been uninstalled), “○” Even if the relationship is lost, it does not uninstall automatically. Thereby, in the case of software having the “x” property, unnecessary resources are automatically deleted, and space can be used effectively.
[0035]
For example, since the property A1 of the software 403 (version 1) is defined as “x”, when the software 406 (version 1) is uninstalled, the software 403 (version 1) is automatically uninstalled at the same time. Installed. In this case, the resource related information in FIG. 3 is updated as shown in FIG. On the other hand, since the property A2 of the software 404 (version 2) is defined as “◯”, the software 407 (version 5), the software 408 (version 1), and the software 409 (version 1) are all uninstalled. Even so, the software 404 (version 2) is not automatically uninstalled and exists in the computer apparatus 1 as it is.
[0036]
Such resource-related information 123 is stored in the storage device 12 in the computer device 1 and is centrally managed, so that prerequisites between software are checked during installation, uninstallation, and version upgrade. Sex can be maintained.
[0037]
Next, the resource related information update data 202 will be described. FIG. 7 is an example of the resource related information update data 202. The resource related information update data 202 has information on the software name, version, nature, and prerequisite software to be installed. In the figure, a column 81 indicates the name, version, and property of the software to be installed. Specifically, the resource to be installed is version 1 of the software 410, and its property is “◯” (not automatically uninstalled even if the relationship with other software is lost). Is shown.
[0038]
A column 82 shows information on prerequisite software that is a prerequisite of the software to be installed. Specifically, it is indicated that the prerequisite software of the software 410 is software 401 (version 2) and software 404 (version 1 or higher).
[0039]
Next, the flow of processing when installing software will be described.
[0040]
FIG. 5 shows the flow of software installation processing. As shown in the figure, in this process, first, data (target resource 201, resource related information update data 202, execution program 203) stored in the external storage medium 2 is taken into the processing device 11 in the computer device 1 ( S501), the processing apparatus 11 executes the execution program 203 (S502). By executing the execution program 203, various functions (see FIG. 1) are realized, and installation processing is performed.
[0041]
First, the execution instruction reception function 111 receives a user installation instruction (S503), and then the determination function 112 determines whether installation can be executed. Specifically, it is determined whether or not the resource related information 123 already exists in the computer device 1 (S504), and if it already exists, the resource related information reading function 119 displays the resource related information 123. Obtain (S505). On the other hand, if the resource related information 123 does not exist in the computer apparatus 1, the resource related information update function 118 newly creates the resource related information 123 in the recording medium 12 of the computer apparatus 1 (S506).
[0042]
Then, the determination function 112 acquires the resource related information update data fetched from the external storage medium 2 (S507), and using this data and the resource related information 123 described above, the computer apparatus 1 uses the precondition of the target resource 201. Is checked (S508).
[0043]
If the precondition is not satisfied, the message output function 113 determines that the installation is impossible, outputs an error message to the display device 13 (S509), and stops the installation process.
[0044]
If the precondition is satisfied, the determination function 112 determines that installation is possible, and the resource registration function 114 registers the target resource 201 imported from the external storage medium 2 in the resource file 121 of the storage device 12 (S510). Next, the resource configuration information update function 116 adds information on the storage location of the registered resource to the resource configuration information 122 in the storage device 12 (S511), and further, the resource related information update function 118 is stored in the storage device 12 The resource related information 123 is updated based on the resource related information update data 202 (S512). Thus, the installation process is completed.
[0045]
Next, a case where the software 410 having the resource related information update data 202 shown in FIG. 7 is installed in the computer apparatus 1 having the resource related information 123 shown in FIG. 3 will be described. Referring to FIG. 3, there is software 401 (version 2), which is prerequisite software for software 410, and version 2 of version 1 or higher exists for software 404. Therefore, the determination function 112 determines that the precondition is satisfied, and continues the installation process of the software 410. Then, based on the resource related information update data 202 of FIG. 7, the resource related information 123 of FIG. 3 is updated as shown in FIG. That is, information on the newly installed software 410 is added to the row 91 and the column 92.
[0046]
Next, a case where software 411 (version 1) having the resource related information update data 202 shown in FIG. 9 is installed will be described. The prerequisite software is version 1 of software 401 and version 3 or more of software 402. Referring to the resource related information 123 of FIG. 3, the software 401 is version 2 and therefore does not satisfy the preconditions. Therefore, it is determined that the software 411 cannot be installed, and the installation is stopped. Thus, by checking the precondition, it is possible to prevent the software 411 that does not satisfy the precondition from being installed in the computer apparatus 1.
[0047]
Next, the flow of processing when software is uninstalled will be described with reference to FIG.
[0048]
First, the execution program 203 is executed by receiving the user's uninstall instruction (S601), and the execution instruction receiving function 111 receives the uninstall instruction (S602). This execution program is taken into the recording medium 12 of the computer apparatus 1 from the external storage medium 2 at the time of installation.
[0049]
Next, the determination function 112 determines whether or not uninstallation can be executed. Specifically, it is determined whether or not the resource related information 123 exists in the storage medium 12. (S603). If the resource related information 123 does not exist in the recording medium 12 or if there is no information on the software to be uninstalled even if it exists, the software to be uninstalled does not exist, so the message output function 113 displays an error message. Is output to the display device 13 (S604), and the uninstall process is stopped.
[0050]
On the other hand, if the resource related information 123 exists, the resource related information reading function 119 acquires the resource related information 123 (S605), and the determination function 112 deletes the target software from the computer apparatus 1. If there is no problem, it is checked (S606).
[0051]
If there is a problem, the determination function 112 determines that uninstallation is not possible, the message output function 113 outputs an error message to the display device 13 (S604), and the uninstallation process is stopped.
[0052]
If there is no problem, the determination function 112 determines that uninstallation is possible, and the resource configuration information reading function 117 refers to the resource configuration information 122 and acquires the registration destination information of the target software (S607). Using this registration destination information, the resource deletion function 115 deletes the target software from the resource file 121 (S608). At the same time, the resource configuration information update function 116 acquires the registration destination information of the target software from the resource configuration information 122. It is deleted (S609). Then, the resource related information update function 118 performs an update to delete information related to the target software from the resource related information 123 in the storage device 12 (S610). Thus, the uninstallation process is completed.
[0053]
Next, the case where the software 402 (version 3) is uninstalled in the computer apparatus 1 that holds the resource related information 123 shown in FIG. 3 will be described. In the process of checking whether or not the software 402 can be deleted (S606), the determination function 112 refers to the column 54 of the resource related information 123 (see FIG. 3) read by the resource related information reading function 119. Since the software 405 and the software 406 based on the software 402 exist, it is determined that the software 402 cannot be uninstalled, and the uninstallation process is stopped.
[0054]
Next, the flow of processing when upgrading software will be described. The upgrade process includes the first method of uninstalling the existing version of the software and then installing the new version of the software (see FIG. 10), and the new version without deleting the existing version of the software. There is a second method (see FIG. 11) in which only the newly added part is differentially installed.
[0055]
FIG. 10 shows the flow of the upgrade process of the first method (uninstallation and installation). First, data (target resource 201, resource related information update data 202, execution program 203) stored in the external storage medium 2 is taken into the processing device 11 of the computer device 1 (S701), and the processing device 11 executes the execution program 203. Is executed (S702). By executing the execution program 203, various functions (see FIG. 1) are realized, and version upgrade processing is performed.
[0056]
First, the execution instruction reception function 111 receives a user upgrade instruction (S703), and then the determination function 112 determines whether the upgrade can be executed. Specifically, it is determined whether or not the resource related information 123 already exists in the storage medium 12 (S704). If the resource-related information 123 does not exist in the recording medium 12 or if there is no information about the software to be upgraded even if it exists, the current version of software does not exist, so the message output function 113 displays an error message. 13 (S714), and the upgrade process is stopped.
[0057]
On the other hand, if the resource related information exists, the resource related information reading function 119 acquires the resource related information 123 (S705), and the determination function 112 deletes the current version of the software from the computer apparatus 1. Is checked for any problems (S706). If there is a problem (that is, if there is other software that assumes the current version of the software), the message output function 113 outputs an error message to the display device 13 (S714) and stops the upgrade process. .
[0058]
If there is no problem, the determination function 112 acquires the resource-related information update data fetched from the external storage medium 2 (S707), and uses this data and the resource-related information 123 described above, the premise of the upgrade target software It is checked whether or not the condition is satisfied (S708).
[0059]
If the prerequisites are not satisfied (that is, the prerequisite software for the upgrade target software is not installed), the message output function 113 outputs an error message to the display device 13 (S714), and the upgrade process is performed. Cancel.
[0060]
When the prerequisite conditions are satisfied (that is, when all prerequisite software of the target software is installed), the resource configuration information reading function 117 refers to the resource configuration information 122 and acquires registration destination information of the current version of the software. (S709). Using this registration destination information, the resource deletion function 115 deletes the current version of software from the resource file 121 (S710).
[0061]
Then, the resource registration function 114 registers the target resource 201 (new version of software) imported from the external storage medium 2 in the resource file 121 of the storage device 12 (S711), and the resource configuration information update function 116 The registration destination information 122 is updated (S712). Further, the resource related information update function 118 updates the resource related information 123 based on the resource related information update data 202 with the information on the current version of the software (S713). Thus, the version upgrade process is completed.
[0062]
Next, the flow of processing when the software is upgraded by the second method (differential installation) will be described with reference to FIG.
[0063]
This process installs the part added by the version upgrade without uninstalling the current version of the software. Compared with the process of FIG. 10, the process of checking whether resources can be deleted (S706) and the process of deleting resources (S710) The other points are the same as in FIG.
[0064]
The embodiment of the installation, uninstallation, and version upgrade of the present invention has been described above.
[0065]
According to the present embodiment, when installing, uninstalling, or upgrading software on a computer device, the software prerequisites are checked to mechanically determine the effects on other software, and there is a problem. It is possible to avoid installation that may occur.
[0066]
In addition, when a certain software is uninstalled, other unnecessary software is automatically deleted along with this, so that it is possible to prevent unnecessary software from remaining in the computer apparatus.
[0067]
Furthermore, since all related information between all software installed on the computer device is centrally managed and updated at the time of installation, uninstallation, and version upgrade, it is possible to always keep the software related information in the latest state. is there.
[0068]
In addition, this invention is not limited to said embodiment, Many deformation | transformation are possible within the range of the summary.
[0069]
For example, as resource-related information, not only the prerequisite software that is a prerequisite, but also information about inconsistent software or incompatible software is retained together to further prevent the occurrence of malfunctions. Is possible.
[0070]
It is also conceivable that the resource-related information 123 stored in the computer apparatus 1 has a means for changing by user operation without performing installation, uninstallation, or version upgrade processing.
[0071]
【The invention's effect】
As described above, according to the present invention, when software is installed, uninstalled, or upgraded in a computer device, a user performs a prior confirmation to determine whether software installation, uninstallation, or version upgrade is possible. It is possible to shorten the work time.
[Brief description of the drawings]
FIG. 1 is a functional configuration diagram of a system according to an embodiment of the present invention.
FIG. 2 is a software configuration diagram according to the embodiment of the present invention.
FIG. 3 is resource related information (example 1) according to the embodiment of the present invention;
FIG. 4 is resource related information (example 2) according to the embodiment of the present invention.
FIG. 5 is a flowchart showing an installation process according to the embodiment of the present invention.
FIG. 6 is a flowchart showing an uninstall process according to the embodiment of the present invention.
FIG. 7 is resource-related information update data (example 1) according to the embodiment of the present invention.
FIG. 8 shows resources according to the embodiment of the present invention.
Related information (example 3).
FIG. 9 is resource-related information update data (example 2) according to the embodiment of the present invention.
FIG. 10 is a flowchart showing a first version upgrade process according to the embodiment of the present invention.
FIG. 11 is a flowchart showing a second version upgrade process according to the embodiment of the present invention.
[Explanation of symbols]
DESCRIPTION OF SYMBOLS 1 ... Computer apparatus, 11 ... Processing apparatus, 12 ... Storage device, 121 ... Resource file, 122 ... Resource configuration information, 123 ... Resource related information, 13 ... Output device, 2 ... External storage medium, 201 ... Target resource, 202 ... Resource related information update data, 203... Execution program

Claims (2)

コンピュータ装置インストールされているソフトウェアをバージョンアップするプログラムにおいて、
前記コンピュータ装置にインストールされているソフトウェアを示すソフトウェア情報と、該ソフトウェア各々について、前提となる他のソフトウェアを示す前提情報と、該ソフトウェアを前提とするソフトウェアの全てがアンインストールされた場合にアンインストールするか否かを示す性質情報と、を含むリソース関連情報を取得する機能と、
外部記憶媒体に格納されているバージョンアップ用のソフトウェア、および、当該ソフトウェアの前提となる他のソフトウェアの情報を含むリソース関連情報更新データを、読み込む機能と、
前記リソース関連情報の前提情報のいずれかに、バージョンアップ対象のソフトウェアが含まれているか否かを調べることで、前記バージョンアップ対象のソフトウェアのアンインストール可否を判断する機能と、
前記リソース関連情報更新データに含まれる前記インストール対象のソフトウェアの前提となる他のソフトウェアの全てが、前記リソース関連情報のソフトウェア情報に含まれているか否かを調べることにより、インストール可否を判断する機能と、
アンインストール可能、および、インストール可能と判断された場合に、
前記バージョンアップ用のソフトウェアのインストール処理を実行することでバージョンアップ処理を実行し、さらに、前記バージョンアップ対象のソフトウェアのアンインストール処理を実行する機能と、
前記リソース関連情報を参照し、前記バージョンアップ対象のソフトウェアの前提情報に含まれるソフトウェアのうち、少なくとも一部の性質情報が、該ソフトウェアを前提とするソフトウェアの全てがアンインストールされた場合にアンインストールすることを示しており、かつ、該ソフトウェアが、前記バージョンアップ対象のソフトウェアを除く他の全てのソフトウェアの前提情報に含まれていない場合、該ソフトウェアのアンインストール処理を実行する機能と、
前記インストール処理、アンインストール処理の実行結果にもとづいて前記リソース関連情報を更新する機能と、
アンインストール不可、または、インストール不可と判断された場合に、前記バージョンアップ処理を中止する機能とを、前記コンピュータ装置に実行させること
を特徴とするバージョンアッププログラム。
In a program for upgrading the software installed on a computer device,
Software information indicating software installed in the computer device, prerequisite information indicating other prerequisite software for each of the software, and uninstallation when all of the software based on the software are uninstalled A function for acquiring resource related information including property information indicating whether or not to perform,
A function for reading resource-related information update data including software for version upgrade stored in an external storage medium and other software that is a prerequisite of the software;
A function of determining whether or not the software to be upgraded is included in any of the prerequisite information of the resource-related information, and determining whether or not to uninstall the software to be upgraded;
A function for determining whether or not the software can be installed by checking whether or not all other software that is the premise of the software to be installed included in the resource related information update data is included in the software information of the resource related information. When,
If it is determined that it can be uninstalled and installed,
A function of executing an upgrade process by executing an installation process of the software for upgrading, and a function of executing an uninstall process of the software to be upgraded;
Refer to the resource-related information, and at least a part of the property information included in the prerequisite information of the software to be upgraded is uninstalled when all the software premised on the software is uninstalled And when the software is not included in the prerequisite information of all the software other than the software to be upgraded, a function of performing an uninstall process of the software,
A function of updating the resource-related information based on an execution result of the installation process and the uninstall process;
An upgrade program that causes the computer device to execute a function of canceling the upgrade process when it is determined that uninstallation is impossible or installation is impossible.
コンピュータ装置インストールされているソフトウェアをバージョンアップする方法において、
前記コンピュータ装置にインストールされているソフトウェアを示すソフトウェア情報と、該ソフトウェア各々について、前提となる他のソフトウェアを示す前提情報と、該ソフトウェアを前提とするソフトウェアの全てがアンインストールされた場合にアンインストールするか否かを示す性質情報と、を含むリソース関連情報を取得するステップと、
外部記憶媒体に格納されているバージョンアップ用のソフトウェア、および、当該ソフトウェアの前提となる他のソフトウェアの情報を含むリソース関連情報更新データを、読み込むステップと、
前記リソース関連情報の前提情報のいずれかに、バージョンアップ対象のソフトウェアが含まれているか否かを調べることで、前記バージョンアップ対象のソフトウェアのアンインストール可否を判断するステップと、
前記リソース関連情報更新データに含まれる前記インストール対象のソフトウェアの前提となる他のソフトウェアの全てが、前記リソース関連情報のソフトウェア情報に含まれているか否かを調べることにより、インストール可否を判断するステップと、
アンインストール可能、および、インストール可能と判断された場合に、
前記バージョンアップ対象のソフトウェアのアンインストール処理を実行し、さらに、前記バージョンアップ用のソフトウェアのインストール処理を実行するステップと、
前記リソース関連情報を参照し、前記バージョンアップ対象のソフトウェアの前提情報に含まれるソフトウェアのうち、少なくとも一部の性質情報が、該ソフトウェアを前提とするソフトウェアの全てがアンインストールされた場合にアンインストールすることを示しており、かつ、該ソフトウェアが、前記バージョンアップ対象のソフトウェアを除く他の全てのソフトウェアの前提情報に含まれていない場合、該ソフトウェアのアンインストール処理を実行するステップと、
前記インストール処理、アンインストール処理の実行結果にもとづいて前記リソース関連情報を更新するステップと、
アンインストール不可、または、インストール不可と判断された場合に、前記バージョンアップ処理を中止するステップとを有すること
を特徴とするバージョンアップ方法。
In a method for upgrading software installed on a computer device,
Software information indicating software installed in the computer device, prerequisite information indicating other prerequisite software for each of the software, and uninstallation when all of the software based on the software are uninstalled Obtaining resource related information including property information indicating whether or not to perform,
A step of reading resource-related information update data including software for version upgrade stored in an external storage medium and other software that is a prerequisite of the software;
Determining whether or not the software to be upgraded is included in any of the prerequisite information of the resource-related information, and determining whether or not to uninstall the software to be upgraded;
Determining whether or not the installation is possible by checking whether or not all of the other software that is the premise of the installation target software included in the resource related information update data is included in the software information of the resource related information. When,
If it is determined that it can be uninstalled and installed,
Performing an uninstallation process of the software to be upgraded, and further performing an installation process of the software for upgrading;
Refer to the resource-related information, and at least a part of the property information included in the prerequisite information of the software to be upgraded is uninstalled when all the software premised on the software is uninstalled And when the software is not included in the prerequisite information of all the software other than the software to be upgraded, the step of uninstalling the software;
Updating the resource related information based on an execution result of the installation process and the uninstall process;
And a step of canceling the upgrade process when it is determined that uninstallation is impossible or installation is impossible.
JP2003040999A 2003-02-19 2003-02-19 Software version upgrade program and version upgrade method Expired - Fee Related JP4402889B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003040999A JP4402889B2 (en) 2003-02-19 2003-02-19 Software version upgrade program and version upgrade method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003040999A JP4402889B2 (en) 2003-02-19 2003-02-19 Software version upgrade program and version upgrade method

Publications (2)

Publication Number Publication Date
JP2004252633A JP2004252633A (en) 2004-09-09
JP4402889B2 true JP4402889B2 (en) 2010-01-20

Family

ID=33024698

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003040999A Expired - Fee Related JP4402889B2 (en) 2003-02-19 2003-02-19 Software version upgrade program and version upgrade method

Country Status (1)

Country Link
JP (1) JP4402889B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110309655A (en) * 2019-07-05 2019-10-08 武汉绿色网络信息服务有限责任公司 A kind of method and detection device detecting safety in APP renewal process

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4757175B2 (en) 2006-11-24 2011-08-24 キヤノン株式会社 Information processing apparatus and application management method
JP4709172B2 (en) * 2007-02-21 2011-06-22 キヤノン株式会社 Information processing apparatus, control method, and program
JP5476834B2 (en) * 2009-07-24 2014-04-23 株式会社リコー Information processing apparatus, workflow system, workflow management method, program, and recording medium
JP5279657B2 (en) * 2009-08-24 2013-09-04 Kddi株式会社 Program inspection apparatus and program for operating computer as the apparatus
JP5444563B2 (en) * 2009-11-05 2014-03-19 日立オートモティブシステムズ株式会社 Computer system, server device, terminal device, and software update method
JP5487962B2 (en) * 2009-12-28 2014-05-14 株式会社リコー Operation suppression system, image forming apparatus, operation suppression information providing apparatus, and operation suppression method
JP2011170638A (en) * 2010-02-18 2011-09-01 Ricoh Co Ltd Program managing system, program managing method, client, and program
JP5454208B2 (en) * 2010-02-18 2014-03-26 株式会社リコー Image processing apparatus, software management system, software management method, and program
JP2014052935A (en) * 2012-09-10 2014-03-20 Fujitsu Ltd Information processing device, verification method and program
JP2014006933A (en) * 2013-10-11 2014-01-16 Ricoh Co Ltd Information processing device, apparatus, information processing system, installing support method, and installing support program
JP2018072869A (en) * 2016-10-24 2018-05-10 株式会社沖データ Information processing apparatus, information processing program and information processing method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110309655A (en) * 2019-07-05 2019-10-08 武汉绿色网络信息服务有限责任公司 A kind of method and detection device detecting safety in APP renewal process
CN110309655B (en) * 2019-07-05 2021-08-17 武汉绿色网络信息服务有限责任公司 Method and device for detecting safety in APP updating process

Also Published As

Publication number Publication date
JP2004252633A (en) 2004-09-09

Similar Documents

Publication Publication Date Title
JP4199923B2 (en) Mobile device application installation method
US7958210B2 (en) Update management method and update management unit
JP4286798B2 (en) Method for installing driver file on hard drive, computer and computer-readable storage medium
JP4402889B2 (en) Software version upgrade program and version upgrade method
US8782636B2 (en) Information processing apparatus, control method thereof, and program
US20060271924A1 (en) Method and apparatus for automating updates to dependencies
JP2010521726A (en) Method, system, and computer program for distributing customized software products
US20100146478A1 (en) Multi-layered storage and management of software components
CN103080902A (en) Information processing apparatus and update process support system
JP5336965B2 (en) Information processing apparatus, information processing apparatus control method, and program
US20110209134A1 (en) Information processing apparatus
JP5024036B2 (en) Program distribution server, distribution system, distribution method, and distribution target program
JP2006260314A (en) Application software configuration management device, application software configuration management method and program
JP2014123249A (en) Information processor, program, and information processing method
US6915512B1 (en) Software editing with indication of format and processing state of each process of the software
US8707307B2 (en) Creating jobs by replacing execution attributes within job definition when a job activation request is received with execution attributes based on predetermined conditions being satisfied
US20100198786A1 (en) Information processing apparatus, information processing method, and computer program product
JP2009009494A (en) Information processor, information processing method and control program
JP4353003B2 (en) Installation method, installation method, distribution device and program thereof
JP2002318694A (en) Installing method, installation system, processor, computer program and recording medium
JP2015210769A (en) Information processing device, information processing method, and program
JP2008158660A (en) Installer creating apparatus, installer creating method, and installer creating program
JPH11134178A (en) Interrelated check system by information on number of versions of load module and program storage medium
JP2004206353A (en) Installation method of software
JPH11272451A (en) Install control system for software, method therefor and recording medium recorded with program therefor

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060106

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20060106

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080527

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080624

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080811

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090811

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090925

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: 20091020

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20091030

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121106

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121106

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131106

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees