JP2018112817A - Printer Driver Uninstaller - Google Patents

Printer Driver Uninstaller Download PDF

Info

Publication number
JP2018112817A
JP2018112817A JP2017001784A JP2017001784A JP2018112817A JP 2018112817 A JP2018112817 A JP 2018112817A JP 2017001784 A JP2017001784 A JP 2017001784A JP 2017001784 A JP2017001784 A JP 2017001784A JP 2018112817 A JP2018112817 A JP 2018112817A
Authority
JP
Japan
Prior art keywords
printer
printer driver
driver
drivers
print queue
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.)
Pending
Application number
JP2017001784A
Other languages
Japanese (ja)
Inventor
昭彦 得田
Akihiko Tokuda
昭彦 得田
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2017001784A priority Critical patent/JP2018112817A/en
Publication of JP2018112817A publication Critical patent/JP2018112817A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To improve visibility of an error massage display, in the case that two or more types of a printer drivers exist and a common module exist among those printer drivers, and a printer driver among those printer drivers is uninstalled.SOLUTION: An uninstaller acquires information on multiple installed printer drivers using a common module, and displays a massage with a representation combining the multiple printer drivers according to the information.SELECTED DRAWING: Figure 15

Description

本発明はホストコンピューターなどにインストールされ、前記ホストコンピューターと接続された印刷装置に対し、印刷データを作成し、送信するプリンタードライバーを削除(以降、アンインストールと呼ぶ)する情報処理方法、情報処理システム、情報処理装置、およびそれらの設定方法、プログラム、記憶媒体に関するものである。   The present invention provides an information processing method and an information processing system for creating print data and deleting a printer driver to be transmitted (hereinafter referred to as “uninstallation”) for a printing apparatus installed in a host computer or the like and connected to the host computer , An information processing apparatus, a setting method thereof, a program, and a storage medium.

ホストコンピューターなどにインストールされ、前記ホストコンピューターと接続された印刷装置に対し、印刷データを作成し、送信するプリンタードライバーを前記ホストコンピューターからアンインストールするプリンタードライバーアンインストーラーにおいて、同じプリンターベンダーや同じバージョンで複数種のプリンター分のプリンタードライバーを削除(アンインストール)対象としている場合、それらのプリンタードライバー同士で共通のドライバーモジュールがインストールされていると、その対象のプリンタードライバーが全てアンインストールされない限り、前記共通モジュールをアンインストールしないなどの処理を行っていた。   In the printer driver uninstaller that creates print data and uninstalls the printer driver to be sent from the host computer that is installed on the host computer and connected to the host computer. If the printer driver for multiple types of printers is to be deleted (uninstalled), and if a common driver module is installed among those printer drivers, the common driver module will be used unless all the target printer drivers are uninstalled. Processing such as not uninstalling the module was performed.

ホストコンピューターとの初回の接続時に当該ホストコンピューターにインストールされる、複数のプリンターに共通の共通プリンタードライバーと、上記ホストコンピューターとの初回および2回目以降の接続時にインストールされ、上記ホストコンピューターとの接続解除時にアンインストールされる内容が下記の文献1で提供されている。   Common printer driver that is installed on the host computer when connecting to the host computer for the first time, and that is installed when connecting the host computer with the host computer for the first time and after the first time, and disconnecting from the host computer. The contents that are sometimes uninstalled are provided in Document 1 below.

特開2006−113968号公報JP 2006-113968 A

各プリンターベンダーが提供しているプリンタードライバーはプリンター言語分、あるいはバージョンごと、そして機種数分など相当数のプリンタードライバーがあるが、それらは共通モジュールを有していることが多い。   The printer drivers provided by each printer vendor include a considerable number of printer drivers such as printer languages, versions, and models, but they often have a common module.

前記ホストコンピューターにインストールされている基本ソフト(オペレーティングシステム=以下OSと呼ぶ)の一部の仕組みに対応した少なくとも2種類以上のプリンタードライバーが存在しており、かつそれらのプリンタードライバー間で共通モジュールが存在しているケースにおいて、そのうちのひとつのプリンタードライバーをアンインストールする場合、アンインストールが完了しないか、エラーメッセージを表示して終了する。   There are at least two types of printer drivers corresponding to a part of the basic software (operating system = hereinafter referred to as OS) installed in the host computer, and there is a common module between these printer drivers. If one of the printer drivers is uninstalled in the existing case, the uninstallation is not completed or an error message is displayed and the process ends.

ユーザが共通モジュールも含めて全モジュールをアンインストールするには、この 共通モジュールを使用している他のドライバーが何かを知る必要がある。そのため、上記エラーメッセージに共通モジュールを共有する全プリンタードライバー名称を表示する必要があるが、多数インストールされた場合にはその名称を覚えるのが難しく、名称をコピーなどして記録する手間が必要という問題がある。   To uninstall all modules, including common modules, the user needs to know what other drivers are using this common module. For this reason, it is necessary to display the names of all printer drivers that share a common module in the above error message, but when many are installed, it is difficult to remember the names, and it is necessary to copy and record the names. There's a problem.

上記課題を解決するために、本発明において、前記多数インストールされているプリンタードライバーの情報を取得し、その情報に応じて複数のプリンタードライバーをまとめた表現で、前記メッセージ表示する。   In order to solve the above-described problem, in the present invention, information on the many installed printer drivers is acquired, and the message is displayed in an expression that summarizes a plurality of printer drivers according to the information.

