Automatic installation of printers in a distributed environment
An operating system provides a point-and-print capability to users of the workstation. The point-and-print capability allows a user to print on any printer available within a distributed system by simply selecting a printer and requesting to print on the printer. The retrieval of configuration information and installation of the printer is performed transparently relative to the user of the workstation. The required printer configuration information is retrieved from a database that is maintained at a network server for the network that includes the target printer. A heuristic technique is employed to obtain complete printer configuration information when such printer configuration is not fully available from the network server.
Latest Microsoft Patents:
- Host Virtual Machine Domain Name System (DNS) Cache Enabling DNS Resolution During Network Connectivity Issues
- HOSTED FILE SYNC WITH STATELESS SYNC NODES
- COLLABORATIVE VIDEO MESSAGING COMPONENT
- METHOD AND SYSTEM FOR IMPLEMENTING SAFE DEPLOYMENT OF FEATURES
- COMPUTER-BASED POSTURE ASSESSMENT AND CORRECTION
This application is a continuation of U.S. patent application Ser. No. 08/318,070, filed Oct. 5, 1994, now abandoned.
TECHNICAL FIELDThe present invention relates generally to data processing systems and, more particularly, to the automatic installation of printers in a distributed environment.
BACKGROUND OF THE INVENTIONThe Microsoft WINDOWS NT operating system, sold by Microsoft Corporation of Redmond, Wash., provides a point and print capability. In other words, a user of the workstation that runs the operating system merely needs to identify a target printer on the network (such as by pointing a mouse cursor at an icon for the printer) and then request to print a document in order to print on the target printer. Critical printer configuration information (such as the printer driver and other printer configuration data) is stored on the print servers for network printers. Each print server is a dedicated machine that runs the same operating system and is responsible for controlling a grouped of one or more printers. The print server stores the critical printer configuration information for the printers that are associated with it. When an application requests to initiate a print job, the print server retrieves a copy of printer driver for the printer to the requesting workstation and carries out the print request via a remote procedure call (“RPC”) mechanism. The retrieval of the printer configuration information and the installation of the printer are transparent to the user.
SUMMARY OF THE INVENTIONIn accordance with a first aspect of the present invention, a method is practiced in a distributed system that has a workstation and a remote network. The remote network includes a printer and a network server. In this method, a database of printer configuration information is provided in shared memory at the network server. The printer configuration information stored at the network server includes printer configuration information for the printer in the network. The printer configuration information for the printer in the remote network is retrieved from the shared memory of the network server in response to request from the workstation. This retrieved information is used to install the printer for use by the workstation. The preferred embodiment may be practiced in an environment with multiple workstations and multiple servers. The servers and workstations may be running different platforms.
In accordance with another aspect of the present invention, a method is practiced in a distributed system having a workstation and a network with printers and a network server. In this method, configuration information for the printers is provided at the network server. In response to a request from the workstation to print on a selected one of the printers, printer configuration information for the selected printer is copied from the network server to the workstation. The printer configuration information is installed at the workstation and the selected printer is then used to service the print request.
In accordance with a further aspect of the present invention, a database of printer configuration information and printer drivers is provided at a network server. A database of printer configuration information and printer drivers for installable printers is provided at a server. Available printer configuration information is retrieved from the network server for one of the printers in the network. This available printer configuration information is provided to the workstation. It is determined that the provided printer configuration information is incomplete and in response, the locally maintained database is accessed to retrieve the complete configuration information and a printer driver for the selected printer.
In accordance with yet another aspect of the present invention, a distributed system includes a network that has at least one printer for executing print jobs and a network server for regulating access to the network. The network server includes a database of printer configuration information for the printer. The distributed system also includes a workstation that is interfaced with the network. The workstation may issue a request to execute a print job on the printer in the network. The workstation runs an operating system that includes a retrieval mechanism and an installer. The retrieval mechanism retrieves the printer configuration information for the network server in response to a request or execute a print job. The installer installs the printer configruaoin information that is retrieved by the retrieval mechanism so that the workstation may use the printer.
The preferred embodiment of the present invention provides a point and print capability within an operating system. This point and print capability allows a user to initiate a print job on a printer within a distributed system by merely identifying the printer and making the request to print. Any installation and configuration that is required for the document to be printed on the printer is performed automatically and transparently by the operating system.
The workstation 12 includes a memory 26 that holds a copy of an operating system 28. This operating system 28 includes client code for acting as a client of the network server 20. The operating system 28 also includes a number of graphical device interface (GDI) functions that help to configure and install printers. In the preferred embodiment of the present invention, the operating system 28 is an embellished version of the Microsoft WINDOWS operating system.
The operating system 28 provides a user interface that allows the user to select a printer that the user wishes to employ to print a document. The list of printers available to a user may include printers that are part of a network served by the network servers 18 or 20. For example, as shown in
The Netware server 20 holds an object-oriented database known as the “bindery” that contains definitions for users, groups, security and other objects of the associated network. The bindery 24 is like the bindery found in the Netware network operating system, version 3.11. The bindery 24 is used in the preferred embodiment of the present invention to hold the printer configuration and driver information for the printers of the network server 20.
As mentioned above, the operating system provides an implementation of the WIN32 API as specified by Microsoft Corporation. The WIN32 API provides a number of functions for manipulating printers to configure and install printers. Some of these functions will be described in more detail below.
A call is then made of the GetPrinter( ) function, which retrieves data stored in the bindery for the target printer. The handle to the printer that was returned by the OpenPrinter( ) function is passed as a parameter to the GetPrinter( ) function to identify the target printer. The GetPrinter function returns a PRINTER_INFO_2 structure that holds data about the target printer. In the preferred embodiment of the present invention, the PRINTER_INFO_2 data structure is of the following form:
At this point in the process, the operating system knows the handle to the printer and has received data about the printer. The GetPrinterDriver( ) function is called to obtain printer driver data for the given printer from the bindery of the print server (step 42). A DRIVER_INFO_3A or a DRIVER_INFO_2 structure is returned in response to this function call. The operating system first tries to get a DRIVER_INFO_3A structure, but if cannot get a complete DRIVER_INFO_3A structure, it tries to get a DRIVER_INFO_2 structure. An error message is returned in response to the GetPrinterDriver( ) function call, if a complete DRIVER_INFO_3A structure is not available. The DRIVER_INFO_3A structure has the following format:
The DRIVER_INFO—2 structure has the following format:
A list of dependent files is then built and these files are copied to the workstation 10, wherein the printer is configured (step 44). The list of dependent files is obtained from the DRIVER_INFO_3A structure, if one is available and if the structure includes a list of dependent files. If, however, the DRIVER_INFO_3A structure is not available or if the available structure does not include a list of dependent files, the heuristic approach must adopted as described below. The list of dependent files is printer model dependent. When a printer is installed on a print server, a list of files that is needed for the printer model is determined by the printer installation program. This information may be stored within the DRIVER INFO 3A structure.
The requisite configuration information is then added to the local database of configuration information (i.e., the registry) to install the printer (step 46). In particular, the AddPrinterDriver( ), AddPrintProcessor( ), AddMonitor( ), and AddPrinter( ) functions are called to add the print driver, print processor, monitor and printer configuration information to the registry. The print processor is a dynamic link library (DLL) that interprets data types to convert data from one data type to another data type, and the print monitor monitors a port associated with the printer. Print processor and monitors are known in the art.
Once the printer is successfully installed by completing the steps described above, the application program that prints a document may then begin printing. The installation that adds the printer driver, print processor monitor and printer information to the local memory space is performed by the network client portion of the operating system 28.
In some instances, the operating system 28 will be unsuccessful in retrieving complete information for the target printer. In such instances, the preferred embodiment of the present invention employs a heuristic to attempt to discern the appropriate information about the printer.
The above description has focused on the instance wherein a printer is automatically installed by requesting to print on the printer. It should also be appreciated that the printer may be alternatively installed by explicit user request. The installation is performed as described above, but is performed using a printer installation wizard.
Suppose a user selects the printer associated with icon 78 in FIG. 6C. In such a case, edit box 68 (
While the present invention has been described with reference to a preferred embodiment thereof, those skilled in the art will appreciate the various changes in form and detail may be departing from the intended scope of the present invention as defined in the independent claims.
Claims
1. In a distributed system comprising a first workstation and a remote network having a printer and a network server, a method comprising the computer-implemented steps of:
- providing a database of printer configuration information, including printer configuration information for the printer in the remote network, in shared memory at the network server;
- retrieving the printer configuration information for the printer from the shared memory of the network server in response to a request from the first workstation, said printer configuration information including information that identifies the printer;
- using the information that identifies the printer to identify a printer driver to be installed at the first workstation and to determine where the printer driver is stored in the distributed system; and
- retrieving the printer driver from where it is stored, installing the identified printer driver at the first workstation and storing at least some of the retrieved printer configuration information in the local storage of the first workstation.
2. The method of claim 1 wherein the first workstation runs an operating system and the operating system performs the step of retrieving the printer configuration information.
3. The method of claim 2 claim 4 wherein the operating system performs the step of installing the identified printer driver.
4. The method of claim 2, In a distributed system comprising a first workstation and a remote network having a printer and a network server, a method comprising the computer-implemented steps of:
- providing a database of printer configuration information, including printer configuration information for the printer in the remote network, in shared memory at the network server;
- retrieving the printer configuration information for the printer from the shared memory of the network server in response to a request from the first workstation, said printer configuration information including information that identifies the printer;
- using the information that identifies the printer to identify a printer driver to be installed at the first workstation and to determine where the printer driver is stored in the distributed system; and
- retrieving the printer driver from where it is stored, installing the identified printer driver at the first workstation and storing at least some of the retrieved printer configuration information in the local storage of the first workstation,
- wherein the first workstation runs an operating system and the operating system performs the step of retrieving the printer configuration information, and
- wherein the network server runs a network operating system that differs from the operating system run by the first workstation.
5. The method of claim 1 claim 4, further comprising the step of running client code on the first workstation for interacting with the network server.
6. The method of claim 1 claim 4, further comprising the step of issuing a print request to print on the printer of the remote network from the first workstation and wherein the steps of retrieving the printer configuration information, retrieving the identified printer driver, installing the identified printer driver and storing at least some of the retrieved printer configuration information in the local storage are performed in response to the request.
7. The method of claim 1 claim 4, further comprising the steps of:
- running a program on the first workstation; and
- issuing a request to print on the printer of the remote network from the program, wherein the steps of retrieving the printer configuration information, retrieving the identified printer driver, installing the identified printer driver and storing at least some of the retrieved printer configuration information in the local storage are performed transparently relative to the first workstation.
8. The method of claim 1 claim 4 wherein the distributed system includes a second workstation and wherein the method further comprises the steps of:
- retrieving the printer configuration information for the printer from the shared memory of the network server in response to a request from the second workstation, said printer configuration information including information that identifies the printer;
- using the information that identifies the printer to identify a printer driver to be installed at the second workstation and to determine where the printer driver is stored in the distributed system; and
- retrieving the printer driver from where it is stored, installing the identified printer driver at the second workstation and storing at least some of the retrieved printer configuration information in the local storage of the second workstation.
9. The method of claim 8 wherein the second workstation runs a different operating system than the first workstation runs.
10. The method of claim 8 wherein the second workstation runs a different version of the operating system than the first workstation runs.
11. The method of claim I claim 4 wherein the distributed system includes a second network server for a second remote network having a second printer and wherein the method further comprises the steps of:
- providing a database of printer configuration information, including printer configuration information for the second printer in the second remote network, in shared memory at the second network server;
- retrieving the printer configuration information for the second printer from the shared memory of the second network server in response to a request from the first workstation, said printer configuration information including information that identifies the second printer;
- using the information that identifies the second printer to identify a printer driver to be installed at the first workstation and to determine where the second printer driver is stored in the distributed system; and
- retrieving the second printer driver from where it is stored, installing the identified printer driver at the first workstation and storing at least some of the retrieved printer configuration information in the local storage of the first workstation.
12. In a distributed system comprising a workstation having local storage and a remote network having at least one printer and a network server, a method comprising the computer-implemented steps of:
- providing a database of printer configuration information and printer drivers at the network server for the printers in the network;
- providing a database of printer configuration information and printer drivers for installable printers of the workstation in the local storage of the workstation;
- retrieving available printer configuration information for a selected one of the printers in the network from the network server and providing the available printer configuration information to the workstation; and
- determining that the provided printer configuration information is incomplete and in response, accessing the database in the local storage to retrieve complete printer configuration information and a printer driver for the selected printer.
13. The method of claims claim 12, further comprising the step of installing the selected printer using the retrieved complete printer configuration information and printer driver for the selected printer.
14. The method of claim 12 wherein the step of retrieving available printer configuration information comprises the step of retrieving information that identifies what type of printer the selected printer is.
15. The method of claim 14 wherein the step of accessing the database in the local storage comprises the step of using the information that identifies the type of printer the selected printer is as an index to retrieve complete printer configuration information and a printer driver for the selected printer from the locally maintained database.
16. A distributed system comprising:
- a network having at least one printer for executing jobs;
- a network server for regulating access to the network and having a database of printer configuration information for the printer; and
- a workstation interfaced with the network and having local storage for issuing a request to execute a print job on the printer in the network, said workstation running an operating system, comprising: a retrieval mechanism for retrieving the printer configuration information from the network server in response to the request to execute the print job on the printer, said printer configuration information including information that identifies the printer; and an installer for using the information that identifies the printer to identify and retrieve a printer driver for the printer, wherein the printer driver includes at least one dependent file, for installing the printer driver at the workstation and for storing at least some of the retrieved printer configuration information in the local storage.
17. The distributed system of claim 16 wherein the network includes multiple printers.
18. The distributed system of claim 16, wherein the network server runs a network operating system that differs from the operating system that is run on the workstation.
19. The distributed system of claim 16 wherein the operating system further comprises client code for enabling the workstation to act as a client of the network server.
20. The distributed system of claim 16, further comprising a second network having at least one printer and a second network server for regulating access to the printer of the second network wherein said second network server includes an additional database of printer configuration information for the printer of the second network.
21. The distributed system of claim 20 wherein the retrieval mechanism of the workstation includes a means for retrieving the printer configuration information for the printer in the second network from the second network server in response to a request to execute a print job on the printer of the second network and the installer of the workstation includes a means for using the information that identifies the printer to identify and retrieve a printer driver for the printer for installing the printer driver at the workstation and for storing at least some of the retrieved printer configuration information in the local storage.
22. The distributed system of claim 16, further comprising a second workstation running the operating system.
23. The method of claim 1 wherein the first workstation includes a registry of configuration information and wherein the step of storing at least some of the retrieved configuration information in the local storage comprises storing at least some of the retrieved configuration information in the registry.
24. A tangible computer-readable storage medium for use in a distributed system that has a first workstation with a local storage and a remote network having a printer and a network server that stores a database of printer configuration information, including printer configuration information for the printer in the remote network, said medium holding instructions for:
- retrieving the printer configuration information for the printer from the shared memory of the network server in response to a request from the first workstation, said printer configuration information including information that identifies the printer;
- using the information that identifies the printer to identify a printer driver to be installed at the first workstation, wherein the printer driver includes at least one dependent file, and to determine where the printer driver is stored in the distributed system; and
- retrieving the printer driver and the at least one dependent file from where it is stored, installing the identified printer driver at the first workstation and storing at least some of the retrieved printer configuration information in the local storage of the first workstation.
25. The computer-readable storage medium of claim 24 wherein the medium holds a copy of an operating system and the operating system performs the retrieving of the printer configuration information.
26. The computer-readable storage medium of claim 25 wherein the operating system also performs the installing of the identified printer driver at the first workstation.
27. In a distributed system comprising a first workstation and a remote network having a printer and a network server, a method comprising the computer-implemented steps of:
- providing a database of printer configuration information, including printer configuration information for the printer in the remote network, in shared memory at the network server;
- retrieving the printer configuration information for the printer from the shared memory of the network server in response to a request from the first workstation, said printer configuration information including information that identifies the printer;
- using the information that identifies the printer to identify a printer driver to be installed at the first workstation and to determined where the printer driver is stored in the distributed system; and
- retrieving the printer driver from where it is stored, installing the identified printer driver at the first workstation and storing at least some of the retrieved printer configuration information in the local storage of the first workstation,
- wherein the printer driver includes at least one dependent file.
28. The method of claim 27 wherein the first workstation runs an operating system and the operating system performs the step of retrieving the printer configuration information.
29. The method of claim 28 wherein the operating system performs the step of installing the identified printer driver.
30. The method of claim 28, wherein the network server runs a network operating system that differs from the operating system run by the first workstation.
31. In a distributed system comprising a first workstation and a remote network having a printer and a network server, a method comprising the computer-implemented steps of:
- providing a database of printer configuration information, including printer configuration information for the printer in the remote network, in shared memory at the network server;
- retrieving the printer configuration information for the printer from the shared memory of the network server in response to a request from the first workstation, said printer configuration information including information that identifies the printer;
- using the information that identifies the printer to identify a printer driver to be installed at the first workstation, wherein the printer driver includes at least one dependent file, and to determine where the printer driver and the at least one dependent file are each stored in the distributed system; and
- retrieving and transmitting the printer driver and the at least one dependent file from their respective stored locations to the workstation for installation, wherein at least some of the retrieved printer configuration information is stored in the local storage of the first workstation.
32. The method of claim 31, wherein the first workstation runs an operating system and the operating system retrieves the printer configuration information.
33. The method of claim 32, wherein the network server runs a network operating system that differs from the operating system run by the first workstation.
34. The method of claim 32, wherein the workstation operating system installs the identified printer driver.
35. The method of claim 31, further comprising the step of receiving a print request to print on the printer of the remote network from the first workstation and wherein the steps of retrieving the printer configuration information and transmitting the printer driver and the at least one dependent file to the workstation for installation are performed in response to the request.
36. In a distributed system comprising a first workstation and a remote network having a printer and a network server, a method comprising the computer-implemented steps of:
- providing a database of printer configuration information, including printer configuration information for the printer in the remote network, in shared memory at the network server;
- retrieving the printer configuration information for the printer from the shared memory of the network server in response to a request from the first workstation, said printer configuration information including information that identifies the printer;
- using the information that identifies the printer to identify a printer driver to be installed at the first workstation, wherein the printer driver includes at least one dependent file, and to determine where the printer driver and the at least one dependent file are each stored in the distributed system; and
- retrieving the printer driver and the at least one dependent file from where each is stored, and sending the printer driver and the at least one dependent file to the first workstation for installation, wherein at least some of the retrieved printer configuration information is stored in the local storage of the first workstation.
37. The method of claim 36 wherein the first workstation runs an operating system and the operating system performs the step of retrieving the printer configuration information.
38. The method of claim 37 wherein the operating system performs the step of installing the identified printer driver and the at least one dependent file.
39. The method of claim 37, wherein the network server runs a network operating system that differs from the operating system run by the first workstation.
4698688 | October 6, 1987 | Ochi et al. |
4829468 | May 9, 1989 | Nonaka et al. |
5150454 | September 22, 1992 | Wood et al. |
5228118 | July 13, 1993 | Sasaki |
5268993 | December 7, 1993 | Ikenoue et al. |
5287194 | February 15, 1994 | Lobiondo |
5287434 | February 15, 1994 | Bain et al. |
5299296 | March 29, 1994 | Padalino et al. |
5303336 | April 12, 1994 | Kageyama et al. |
5327526 | July 5, 1994 | Nomura et al. |
5349648 | September 20, 1994 | Handley |
5353388 | October 4, 1994 | Motoyama |
5371837 | December 6, 1994 | Kimber et al. |
5450571 | September 12, 1995 | Rosekrans et al. |
5580177 | December 3, 1996 | Gase et al. |
6230211 | May 8, 2001 | Mahajan |
- Microsoft Windows NT Version 3.1, “System Guide”, Chapter 6, Print Manager, pp. 179-208.
- McClelland, Deke, “Macintosh System 7.1: Everything You Need to Know,” second edition, 1992, pp. 106-110, 379, 384-387 Alameda, Ca.
- Microsoft® Windows NT™ System Guide, Microsoft Corporation, Mar. 1993, Chapter 6, “Print Manager,” pp. 173-201.
- McClelland, Deke, Macintosh® System 7.1: Everything You Need To Know, 2d. ed. Sybex®, San Francisco, California 1993, pp. 106-110, 379, 384-387.
Type: Grant
Filed: Apr 30, 2003
Date of Patent: Aug 28, 2007
Assignee: Microsoft Corporation (Redmond, WA)
Inventors: Jonathan E. Marbry (Bellevue, WA), Samuel J. McKelvie (Seattle, WA), David H. Tryon (Redmond, WA), Lin Fon-Shaw (Clyde Hill, WA), Chia-Chi Teng (Redmond, WA)
Primary Examiner: Steven Paul Sax
Attorney: Banner & Witcoff Ltd.
Application Number: 10/425,679
International Classification: G06F 15/16 (20060101); G06F 3/00 (20060101);