本発明によって、全ドライバー名称を記録する手間を省いたアンインストールを提供できるという効果がある。   According to the present invention, there is an effect that it is possible to provide an uninstall that saves the trouble of recording all driver names.

システムの全体図Overall view of the system ホストコンピューターのブロック図Block diagram of host computer プリンタードライバーのモジュール構成図Printer driver module configuration diagram プリンタードライバーのインストール方法フローチャートPrinter driver installation flowchart プリンタードライバーのプリントキュー登録方法フローチャートPrinter driver print queue registration method flowchart プリントキュー登録ユーザI/FPrint queue registration user I / F プリントキュー追加ユーザI/FPrint queue addition user I / F プリンタードライバーのシステム構成図System configuration diagram of the printer driver 登録キューファイルRegistration queue file 登録キューファイルプリンター仕様記述ファイルRegistered queue file Printer specification file プリンター仕様記述ファイルのOSでの保存例Example of saving the printer specification file in the OS インストール指示書の記載例Example of installation instructions 共通モジュールが存在する場合のメッセージ表示を表すフローチャートFlow chart showing message display when common module exists エラーメッセージの表示例Error message display example 本発明を表すドライバインストーラのフローチャートDriver Installer Flowchart Representing the Present Invention 本発明を表すエラーメッセージの表示例1Display example 1 of an error message representing the present invention プリンタードライバー用dllで持つドライバー情報例Example of driver information held by dll for printer driver 本発明を表すエラーメッセージの表示例2Error message display example 2 representing the present invention

[実施例1]
図1〜図14は本発明による実施例を示すものである。
[システム構成]
本実施例は、ホストコンピューター(101)上のオペレーティングシステムにインストールされているプリンタードライバーアンインストーラーが、RAM(202)にロードされたプログラムをCPU(201)で実施することによって実現されるものとする。
[Example 1]
1 to 14 show an embodiment according to the present invention.
[System configuration]
This embodiment is realized by the printer driver uninstaller installed in the operating system on the host computer (101) executing the program loaded in the RAM (202) by the CPU (201). .

図1は、本発明を表すシステムの全体図であり、ホストコンピューター(101)、印刷装置(102、103)はそれぞれネットワーク(100)に接続されているものとする。図2は、ホストコンピューター(101)の装置内部構成を示すブロック図である。ホストコンピュータ(101)において、CPU(201)は、RAM(202)に記憶されているプログラムに従って、システムバス(204)に接続される各デバイスを総括的に制御している。このRAM(202)は、CPU(201)の主メモリ、ワークエリア等としても機能している。   FIG. 1 is an overall view of a system representing the present invention. It is assumed that a host computer (101) and printing apparatuses (102, 103) are connected to a network (100). FIG. 2 is a block diagram showing an internal configuration of the host computer (101). In the host computer (101), the CPU (201) comprehensively controls each device connected to the system bus (204) in accordance with a program stored in the RAM (202). The RAM (202) also functions as a main memory, work area, and the like for the CPU (201).

ROM(203)は、システムの基本的な各種プログラム及びデータを格納している。表示操作部I/F(205)は、表示操作部(206)への情報の表示制御を行う。また、表示操作部(206)は表示機能を持つと同時にタッチパネルとなっておりユーザからの入力を制御する。ネットワークI/F(207)はネットワークモジュール(208)の制御を行い、ネットワーク通信を実現する。外部メモリI/F(209)は、例えばフラッシュメモリー、Solid State Disk等の外部メモリ(211)とのアクセスを制御する。   The ROM (203) stores various basic programs and data of the system. A display operation unit I / F (205) controls display of information on the display operation unit (206). The display operation unit (206) has a display function and at the same time is a touch panel, and controls input from the user. The network I / F (207) controls the network module (208) to realize network communication. An external memory I / F (209) controls access to an external memory (211) such as a flash memory or a solid state disk.

外部メモリ(211)は、該オペレーティングシステムプログラム(以下、OS)(212)をはじめ該プリンタードライバーアンインストーラーを含む各種アプリケーション(216)を記憶し、ホストコンピューター(101)が保存または、読み取り可能な記憶媒体として機能する。なお、OS(212)はアプリケーションを動作させるためのアプリケーションフレームワーク(213)、OS(212)が提供する各種システムプログラム(214)、及び各種ユーティリティ関数などを格納したライブラリ(215)を備えている。   The external memory (211) stores the operating system program (hereinafter referred to as OS) (212) and various applications (216) including the printer driver uninstaller, and can be stored or read by the host computer (101). Functions as a medium. The OS (212) includes an application framework (213) for operating an application, various system programs (214) provided by the OS (212), and a library (215) storing various utility functions. .

またシステムプログラム(214)による各種設定はユーザ設定情報システム保存領域(220)に格納される。またアプリケーション(216)はアプリケーション実行コードを備えている。さらにアプリケーション(216)は、ユーザI/Fの制御部(217)、オペレーティングシステム(212)のシステムプログラム(214)により設定された値を取得する、システム設定取得部(218)を有する。また、ユーザがアプリケーション(216)で設定したユーザ設定情報の保存領域(219)を備えている。   Various settings by the system program (214) are stored in the user setting information system storage area (220). The application (216) includes an application execution code. The application (216) further includes a system setting acquisition unit (218) that acquires values set by the control unit (217) of the user I / F and the system program (214) of the operating system (212). In addition, a user setting information storage area (219) set by the user using the application (216) is provided.

[プリンタードライバーインストール基本フローおよびプリントキュー登録]
次に該プリンタードライバーアンインストーラーのアンインストール対象となるプリンタードライバーのインストールについて説明する。
[Printer Driver Installation Basic Flow and Print Queue Registration]
Next, installation of a printer driver to be uninstalled by the printer driver uninstaller will be described.

インストールする際に用意されるプリンタードライバーは図3に示すようなモジュール群で構成されている。301のプリンタードライバーは、302のグラフィックレンダリングモジュール、303のUI制御モジュール、304のプリンター仕様記述ファイル、305の色処理モジュール、306の入出力制御モジュールから構成される。なお、プリンタードライバーの機能によってはこの他のモジュールから構成されることもある。このプリンタードライバーはいくつかの作成の仕方がある。   The printer driver prepared at the time of installation is composed of a group of modules as shown in FIG. A printer driver 301 includes a graphic rendering module 302, a UI control module 303, a printer specification description file 304, a color processing module 305, and an input / output control module 306. Depending on the function of the printer driver, it may be composed of other modules. There are several ways to create this printer driver.

たとえばひとつのプリンタードライバーで複数のプリンターを対応するために、グラフィックレンダリングモジュール(302)およびUI制御モジュール(303)を複数のプリンターに対応できるように作成しておく。また、プリンタ仕様記述ファイル(304)に関しては、対応しているプリンター分、プリンタードライバーに同梱しておく、という方法である。このような方法では、UI制御モジュール(303)はプリンタ仕様記述ファイル(304)に合わせてUIを表示、制御する。またグラフィックレンダリングモジュール(302)は各プリンターに合わせたページ記述言語およびプリンター制御コマンドを発行するような構成となる。   For example, in order to support a plurality of printers with one printer driver, the graphic rendering module (302) and the UI control module (303) are created so as to be compatible with a plurality of printers. Also, the printer specification description file (304) is bundled with the printer driver for the corresponding printer. In such a method, the UI control module (303) displays and controls the UI in accordance with the printer specification description file (304). The graphic rendering module (302) is configured to issue a page description language and a printer control command suitable for each printer.

次に、このような構成のプリンタードライバーをホストコンピュータ(101)へインストールする基本手順を説明する。図4はプリンタードライバーのインストール手順を示したものである。ユーザはプリンタードライバーが格納されたCD−ROMを準備するか、ネットワーク経由でプリンタードライバーインストーラーを入手しているものとする。ステップ401(図4では“S401”と表示。以降同様)において、ユーザは入手したプリンタードライバーインストーラーを起動する。   Next, a basic procedure for installing the printer driver having such a configuration in the host computer (101) will be described. FIG. 4 shows a printer driver installation procedure. Assume that the user prepares a CD-ROM in which the printer driver is stored or obtains a printer driver installer via the network. In step 401 (displayed as “S401” in FIG. 4 and so on), the user activates the obtained printer driver installer.

この動作をきっかけとしてステップ402において、プリンタードライバーインストーラーはプリンタードライバーモジュールを外部メモリ(211)の所定の場所に格納する。格納場所は印刷システムによって異なるが、一例として、CUPS(Common Unix Printing System)では、
/Library/Printers/
ディレクトリ以下にプリンターベンダー毎にプリンタードライバーモジュールを格納することになっている。
With this operation as a trigger, in step 402, the printer driver installer stores the printer driver module in a predetermined location in the external memory (211). Although the storage location varies depending on the printing system, as an example, in CUPS (Common Unix Printing System)
/ Library / Printers /
The printer driver module is stored for each printer vendor under the directory.

さらにプリンターベンダー毎のディレクトリの下にさらにプリンタードライバーの種類に分けて格納することも可能である。たとえば、ABCというプリンターベンダーのPDL1とPDL2という異なるプリンタードライバーがあるとき、それぞれ
/Library/Printers/ABC/PDL1/
/Library/Printers/ABC/PDL2/
というディレクトリを作成して、そのディレクトリ下にプリンタードライバーを格納することが可能となっている。
Furthermore, it is also possible to store the printer driver types separately under the directory for each printer vendor. For example, when there are different printer drivers PDL1 and PDL2 of a printer vendor called ABC, / Library / Printers / ABC / PDL1 /
/ Library / Printers / ABC / PDL2 /
This directory can be created and the printer driver can be stored under that directory.

次に、ステップ402ではプリンタードライバーモジュールを外部メモリ(211)の上記ディレクトリに格納する動作となる。   In step 402, the printer driver module is stored in the directory of the external memory (211).

これでプリンタードライバーのインストールは完了するが、実際にプリンターに出力するには、ユーザはプリンタードライバーを使用してプリントキューを登録する必要がある。
図5はプリントキューを登録する手順を示したものである。この手順に沿って、同図を用いながら流れを説明する。
This completes the installation of the printer driver, but in order to actually output to the printer, the user needs to register a print queue using the printer driver.
FIG. 5 shows a procedure for registering a print queue. A flow is demonstrated along this procedure, using the same figure.

ステップ501において、ユーザはプリントキュー登録のダイアログを開く。このステップにおいて、OS(212)はプリントキュー登録のためのプログラムコードを外部メモリ(211)からRAM(202)に読みだして実行する。図6はOS(212)が表示するプリントキュー登録ユーザI/F(601)を示したものである。このダイアログには、現在登録されているプリントキュー(図では“プリンター”と表現する)の一覧を表示するための登録プリントキューリスト(602)、そして前記登録プリントキューリスト(602)で選択されているプリントキューの詳細情報を表示するプリントキュー詳細表示領域(603)がある。   In step 501, the user opens a print queue registration dialog. In this step, the OS (212) reads the program code for print queue registration from the external memory (211) to the RAM (202) and executes it. FIG. 6 shows the print queue registration user I / F (601) displayed by the OS (212). In this dialog, a registered print queue list (602) for displaying a list of currently registered print queues (represented as “printers” in the figure), and the selected print queue list (602) are selected. There is a print queue detail display area (603) for displaying detailed information of the print queue being stored.

また、604はプリントキューを登録するためのボタン、605は現在登録プリントキューリスト(602)で選択されているプリントキューを削除するためのボタンである。なお、606はこのダイアログを閉じるためのボタンである。   Reference numeral 604 denotes a button for registering a print queue, and reference numeral 605 denotes a button for deleting the print queue selected in the currently registered print queue list (602). Reference numeral 606 denotes a button for closing this dialog.

次にステップ502において、ユーザはプリントキュー登録ダイアログ(601)のプリントキュー追加ボタン(604)をクリックする。このユーザ操作によりステップ503においてOSはプリントキュー登録ダイアログを表示する。ここで表示されたダイアログに対して、ユーザはステップ504おいて、必要な情報を入力、プリントキューの追加を行う。   Next, in step 502, the user clicks a print queue addition button (604) in the print queue registration dialog (601). By this user operation, in step 503, the OS displays a print queue registration dialog. In step 504, the user inputs necessary information to the displayed dialog and adds a print queue.

図7はOS(212)が表示するプリントキュー登録ダイアログを示したものである。プリントキュー登録ダイアログ(601)において、702は接続されているプリンターのネットワークアドレス(この例ではIPアドレス)を指定するコントロールである。その他、703はプリントキューを識別するためのプリンターの名前を入力するコントロール、704はプリンターが設置されている場所を入力するコントロールである。プリンターの名前(703)およびプリンターの場所(704)は、登録プリントキューリスト(602)およびプリンター詳細(603)に表示する際に使用される文字列となる。   FIG. 7 shows a print queue registration dialog displayed by the OS (212). In the print queue registration dialog (601), reference numeral 702 denotes a control for designating the network address (IP address in this example) of the connected printer. In addition, reference numeral 703 denotes a control for inputting a printer name for identifying a print queue, and reference numeral 704 denotes a control for inputting a location where the printer is installed. The printer name (703) and the printer location (704) are character strings used when displayed in the registered print queue list (602) and the printer details (603).

705はプリントキューを登録する際に使用するプリンタードライバーを指定するコントロールである。ここでリストされるプリンタードライバーは、先に説明したOS(212)のプリンタードライバー格納ディレクトリ(/Library/Printers)に格納されているプリンタードライバーをOS(212)がリストする。図7の例では、アドレスが192.168.1.10、プリントキューの名前が”PrinterC”、場所が”2F”、またプリンタードライバーとして”ABC PDL1”を選択している状態である。この状態で706の追加ボタンをクリックすると、OS(212)はプリントキュー追加を行う。なお、追加を行わないでこのダイアログを閉じるときはダイアログクローズボタン(707)をクリックする。   Reference numeral 705 denotes a control for designating a printer driver to be used when registering a print queue. For the printer drivers listed here, the OS (212) lists printer drivers stored in the printer driver storage directory (/ Library / Printers) of the OS (212) described above. In the example of FIG. 7, the address is 192.168.1.10, the print queue name is “PrinterC”, the location is “2F”, and “ABC PDL1” is selected as the printer driver. When an add button 706 is clicked in this state, the OS (212) adds a print queue. To close this dialog without adding, a dialog close button (707) is clicked.

次にステップ505において、OS(212)はユーザが指定したプリントキューをシステムに登録する。このステップについて、図8〜図6(c)を使用して詳細な説明を行う。   In step 505, the OS (212) registers the print queue designated by the user in the system. This step will be described in detail with reference to FIGS.

図8はすでにプリンタードライバーがインストールされ、さらにプリントキューが登録された状態を示すシステムブロック図である。図8において、グラフィックレンダリングモジュール(803)は前述した手順によりOS(212)の所定のディレクトリ(/Library/Printers/)にインストールされたプリンタードライバーのグラフィックレンダリングモジュール(302)である。   FIG. 8 is a system block diagram showing a state in which a printer driver has already been installed and a print queue has been registered. In FIG. 8, a graphic rendering module (803) is a graphic rendering module (302) of a printer driver installed in a predetermined directory (/ Library / Printers /) of the OS (212) by the above-described procedure.

同様に、UI制御モジュール(805)は、インストールされたプリンタードライバーのUI制御モジュール(303)である。色処理モジュール(804)は、インストールされたプリンタードライバーの色処理制御モジュール(305)である。入出力制御モジュール(808)は、インストールされたプリンタードライバーの入出力制御モジュール(306)である。また、プリンター仕様記述ファイル(806)は、インストールされたプリンタードライバーのプリンター仕様記述ファイル(304)である。   Similarly, the UI control module (805) is the UI control module (303) of the installed printer driver. The color processing module (804) is a color processing control module (305) of the installed printer driver. The input / output control module (808) is an input / output control module (306) of the installed printer driver. The printer specification description file (806) is a printer specification description file (304) of the installed printer driver.

なお807のバックエンドモジュールはOS(212)が提供するものであり、グラフィックレンダリングモジュール(803)が生成した印刷データをプリンターへ送信するための入出力制御モジュール(808)へ受け渡しするためのモジュールである。また、809のプリントキュー登録情報、810のプリンター仕様記述ファイル、811のプリントキュー設定ファイルは、図5のプリントキュー登録の過程でOS(212)が生成するものであり、以下その詳細を説明する。   The back-end module 807 is provided by the OS (212), and is a module for passing the print data generated by the graphic rendering module (803) to the input / output control module (808) for transmitting to the printer. is there. Further, the print queue registration information 809, the printer specification description file 810, and the print queue setting file 811 are generated by the OS (212) in the print queue registration process of FIG. 5, and the details will be described below. .

ステップ505において、OS(212)はプリンター追加ダイアログの情報をあつめ、プリンターの登録作業を行う。この登録は以下のように実行される。図9は登録するプリントキューの情報が記述されたファイルであり、マークアップ言語で記述している。901はプリントキューの識別子であり、プリンター名とアンダースコアで続けてプリンターのアドレスを記述している。902はプリンターの名前を記述している。903は場所を記述している。904は実際のプリントキューの記述を行っており、この例ではlpdプロトコルにより192.168.1.10のアドレスに送信することとなる。   In step 505, the OS (212) collects information of the printer addition dialog and performs printer registration. This registration is performed as follows. FIG. 9 shows a file in which information of a print queue to be registered is described, which is described in a markup language. Reference numeral 901 denotes a print queue identifier, which describes a printer address followed by a printer name and an underscore. Reference numeral 902 describes the name of the printer. Reference numeral 903 describes the location. Reference numeral 904 describes an actual print queue. In this example, the print queue is transmitted to an address of 192.168.1.10 by the lpd protocol.

905はこのプリンターが使用するプリンタードライバー名(ここではABC PDL1)を記述している。906はこのプリンターの記述が終了することを示している。OS(212)はステップ505においてこの記述を作成し、このプリンターの登録情報を外部メモリ(211)の所定のファイルに追記する。所定のファイルとは、たとえばCUPSシステムでは、/etc/cups/ディレクトリに格納されているprinters.confファイルに記録を行うこととなる。これがプリントキュー登録情報(809)となる。なお、複数のプリントキューが登録されている場合、printers.confにはそのプリントキュー分、それぞれの対応するプリンターに対して図9の記述が繰り返されることになる。   Reference numeral 905 describes a printer driver name (ABC PDL1 in this case) used by this printer. Reference numeral 906 indicates that the description of the printer is completed. In step 505, the OS (212) creates this description, and adds the printer registration information to a predetermined file in the external memory (211). For example, in the CUPS system, the predetermined file is a printers.file stored in the / etc / cups / directory. Recording is performed in a conf file. This is the print queue registration information (809). If multiple print queues are registered, printers. In conf, the description of FIG. 9 is repeated for each corresponding printer for the print queue.

続いてステップ505においてOS(212)はプリンタ仕様記述ファイル(806)をシステムに登録する。図5においてOS(212)はプリンタドライバのUI制御モジュール(805)から登録するプリンターのプリンタ仕様記述ファイル(806)を取得し、プリントキューごとに用意されたシステム所定の箇所810に登録する。   In step 505, the OS (212) registers the printer specification description file (806) in the system. In FIG. 5, the OS (212) acquires the printer specification description file (806) of the printer to be registered from the UI control module (805) of the printer driver, and registers it in a predetermined system location 810 prepared for each print queue.

プリンタ仕様記述ファイル(806)の登録の方法を説明する前に、プリンタ仕様記述ファイル(806)そのものの説明を行う。図10はプリンタ仕様記述ファイル(806)の一例を示したものである。このファイルはプリンターの仕様記述フォーマットに沿って記述される。   Before describing the method for registering the printer specification description file (806), the printer specification description file (806) itself will be described. FIG. 10 shows an example of the printer specification description file (806). This file is described according to the printer specification description format.

以下、フォーマットも踏まえながら説明する。1001はコメントを記述している。コメントは行頭が“*%“となっている。1002はプリンターベンダー名を記述している。1003はこのプリンタ仕様記述ファイル(806)が対応するプリンター名を記述している。1004はこのプリンタ仕様記述ファイル(806)が対応しているページ記述言語を記述している。1005はプリンタードライバーのバージョンを記述している。このあと、このプリンターの機能仕様が記述されている。機能仕様は、*OpenUI(例:1006)の行から*CloseUI(例:1010)の行までがひとつの機能となっている。   The following explanation is based on the format. Reference numeral 1001 describes a comment. The comment starts with “*%”. Reference numeral 1002 describes a printer vendor name. Reference numeral 1003 describes a printer name corresponding to the printer specification description file (806). Reference numeral 1004 describes a page description language corresponding to the printer specification description file (806). Reference numeral 1005 describes the version of the printer driver. After this, the functional specifications of this printer are described. The function specification includes one function from a line of * OpenUI (example: 1006) to a line of * CloseUI (example: 1010).

*OpenUIのあとには“*“を先頭に付加した機能名、機能名の後には“:“で区切り、その機能の選択する際の種類を示す。この種類には、“PickOne“と“Boolean“があり、“PickOne“は選択肢の中からひとつを選択する機能であることを表している。また、“Boolean“はこの機能がOn/Offで制御されることを表している。1006では、*PageSizeという機能があり、この機能は選択肢のなかからひとつを選択するものであることを表している。1006の次の行にはこの機能のデフォルト値を記述する。この行は“*Default“で始まり、この後につづけて前の行で定義した機能名を付加する。   * OpenUI is followed by a function name with “*” added to the head, and after the function name is separated by “:” to indicate the type of function to be selected. This type includes “PickOne” and “Boolean”, and “PickOne” represents a function for selecting one of the options. “Boolean” indicates that this function is controlled by On / Off. In 1006, there is a function * PageSize, which indicates that one of the options is selected. The next line after 1006 describes the default value of this function. This line begins with “* Default”, followed by the function name defined in the previous line.

この行では、PageSizeという機能のデフォルトがA4であることを示している。次の行から1010の*CloseUIのところまではこの機能の選択肢を1行に1選択肢記述する。たとえば1008では、PageSizeの選択肢のひとつとしてA3があることを表している。なお、これはページサイズを選択する機能を記述しており、ページサイズは選択肢が多いため途中を省略している。この機能の最後の記述は1010であり、*CloseUIの後に*OpenUIで記述した機能名を記述する。これでひとつの機能が表現されている。つぎの1011から1016まではもうひとつの機能の記述である。   This line indicates that the default of the function “PageSize” is A4. From the next line up to 1010 * CloseUI, one option is described per line for this function. For example, 1008 indicates that A3 is one of the options of PageSize. This describes a function for selecting a page size, and the page size is omitted because there are many options. The last description of this function is 1010, and the function name described in * OpenUI is described after * CloseUI. This represents a single function. The following 1011 to 1016 are descriptions of another function.

重複する説明は省略するが、このブロックでは、Duplexという機能があり、どれかひとつの選択肢を選択するものであり、選択肢はNone、Simplex、Duplexから選択することを表している。実際にはこれは両面印刷指定の機能を表現したものであり、Noneは指定しないためプリンターのデフォルト設定に従い、Simplexは片面、Duplexは両面印刷を意味する。   Although a duplicate description is omitted, this block has a function called Duplex, which selects one of the options, and represents that the option is selected from None, Simplex, and Duplex. Actually, this expresses a function for specifying double-sided printing. Since None is not specified, Simplex means single-sided printing and Duplex means double-sided printing according to the printer default setting.

次に、OS(212)がこのプリンタ仕様記述ファイル(806)を登録する方法について説明する。OS(212)はプリンターに対応するこのプリンタ仕様記述ファイル(216)をUI制御モジュール(805)から取得し、システムの所定の場所に格納する。図11は格納場所とそのファイルを示したものである。格納場所は外部メモリ(211)の/etc/cups/ppd/ディレクトリ、格納するファイルはファイル名としてプリンターの名前とそのあと、アンダースコアに続いてプリンターのアドレスを付加したファイル名としている。ここで追加したプリンタ仕様記述ファイル(810)は1004の“PrinterC_192.168.1.10_.ppd“となっている。図5において、OS(212)はプリンタ仕様記述ファイル(806)を810のプリンタ仕様記述ファイルに格納していることを示している。   Next, a method for registering the printer specification description file (806) by the OS (212) will be described. The OS (212) acquires the printer specification description file (216) corresponding to the printer from the UI control module (805) and stores it in a predetermined location of the system. FIG. 11 shows the storage location and its file. The storage location is the / etc / cups / ppd / directory of the external memory (211), and the file to be stored is a file name in which the printer name is added as the file name, followed by the printer address after the underscore. The added printer specification description file (810) is “PrinterC — 192.168.1.10 — .ppd” of 1004. In FIG. 5, the OS (212) indicates that the printer specification description file (806) is stored in the printer specification description file 810.

以上のステップにより、プリントキューの登録が完了する。
[インストールされたプリンタードライバーのファイル構成]
次に、上記で説明されたプリンタードライバーのファイルがどのように、OS(212)で管理されているかを説明する。
Through the above steps, registration of the print queue is completed.
[File structure of installed printer driver]
Next, how the printer driver file described above is managed by the OS (212) will be described.

まず、本発明に関わるプリンタードライバーは、図12に示すようなインストール指示書(1200)に従って、各関連ファイルを図4〜7で示す方法などで、プリンタードライバーインストーラーやOS(212)の機能によってインストールされる。そして各関連ファイルのうち、プリンターごとに必要とする固有ファイル(1202〜1210)の他に、本プリンタードライバー、および同じプリンターベンダーが提供している他のプリンタードライバーセットと共通して使用されるファイルであることをOS(212)に対して宣言する共通ファイル(1201)がある。同じプリンターベンダーの他のプリンタードライバーセットの例としては、図6の603にある「種類」や705の「ドライバー」、1004、1005などにある「PDL1」の他の、例えば「PDL2」用のプリンタードライバーセットのことである。   First, the printer driver according to the present invention is installed according to the installation instruction (1200) as shown in FIG. 12 according to the functions of the printer driver installer and the OS (212) by using the method shown in FIGS. Is done. Of the related files, in addition to the unique files (1202 to 1210) required for each printer, files used in common with this printer driver and other printer driver sets provided by the same printer vendor There is a common file (1201) that declares to the OS (212). Other printer driver sets of the same printer vendor include “type” in 603 in FIG. 6, “driver” in 705, “PDL1” in 1004, 1005, etc., for example, a printer for “PDL2” It is a driver set.

PDLとはページ記述言語(Page Description Language:以降PDL)を表し、PostScriptやPCL(どちらも登録商標)に代表される、印刷する際のプリンターが解釈する印刷データのことである。一般的に各プリンターベンダーは複数のPDLが解釈できるプリンターを提供し、それぞれのPDLごとのプリンタードライバーも提供している。このようなケースにおいて、各PDL用のプリンタードライバーで共通に使用できるモジュールを用意し、開発効率を上げていることが多い。   PDL represents a page description language (hereinafter referred to as PDL), and is print data that is interpreted by a printer when printing, represented by PostScript and PCL (both are registered trademarks). Generally, each printer vendor provides a printer that can interpret a plurality of PDLs, and also provides a printer driver for each PDL. In such a case, a module that can be used in common by each PDL printer driver is often prepared to increase development efficiency.

一方、一部のOS(212)の中には、前記共通モジュールが存在し、かつその共通モジュールを複数のプリンタードライバーで使用している場合、先にインストールしたプリンタードライバーの共通モジュールを、後からインストールしたプリンタードライバーが依存性を持った形でインストールされる。このようなケースにおいて、依存性を持たれている、前者の(先にインストールされた)プリンタードライバーをアンインストールする際、その共通モジュールをアンインストールできない仕組みになっている。   On the other hand, in some OS (212), when the common module exists and the common module is used by a plurality of printer drivers, the previously installed common module of the printer driver is installed later. The installed printer driver is installed in a dependent manner. In such a case, when uninstalling the former (previously installed) printer driver having dependency, the common module cannot be uninstalled.

前記一部のOS(212)とは、プリントサーバー(図示せず)にインストールされたプリンタードライバーをクライアント側のホストコンピューターにひとつのパッケージとしてインストールすることで、従来のOSでは困難だった、ドライバーファイルの信頼性の確認が容易に行える、共通モジュールの管理がシンプルになり、バージョン違いなどによる互換性も考慮不要になるなどのメリットがある。   The part of the OS (212) is a driver file that is difficult in the conventional OS by installing a printer driver installed on a print server (not shown) as a single package on a client-side host computer. There are advantages such as easy confirmation of reliability, simplified management of common modules, and no need to consider compatibility due to version differences.

[本発明を表す実施例]
上記のようなOS(212)にインストールされた複数のプリンタードライバーのひとつをアンインストールする場合の動作フローを図13に示す。なお、本実施例で説明するプリンタードライバーは前記のように、他のプリンタードライバーセットと共通して使用されるファイルがあることをOS(212)に対して宣言する設定となっていることが前提となる。
[Examples Representing the Present Invention]
FIG. 13 shows an operation flow when uninstalling one of a plurality of printer drivers installed in the OS (212) as described above. Note that, as described above, the printer driver described in this embodiment is assumed to be set to declare to the OS (212) that there is a file that is used in common with other printer driver sets. It becomes.

ここでは便宜的に「パッケージ管理ドライバー」と呼ぶことにする。該プリンタードライバーアンインストーラーが起動されると、ステップ1301(図では“S1301”と表す。以下同様)で、該プリンタードライバーアンインストーラーのアンインストール対象のプリンタードライバーが前記パッケージ管理ドライバーであるかどうかを確認する。次に、ステップ1302ではアンインストールの対象のプリンタードライバーの共通モジュールが、他のプリンタードライバーに依存されているかどうかを確認する。ステップ1301、およびステップ1302で該当しない場合は、アンインストール対象のプリンタードライバーファイルをアンインストールする。   Here, for convenience, it will be called a “package management driver”. When the printer driver uninstaller is started, it is checked in step 1301 (indicated by “S1301” in the figure, the same applies hereinafter) whether the printer driver to be uninstalled by the printer driver uninstaller is the package management driver. To do. Next, in step 1302, it is confirmed whether the common module of the printer driver to be uninstalled depends on other printer drivers. If not applicable in step 1301 and step 1302, the printer driver file to be uninstalled is uninstalled.

一方、ステップ1302でアンインストールの対象のプリンタードライバーの共通モジュールが、他のプリンタードライバーに依存されている場合は、その旨のメッセージ(1400)を表示し、対象ファイルを削除しないで、アンインストールを終了する。   On the other hand, if the common module of the printer driver to be uninstalled depends on another printer driver in step 1302, a message (1400) indicating that is displayed, and the uninstallation is performed without deleting the target file. finish.

次に本実施例の特徴を表すステップ1303の詳細動作フローを図15に示す。ステップ1501でアンインストール対象のプリンタードライバーに依存している他のプリンタードライバーの情報を取得しリストする。前記他のプリンタードライバーの情報は、前記ステップ505でシステムに登録された情報などを参照することで取得できる。   Next, FIG. 15 shows a detailed operation flow of step 1303 representing the feature of this embodiment. In step 1501, information on other printer drivers depending on the printer driver to be uninstalled is acquired and listed. The information on the other printer driver can be acquired by referring to the information registered in the system in step 505.

ステップ1502ではステップ1501で取得された情報のうち、PDL名称を基準にメッセージ(1400)に表示するプリンタードライバーをまとめる。まとめる対象の情報として、インストールされたプリンタ記述仕様ファイルの1004や1005などから取得する。そしてステップ1503ではメッセージにはステップ1502でまとめられたプリンタードライバーを表示する。図16はPDL名称ごとにプリンタードライバーをまとめた表示の例である。   In step 1502, printer drivers to be displayed in the message (1400) based on the PDL name among the information acquired in step 1501 are collected. The information to be collected is acquired from the installed printer description specification file 1004 or 1005. In step 1503, the printer driver collected in step 1502 is displayed in the message. FIG. 16 is an example of a display in which printer drivers are grouped for each PDL name.

なお、Windows(登録商標)において、まとめるPDL情報としては、図17に示すようなプリンタードライバーdll(ダイナミックリンクライブラリ)の製品名称(1701)などでも良い。   In Windows (registered trademark), the PDL information to be collected may be a product name (1701) of a printer driver dll (dynamic link library) as shown in FIG.

また、メッセージに表示するプリンタードライバーを名称だけでなく、バージョンごとに分けても良い。図18がその表示例である。   Further, the printer driver displayed in the message may be divided not only by name but also by version. FIG. 18 shows a display example.

101 ホストコンピューター
201 CPU
202 RAM
101 Host computer 201 CPU
202 RAM

Claims (2)

あるプリンタードライバーAをひとつのドライバーパッケージとして扱い、OSにインストールするシステムにおいて、他のプリンタードライバーBのドライバーパッケージとドライバー構成ファイルの一部を共有している状態でプリンタードライバーAをアンインストールする場合、前記プリンタードライバーBと共有するドライバー構成ファイルの一部が存在するため、プリンタードライバーAを削除することができない旨のメッセージを表示する、プリンタードライバーアンインストーラーにおいて、
前記他のプリンタードライバーBとドライバー構成ファイルの一部を共有するドライバー名称を前記メッセージに列挙する際、共有に該当するプリンタードライバーの一部の情報を収集する収集手段と、前記収集手段で収集された情報から前記プリンタードライバーがサポートするページ記述言語ごとにプリンタードライバーをまとめる手段と有することで、前記PDLごとに表示するプリンタードライバーをまとめてメッセージに表示することを特徴とするプリンタードライバーアンインストーラー。
When a printer driver A is treated as a single driver package and installed in the OS, when uninstalling the printer driver A while sharing a part of the driver configuration file with the driver package of another printer driver B, In the printer driver uninstaller that displays a message that the printer driver A cannot be deleted because a part of the driver configuration file shared with the printer driver B exists.
When listing in the message the names of drivers that share a part of the driver configuration file with the other printer driver B, a collection unit that collects information on a part of the printer driver corresponding to the sharing, and is collected by the collection unit A printer driver uninstaller, characterized in that it includes means for collecting printer drivers for each page description language supported by the printer driver based on the received information, and displays the printer drivers displayed for each PDL together in a message.
請求項1に記載のプリンタードライバーアンインストーラーにおいて、
前記共有に該当するプリンタードライバーのバージョンの情報を収集する第2の収集手段を有することで、
前記PDLごと、およびバージョンごとに表示するプリンタードライバーをまとめてメッセージに表示することを特徴とするプリンタードライバーアンインストーラー。
In the printer driver uninstaller according to claim 1,
Having a second collecting means for collecting information of the version of the printer driver corresponding to the sharing;
A printer driver uninstaller, wherein printer drivers to be displayed for each PDL and each version are collectively displayed in a message.
JP2017001784A 2017-01-10 2017-01-10 Printer Driver Uninstaller Pending JP2018112817A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017001784A JP2018112817A (en) 2017-01-10 2017-01-10 Printer Driver Uninstaller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017001784A JP2018112817A (en) 2017-01-10 2017-01-10 Printer Driver Uninstaller

Publications (1)

Publication Number Publication Date
JP2018112817A true JP2018112817A (en) 2018-07-19

Family

ID=62911366

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017001784A Pending JP2018112817A (en) 2017-01-10 2017-01-10 Printer Driver Uninstaller

Country Status (1)

Country Link
JP (1) JP2018112817A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109445723A (en) * 2018-10-11 2019-03-08 珠海奔图电子有限公司 Drive installation method and image forming apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109445723A (en) * 2018-10-11 2019-03-08 珠海奔图电子有限公司 Drive installation method and image forming apparatus
CN109445723B (en) * 2018-10-11 2022-07-22 珠海奔图电子有限公司 Drive mounting method and image forming apparatus

Similar Documents

Publication Publication Date Title
US9218150B2 (en) Image forming apparatus and method thereof
US10089102B2 (en) Information processing apparatus, method, and program
US8649030B2 (en) Controlling an information processing apparatus on which a plurality of printer drivers are installed
US8587811B2 (en) Information processing apparatus and method thereof
US8488174B2 (en) Print control apparatus, print control method, and storage medium for configuring output device based on acquired information
JP5783679B2 (en) Printing apparatus, printing system, control method, and program
US20110058219A1 (en) Printer driver, information processing apparatus, and computer program product
JP2006164240A (en) Data processing apparatus, print setting processing method, storage medium storing computer-readable control program, and control program
JP6225822B2 (en) Output system, terminal device, program, and output method
JP5317817B2 (en) Information processing apparatus, printer dry installation method, and program
US20160070557A1 (en) Information processing apparatus, information processing method, and information processing system
JP4981936B2 (en) Installation method of installer and printer driver
US10356267B2 (en) Information processing apparatus, control method, and storage medium
US20150058835A1 (en) Information processing apparatus, control method thereof, and storage medium
JP2011123607A (en) Information processing apparatus, information processing method and program
JP2011187009A (en) Information processor, method of uninstalling printer driver, program, and recording medium
JP2006268586A (en) Processing mode designation information conversion program and method
US20110188065A1 (en) Information processing apparatus, control method, and computer-readable medium
US20230086590A1 (en) Information processing apparatus, method for controlling information processing apparatus, and storage medium
JP2018112817A (en) Printer Driver Uninstaller
JP4425808B2 (en) Print information processing apparatus, print information processing program, and recording medium
US10310780B2 (en) System and control method for installing printer driver
JP2019008673A (en) Information processing apparatus and driver installing method
US11789683B2 (en) Storage medium, computer, and method related to application for providing print setting screen
US8643885B2 (en) Printing control apparatus and non-transitory computer readable medium with setting authentication information in a devmode structure

Legal Events

Date Code Title Description
RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20191125