CN107728962B - Software deployment method and device based on shared printer - Google Patents

Software deployment method and device based on shared printer Download PDF

Info

Publication number
CN107728962B
CN107728962B CN201710825928.7A CN201710825928A CN107728962B CN 107728962 B CN107728962 B CN 107728962B CN 201710825928 A CN201710825928 A CN 201710825928A CN 107728962 B CN107728962 B CN 107728962B
Authority
CN
China
Prior art keywords
software
deployed
printer
data
installing
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.)
Active
Application number
CN201710825928.7A
Other languages
Chinese (zh)
Other versions
CN107728962A (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.)
Bis Software Information Technology Co ltd
Original Assignee
Bis Software Information Technology Co 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 Bis Software Information Technology Co ltd filed Critical Bis Software Information Technology Co ltd
Priority to CN201710825928.7A priority Critical patent/CN107728962B/en
Publication of CN107728962A publication Critical patent/CN107728962A/en
Application granted granted Critical
Publication of CN107728962B publication Critical patent/CN107728962B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1224Client or server resources management
    • G06F3/1228Printing driverless or using generic drivers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers

Abstract

The embodiment of the invention provides a software deployment method and equipment based on a shared printer, which are used for solving the technical problems of high implementation cost and high implementation difficulty of a software deployment mode in the prior art. The software deployment method based on the shared printer comprises the following steps: the first device locally installs a printer driver to generate a first shared printer instance; when the first device determines that the at least one second device accesses the first shared printer instance, triggering the at least one second device to perform the following operations: obtaining and installing a printer driver from a first device, calling a printer software interface included in the printer driver in the process of installing the printer driver, and executing software data to be deployed so as to install software to be deployed; wherein the software data to be deployed is located within the printer driver and is associated with the printer software interface.

Description

Software deployment method and device based on shared printer
Technical Field
The invention relates to the technical field of computers, in particular to a software deployment method and equipment based on a shared printer.
Background
With the wide application of computers and other devices, it is necessary to install and deploy software on multiple computer devices in many application scenarios, such as an application scenario in which the same software is installed on all computers in a company. Currently, there are three general ways to install and deploy software on multiple computer devices:
in the first mode, by manual operation, software to be installed is copied to each computer device, and the software is installed on each device one by one;
in the second mode, based on the domain control function of the Windows operating system, software is uniformly installed for all computer equipment in the same domain by virtue of Windows Insteller software;
in the third mode, third-party auxiliary software is installed in advance on each computer needing to be installed, and the software is uniformly installed for the computer equipment installed with the third-party auxiliary software by means of a management interface provided by the third-party auxiliary software.
However, the above software deployment method in the prior art has the following technical problems:
in the first mode, software is independently installed for each computer device by manpower, time and labor are consumed, and the implementation cost is high; in the second mode, all computers are required to be used for domain control function of the Windows operating system, and all computer devices are required to be in the same domain, which is seriously dependent on the implementation environment and has high implementation difficulty; in the third method, third-party auxiliary software needs to be installed on each computer device in advance, and the implementation is also heavily dependent on the implementation environment and is difficult.
Therefore, the existing software deployment mode has the technical problems of high implementation cost and great difficulty.
Disclosure of Invention
The embodiment of the invention provides a software deployment method and equipment based on a shared printer, which are used for solving the technical problems of high implementation cost and high implementation difficulty of a software deployment mode in the prior art.
In a first aspect, a shared printer-based software deployment method is provided, the method including:
the first device locally installs a printer driver to generate a first shared printer instance;
when the first device determines that at least one second device accesses the first shared printer instance, triggering the at least one second device to:
obtaining and installing the printer driver from the first device, calling a printer software interface included in the printer driver in the process of installing the printer driver, and executing software data to be deployed so as to install software to be deployed; wherein the software data to be deployed is located within the printer driver and is associated with the printer software interface.
In one possible implementation manner, calling a printer software interface included in the printer driver, and executing software data to be deployed to install software to be deployed includes:
and calling the printer software interface, obtaining the installation package of the software to be deployed based on the data of the software to be deployed, running the installation package of the software to be deployed, and installing the software to be deployed.
In one possible implementation manner, calling a printer software interface included in the printer driver, and executing software data to be deployed to install software to be deployed includes:
calling the printer software interface, obtaining the installation package of the software to be deployed and installation indication information used for indicating an installation mode based on the software data to be deployed, running the installation package of the software to be deployed, and installing the software to be deployed in the installation mode indicated by the installation indication information.
In one possible implementation manner, calling a printer software interface included in the printer driver, and executing software data to be deployed to install software to be deployed includes:
calling the printer software interface, obtaining a seed program for installing the software to be deployed based on the software data to be deployed, running the seed program, obtaining and running an installation package of the software to be deployed in the process of running the seed program, and installing the software to be deployed.
In one possible implementation, after executing the to-be-deployed software data to install the to-be-deployed software, the method further includes:
running the installed software to be deployed, obtaining setting information of the first equipment based on a second shared printer instance, and configuring the installed software to be deployed according to the setting information;
wherein the second shared printer instance is a shared printer instance generated by the at least one second device locally installing the printer driver.
In a second aspect, a shared printer-based software deployment method is provided, the method comprising:
the second device accessing the first shared printer instance on the first device to obtain and install a printer driver; the printer driver comprises software data to be deployed, and the software data to be deployed is associated with a printer software interface included in the printer driver;
and the second equipment calls the printer software interface in the process of locally installing the printer driver, and executes the software data to be deployed so as to install the software to be deployed.
In one possible implementation manner, invoking the printer software interface, and executing the software data to be deployed to install the software to be deployed includes:
and calling the printer software interface, obtaining the installation package of the software to be deployed based on the data of the software to be deployed, running the installation package of the software to be deployed, and installing the software to be deployed.
In one possible implementation manner, invoking the printer software interface, and executing the software data to be deployed to install the software to be deployed includes:
calling the printer software interface, obtaining the installation package of the software to be deployed and installation indication information used for indicating an installation mode based on the software data to be deployed, running the installation package of the software to be deployed, and installing the software to be deployed in the installation mode indicated by the installation indication information.
In one possible implementation manner, invoking the printer software interface, and executing the software data to be deployed to install the software to be deployed includes:
calling the printer software interface, obtaining a seed program for installing the software to be deployed based on the software data to be deployed, running the seed program, obtaining and running an installation package of the software to be deployed in the process of running the seed program, and installing the software to be deployed.
In one possible implementation, after executing the to-be-deployed software data to install the to-be-deployed software, the method further includes:
running the installed software to be deployed, obtaining setting information of the first equipment based on a second shared printer instance, and configuring the installed software to be deployed according to the setting information;
wherein the second shared printer instance is a shared printer instance generated by the second device locally installing the printer driver.
In a third aspect, a shared printer based software deployment device is provided, the device comprising:
an installation unit for locally installing a printer driver to generate a first shared printer instance;
a triggering unit, configured to trigger at least one second device to perform the following operations when it is determined that the at least one second device accesses the first shared printer instance:
obtaining and installing the printer driver from the device, calling a printer software interface included in the printer driver in the process of installing the printer driver, and executing software data to be deployed so as to install software to be deployed; wherein the software data to be deployed is located within the printer driver and is associated with the printer software interface.
In a possible implementation manner, the triggering unit is configured to, when determining that at least one second device accesses the first shared printer instance, trigger the at least one second device to perform the following operations:
the printer driver is obtained and installed from the equipment, the printer software interface is called in the process of installing the printer driver, the installation package of the software to be deployed is obtained based on the data of the software to be deployed, the installation package of the software to be deployed is operated, and the software to be deployed is installed.
In a possible implementation manner, the triggering unit is configured to, when determining that at least one second device accesses the first shared printer instance, trigger the at least one second device to perform the following operations:
the printer driver is obtained and installed from the equipment, the printer software interface is called in the process of installing the printer driver, the installation package of the software to be deployed and installation indication information used for indicating an installation mode are obtained based on the data of the software to be deployed, the installation package of the software to be deployed is operated, and the software to be deployed is installed in the installation mode indicated by the installation indication information.
In a possible implementation manner, the triggering unit is configured to, when determining that at least one second device accesses the first shared printer instance, trigger the at least one second device to perform the following operations:
the method comprises the steps of obtaining and installing the printer driver from the equipment, calling the printer software interface in the process of installing the printer driver, obtaining a seed program used for installing the software to be deployed based on the data of the software to be deployed, running the seed program, obtaining and running an installation package of the software to be deployed in the process of running the seed program, and installing the software to be deployed.
In a possible implementation manner, the triggering unit is configured to, when determining that at least one second device accesses the first shared printer instance, trigger the at least one second device to perform the following operations:
the printer driver is obtained and installed from the equipment, in the process of installing the printer driver, software data to be deployed are executed to install software to be deployed, after the software data to be deployed are executed to install the software to be deployed, the installed software to be deployed is operated, setting information of the equipment is obtained based on a second shared printer instance, and the installed software to be deployed is configured according to the setting information;
wherein the second shared printer instance is a shared printer instance generated by the at least one second device locally installing the printer driver.
In a fourth aspect, a shared printer based software deployment device is provided, the device comprising:
an accessing unit configured to access a shared printer instance on a first device to obtain a printer driver; the printer driver comprises software data to be deployed, and the software data to be deployed is associated with a printer software interface included in the printer driver;
and the installation unit is used for installing the printer driver, calling the printer software interface and executing the software data to be deployed in the process of installing the printer driver so as to install the software to be deployed.
In one possible implementation, the mounting unit is configured to:
and calling the printer software interface, obtaining the installation package of the software to be deployed based on the data of the software to be deployed, running the installation package of the software to be deployed, and installing the software to be deployed.
In one possible implementation, the mounting unit is configured to:
calling the printer software interface, obtaining the installation package of the software to be deployed and installation indication information used for indicating an installation mode based on the software data to be deployed, running the installation package of the software to be deployed, and installing the software to be deployed in the installation mode indicated by the installation indication information.
In one possible implementation, the mounting unit is configured to:
calling the printer software interface, obtaining a seed program for installing the software to be deployed based on the software data to be deployed, running the seed program, obtaining and running an installation package of the software to be deployed in the process of running the seed program, and installing the software to be deployed.
In one possible implementation, the mounting unit is configured to:
after executing the software data to be deployed to install the software to be deployed, running the installed software to be deployed, obtaining setting information of the first device based on a second shared printer instance, and configuring the installed software to be deployed with the setting information;
wherein the second shared printer instance is a shared printer instance generated by the device locally installing the printer driver.
In a fifth aspect, a computer readable storage medium is provided, storing computer instructions which, when loaded and executed, perform the steps of the method according to the first and/or second aspect.
In the embodiment of the invention, a first device locally installs a printer driver to generate a first shared printer instance, when the first device determines that at least one second device accesses the first shared printer instance, the first device automatically triggers the at least one second device to obtain and install the printer driver from the first device, and in the process of installing the printer driver, a printer software interface included in the printer driver is called to execute software data to be deployed so as to realize installation and deployment of software to be deployed.
Furthermore, in the embodiment of the invention, the software to be deployed does not need to be copied to each device one by one manually, and the software installation package installation software does not need to be operated one by one manually, so that the time consumption and labor cost in large-scale software deployment are saved, and the implementation cost of software deployment is reduced.
Further, in the embodiment of the present invention, the shared printer is a general function of the operating system, is turned on by default, and does not need to make a special setting, and compared with a software deployment method that strictly depends on an operating system environment and third-party auxiliary software in the prior art, the software deployment method in the embodiment of the present invention is low in implementation difficulty.
Furthermore, in the embodiment of the invention, the shared printer function is a function which is often used in daily work, the operation is simple, and a user can easily apply the software deployment method provided by the implementation of the invention to the software deployment work without professional training.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flowchart illustrating a shared printer-based software deployment method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating another shared printer-based software deployment method according to an embodiment of the present invention;
FIG. 3 is a block diagram of a shared printer-based software deployment device according to an embodiment of the present invention;
fig. 4 is a block diagram of another shared printer-based software deployment device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In addition, the term "and/or" herein is only one kind of association relationship describing an associated object, and means that there may be three kinds of relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" in this document generally indicates that the preceding and following related objects are in an "or" relationship unless otherwise specified.
Example one
The embodiment of the invention provides a software deployment method based on a shared printer, which can be applied to first equipment, and the first equipment can deploy software for at least one second equipment by executing the software deployment method based on the shared printer. The first device and the at least one second device may be electronic devices, for example, electronic devices such as a server, a mobile phone, a tablet computer, a personal computer, a notebook computer, and a wearable electronic device, and specific kinds of the first device and the at least one second device are not limited in the embodiment of the present invention. The first device and the at least one second device may be the same or different, for example, the first device is a server, one second device is a computer, another second device is a tablet computer, another device is a wearable electronic device, and the like.
In this embodiment of the present invention, the first device and the at least one second device may communicate with each other, for example, the first device and the at least one second device may be connected to a same local area network, and the first device and the at least one second device may communicate with each other through the local area network.
In order to better understand the monitoring method of the communication device in the embodiment of the present invention, the above technical solutions will be described in detail with reference to the drawings and the specific embodiments of the present disclosure.
Referring to fig. 1, a flow of a shared printer-based software deployment method in an embodiment of the present invention is described as follows.
Step 101: the first device locally installs a printer driver to generate a first shared printer instance.
In the embodiment of the invention, after the first device installs a printer driver locally, the first shared printer instance can be generated. The printer driver installed on the first device can be a specially-developed printer driver for deploying software, the printer driver comprises software data to be deployed, and the software data to be deployed is associated with a printer software interface included in the printer driver, so that when the printer software interface is called, the software data to be deployed can be called.
In a particular implementation, the printer driver may be a completely separately developed printer driver; or the printer driver can be generated by replacing or modifying part of the modules on the basis of a third-party printer driver provided by each printer manufacturer; the shell adding module comprises the original module and the added new module, so that the shell adding module can execute the original function and also can execute the new function when being called.
For example, a shell module and software data to be deployed may be added on the basis of an original module by adding a shell, and when the shell module is called, the shell module may be called, and then the shell module may start the software data to be deployed and the original module synchronously or asynchronously.
In the embodiment of the present invention, the flow of installing the printer driver by the first device is the same as the flow of installing the general printer driver. The printer software interface included in the printer driver in the embodiment of the present invention is a software interface that is commonly available in a general printer driver, and the printer software interface is a software interface that is called when the printer driver is installed in the electronic device. That is to say, when the software deployment method in the embodiment of the present invention is applied, the software to be deployed may be deployed without performing special configuration on the second device to install the flow of the common printer driver.
In an embodiment of the present invention, after the first device completes the local installation of the printer driver, a first shared printer instance may be generated in the first device. The first shared printer instance is an accessible printer software object. For example, in an operating system, a printer icon may represent an instance of a printer.
In the embodiment of the present invention, the process of installing the printer driver to generate the first shared printer instance may be a shared printer instance directly generated after the printer driver is installed, or may be a process of setting the generated printer instance as the shared printer instance by changing the setting of the generated printer instance after the printer driver is installed.
In addition, in the embodiment of the present invention, the process of installing the printer driver to generate the first shared printer instance may be that a driver module is added with a shell and software data to be deployed is added to the printer driver already installed on the first device, if the printer driver does not install a printer instance, the printer instance is installed by using the driver, and if the printer driver has installed a printer instance but is not set as a shared printer, the printer instance is set as the shared printer. That is, the installation of the first shared printer instance is achieved by modifying the installed printer driver.
Step 102: when the first device determines that the at least one second device accesses the first shared printer instance, triggering the at least one second device to perform the following operations: obtaining and installing a printer driver from a first device, calling a printer software interface included in the printer driver in the process of installing the printer driver, and executing software data to be deployed so as to install software to be deployed; wherein the software data to be deployed is located within the printer driver and is associated with the printer software interface.
In the embodiment of the present invention, after the first shared printer instance is generated in step 101, at least one second device may access the first shared printer instance on the first device through a connection with the first device. For example, when the first device and the at least one second device are connected through the lan, the at least one second device may access the first shared printer instance on the first device through the lan, and the specific access manner is the same as the manner of accessing the common shared printer, such as access by Internet Protocol (IP) address, workgroup, and the like.
The at least one second device may be one or more, and any device that can be connected to the first device may install the deployment software through the first device. And, during the software deployment, each of the at least one second device will perform the same operation.
In an embodiment of the present invention, when at least one second device accesses the first shared printer instance, the at least one second device is triggered to obtain and install the printer driver from the first device. In the process of installing the printer driver by at least one second device, the at least one second device calls a printer software interface included in the printer driver, calls software data to be deployed in the printer driver, which is associated with the printer software interface, by calling the printer software interface, and executes the software data to be deployed, and in the process of executing the software data to be deployed, completes installation of the software to be deployed. The software data to be deployed is data related to installation of the software to be deployed.
In the embodiment of the present invention, the process of installing the printer driver by the at least one second device is the same as the flow of installing the normal printer driver, for example, after the at least one second device obtains the printer driver, the at least one second device runs the printer driver through the printing service in the operating system of the at least one second device. For example, when the operating system run by the second device is a Windows operating system, the printer driver obtained from the first device is run in the second device through a print pool (printspooller) service on the Windows operating system.
In a possible implementation manner, in the process of calling a printer software interface included in the printer driver in the at least one second device and executing the software data to be deployed to install the software to be deployed, the at least one second device may call the printer software interface, obtain an installation package of the software to be deployed based on the software data to be deployed, run the installation package of the software to be deployed, and install the software to be deployed.
In the embodiment of the invention, the software data to be deployed can include an installation package of the software to be deployed, when the second device calls the printer software interface, the software data to be deployed can be called, and the installation package of the software to be deployed is obtained based on the software data to be deployed.
In a specific implementation process, when the software to be deployed is an installation package of the software to be deployed, the second device may directly execute the software data to be deployed and install the software to be deployed; when the software data to be deployed includes other data in addition to the software to be deployed, the process of obtaining the installation package of the software to be deployed based on the software data to be deployed may be a process of analyzing the software data to be deployed to obtain the installation package of the software to be deployed.
Moreover, the installation package in the embodiment of the present invention may also be portable software (green software).
In a possible implementation manner, in the process of executing the software data to be deployed to install the software to be deployed by calling a printer software interface included in the printer driver in the at least one second device, the at least one second device may call the printer software interface, obtain an installation package of the software to be deployed based on the software data to be deployed, and install instruction information used for instructing an installation manner, run the installation package of the software to be deployed, and install the software to be deployed in the installation manner indicated by the installation instruction information.
In the embodiment of the invention, the software data to be deployed can include the installation package and the installation indication information of the software to be deployed, when the second device calls the printer software interface, the software data to be deployed can be called, and the installation package and the installation indication information of the software to be deployed are obtained from the software data to be deployed in a mode of respectively calling the installation package and the installation indication information of the software to be deployed or in a mode of analyzing the software data to be deployed.
In the embodiment of the invention, the software data to be deployed can comprise an installation package and installation indication information of the software to be deployed. And in the process of running the installation package of the software to be deployed, the second equipment installs the software to be deployed in the installation mode indicated by the installation indication information.
In a specific implementation process, the installation manner indicated by the installation indication information may include an indication to install the to-be-deployed software into a specified folder in the second device, an optional installation item indicating when the to-be-deployed software is selected for installation, and an indication to configure the to-be-deployed software, such as configuring a user name, an IP address, a port number, a user authority, and the like.
For example, a variety of installation options are usually provided during the process of installing software, such as selecting a path for installing software, selecting which modules to install, setting a user name, and the like, and a user needs to perform an input operation on the electronic device for each installation option to complete installation. In the embodiment of the invention, the installation indication information can indicate the electronic equipment to automatically fill or select the installation options required by the user in the installation process, so that the installation of the software is completed, and the user does not need to perform input operation aiming at the installation options.
In a specific implementation, the installation instruction information may be presented in the form of a configuration file, a program installation engine, an installation bootstrap program, and the like.
In a possible implementation manner, the at least one second device calls a printer software interface included in the printer driver, and in the process of executing software data to be deployed to install the software to be deployed, the at least one second device may call the printer software interface, obtain a seed program for installing the software to be deployed based on the software data to be deployed, run the seed program, obtain and run an installation package of the software to be deployed in the process of running the seed program, and install the software to be deployed.
In the embodiment of the present invention, the software data to be deployed may include a seed program for installing the software to be deployed, and when the second device calls the printer software interface, the software data to be deployed may be called, and the seed program may be obtained based on the software data to be deployed.
In a specific implementation process, when the software to be deployed is the seed program, the second device can directly run the data of the software to be deployed to install the software to be deployed; when the software data to be deployed includes other data besides the seed program, the process of obtaining the seed program based on the software data to be deployed may be parsing the software data to be deployed to obtain the seed program.
In the embodiment of the present invention, the seed program may be a program for guiding installation of software to be deployed, for example, when the data size of the software to be deployed is too large and/or the installation process of the software to be deployed is too complex, the software to be deployed may be installed through the seed program.
In a specific implementation process, by running the seed program, the second device may obtain the installation package of the software to be deployed in an obtaining manner preset in the seed program, for example, by downloading the installation package of the software to be deployed from other devices outside the second device through a preset link address; furthermore, the second device may install the installation package of the software to be deployed in an installation manner preset in the seed program.
In a possible implementation manner, after executing the software data to be deployed to install the software to be deployed, the second device may further run the installed software to be deployed, and obtain the setting information of the first device based on the second shared printer instance to configure the installed software to be deployed with the setting information. Wherein the second shared printer instance is a shared printer instance generated by at least one second device locally installing the printer driver.
In the embodiment of the present invention, after executing the data of the software to be deployed to install the software to be deployed, the second device may run the installed software to be deployed to perform configuration according to the installation guidance instruction in the printer driver; or, the installation guide instruction may be preset in the software to be deployed, and after the installation of the software to be deployed is completed, the software to be deployed may automatically run and be configured.
In a specific implementation process, the second shared printer instance may include setting information of the first device, such as setting information of an IP address, a port number, and the like of the first device, and the second device may obtain the setting information based on the second shared printer instance and configure the software to be deployed with the setting information.
In the embodiment of the invention, a first device locally installs a printer driver to generate a first shared printer instance, when the first device determines that at least one second device accesses the first shared printer instance, the first device automatically triggers the at least one second device to obtain and install the printer driver from the first device, and in the process of installing the printer driver, a printer software interface included in the printer driver is called to execute software data to be deployed so as to realize installation and deployment of software to be deployed.
Furthermore, in the embodiment of the invention, the software to be deployed does not need to be copied to each device one by one manually, and the software installation package installation software does not need to be operated one by one manually, so that the time consumption and labor cost in large-scale software deployment are saved, and the implementation cost of software deployment is reduced.
Further, in the embodiment of the present invention, the shared printer is a general function of the operating system, is turned on by default, and does not need to make a special setting, and compared with a software deployment method that strictly depends on an operating system environment and third-party auxiliary software in the prior art, the software deployment method in the embodiment of the present invention is low in implementation difficulty.
Furthermore, in the embodiment of the invention, the shared printer function is a function which is often used in daily work, the operation is simple, and a user can easily apply the software deployment method provided by the implementation of the invention to the software deployment work without professional training.
Example two
Based on the same inventive concept, the embodiment of the present invention provides another software deployment method based on a shared printer, which can be applied to a second device, and the second device can deploy software for itself by executing the software deployment method based on the shared printer in the present invention.
In this embodiment of the present invention, the first device and the second device may be the first device and the second device described in the first embodiment, and the description about the first device and the second device and the description about the operations performed by the first device and the second device may refer to and refer to the description in the first embodiment, and are not repeated herein.
Moreover, since the software deployment method provided in the embodiment of the present invention and the software deployment method in the first embodiment are based on the same inventive concept and are implemented by the second device side corresponding to the first device side, the contents in the first embodiment can be referred to or cited when understanding and explaining the contents in the implementation of the present invention, and are not described herein again.
Referring to fig. 2, a flow of the shared printer-based software deployment method in the embodiment of the present invention is described as follows.
Step 201: the second device accesses the first shared printer instance on the first device to obtain the printer driver.
Step 202: the second device installs the printer driver, calls a printer software interface in the process of locally installing the printer driver, and executes software data to be deployed so as to install the software to be deployed, wherein the printer driver comprises the software data to be deployed, and the software data to be deployed is associated with the printer software interface included by the printer driver.
In one possible implementation, calling the printer software interface, executing the software data to be deployed to install the software to be deployed includes:
and calling a printer software interface, obtaining an installation package of the software to be deployed based on the data of the software to be deployed, running the installation package of the software to be deployed, and installing the software to be deployed.
In one possible implementation, calling a printer software interface, executing software data to be deployed to install software to be deployed includes:
and calling a printer software interface, obtaining an installation package of the software to be deployed and installation indication information used for indicating an installation mode based on the data of the software to be deployed, running the installation package of the software to be deployed, and installing the software to be deployed in the installation mode indicated by the installation indication information.
In one possible implementation, calling a printer software interface, executing software data to be deployed to install software to be deployed includes:
calling a printer software interface, obtaining a seed program for installing software to be deployed based on data of the software to be deployed, running the seed program, obtaining and running an installation package of the software to be deployed in the process of running the seed program, and installing the software to be deployed.
In one possible embodiment, after executing the to-be-deployed software data to install the to-be-deployed software, the method further includes:
running the installed software to be deployed, and acquiring setting information of the first equipment based on the second shared printer instance to configure the installed software to be deployed according to the setting information;
wherein the second shared printer instance is a shared printer instance generated by the second device locally installing a printer driver.
EXAMPLE III
Based on the same inventive concept, an embodiment of the present invention provides a shared printer-based software deployment apparatus, which may be the first apparatus described in the first embodiment and the second embodiment, and the apparatus in the implementation of the present invention may deploy software for at least one second apparatus by performing the steps of the shared printer-based software deployment method described in the first embodiment.
In addition, in the embodiment of the present invention, for descriptions of the first device and the second device and explanations of operations performed by the first device and the second device, reference may be made to the descriptions in the first embodiment and the second embodiment, which are not described herein again.
Referring to fig. 3, the apparatus in the embodiment of the present invention includes a mounting unit 301 and a triggering unit 302. Wherein:
an installation unit 301 for locally installing a printer driver to generate a first shared printer instance;
a triggering unit 302, configured to trigger the at least one second device to perform the following operations when it is determined that the at least one second device accesses the first shared printer instance:
the method comprises the steps that a printer driver is obtained and installed from equipment, in the process of installing the printer driver, a printer software interface included in the printer driver is called, and software data to be deployed are executed to install software to be deployed; wherein the software data to be deployed is located within the printer driver and is associated with the printer software interface.
In a possible implementation, the triggering unit 302 is configured to, when determining that the at least one second device accesses the first shared printer instance, trigger the at least one second device to perform the following operations:
the method comprises the steps of obtaining and installing a printer driver from equipment, calling a printer software interface in the process of installing the printer driver, obtaining an installation package of software to be deployed based on data of the software to be deployed, running the installation package of the software to be deployed, and installing the software to be deployed.
In a possible implementation, the triggering unit 302 is configured to, when determining that the at least one second device accesses the first shared printer instance, trigger the at least one second device to perform the following operations:
the method comprises the steps of obtaining and installing a printer driver from equipment, calling a printer software interface in the process of installing the printer driver, obtaining an installation package of software to be deployed based on data of the software to be deployed and installation indication information used for indicating an installation mode, running the installation package of the software to be deployed, and installing the software to be deployed in the installation mode indicated by the installation indication information.
In a possible implementation, the triggering unit 302 is configured to, when determining that the at least one second device accesses the first shared printer instance, trigger the at least one second device to perform the following operations:
the method comprises the steps of obtaining and installing a printer driver from equipment, calling a printer software interface in the process of installing the printer driver, obtaining a seed program for installing software to be deployed based on data of the software to be deployed, running the seed program, obtaining and running an installation package of the software to be deployed in the process of running the seed program, and installing the software to be deployed.
In a possible implementation, the triggering unit 302 is configured to, when determining that the at least one second device accesses the first shared printer instance, trigger the at least one second device to perform the following operations:
acquiring and installing a printer driver from the equipment, executing software data to be deployed to install software to be deployed in the process of installing the printer driver, running the installed software to be deployed after executing the software data to be deployed to install the software to be deployed, and acquiring setting information of the equipment based on a second shared printer instance to configure the installed software to be deployed with the setting information;
wherein the second shared printer instance is a shared printer instance generated by at least one second device locally installing a printer driver.
Example four
Based on the same inventive concept, an embodiment of the present invention provides another software deployment device based on a shared printer, where the device may be the second device described in the first embodiment and the second embodiment, and the device in the implementation of the present invention may deploy software for itself through the first device by executing the steps of the software deployment method based on the shared printer described in the second embodiment.
In addition, in the embodiment of the present invention, for descriptions of the first device and the second device and explanations of operations performed by the first device and the second device, reference may be made to the descriptions in the first embodiment and the second embodiment, which are not described herein again.
Referring to fig. 4, the apparatus in the implementation of the present invention includes an access unit 401 and a mounting unit 402. Wherein:
an accessing unit 401, configured to access a shared printer instance on a first device to obtain a printer driver; the printer driver comprises software data to be deployed, and the software data to be deployed is associated with a printer software interface included in the printer driver;
the installation unit 402 is configured to install a printer driver, and in the process of installing the printer driver, call a printer software interface and execute software data to be deployed to install software to be deployed.
In one possible embodiment, the mounting unit 402 is configured to:
and calling a printer software interface, obtaining an installation package of the software to be deployed based on the data of the software to be deployed, running the installation package of the software to be deployed, and installing the software to be deployed.
In one possible embodiment, the mounting unit 402 is configured to:
and calling a printer software interface, obtaining an installation package of the software to be deployed and installation indication information used for indicating an installation mode based on the data of the software to be deployed, running the installation package of the software to be deployed, and installing the software to be deployed in the installation mode indicated by the installation indication information.
In one possible embodiment, the mounting unit 402 is configured to:
calling a printer software interface, obtaining a seed program for installing software to be deployed based on data of the software to be deployed, running the seed program, obtaining and running an installation package of the software to be deployed in the process of running the seed program, and installing the software to be deployed.
In one possible embodiment, the mounting unit 402 is configured to:
after executing the software data to be deployed to install the software to be deployed, running the installed software to be deployed, and obtaining the setting information of the first device based on the second shared printer instance to configure the installed software to be deployed with the setting information;
wherein the second shared printer instance is a shared printer instance generated by the device locally installing a printer driver.
EXAMPLE five
Based on the same inventive concept, embodiments of the present invention further provide a computer-readable storage medium, which stores computer program instructions, and when the computer program instructions are loaded and executed, the shared printer-based software deployment method according to the first aspect and/or the second aspect may be performed. In addition, the specific implementation process when executing the software deployment method based on the shared printer may refer to the description of the first embodiment and/or the second embodiment, and is not described herein again.
In particular implementations, the computer-readable storage medium includes: various storage media capable of storing program codes, such as a Universal Serial Bus flash drive (USB), a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, and an optical disk.
One or more of the above technical solutions have the following technical effects or advantages:
in the embodiment of the invention, a first device locally installs a printer driver to generate a first shared printer instance, when the first device determines that at least one second device accesses the first shared printer instance, the first device automatically triggers the at least one second device to obtain and install the printer driver from the first device, and in the process of installing the printer driver, a printer software interface included in the printer driver is called to execute software data to be deployed so as to realize installation and deployment of software to be deployed.
Furthermore, in the embodiment of the invention, the software to be deployed does not need to be copied to each device one by one manually, and the software installation package installation software does not need to be operated one by one manually, so that the time consumption and labor cost in large-scale software deployment are saved, and the implementation cost of software deployment is reduced.
Further, in the embodiment of the present invention, the shared printer is a general function of the operating system, is turned on by default, and does not need to make a special setting, and compared with a software deployment method that strictly depends on an operating system environment and third-party auxiliary software in the prior art, the software deployment method in the embodiment of the present invention is low in implementation difficulty.
Furthermore, in the embodiment of the invention, the shared printer function is a function which is often used in daily work, the operation is simple, and a user can easily apply the software deployment method provided by the implementation of the invention to the software deployment work without professional training.
Furthermore, in the embodiment of the invention, the process of software deployment is transparent to users, the shared printer is used in daily operation, and the software can be deployed on the second equipment used by each user on the premise of ensuring that the normal work of the users is not interfered.
Furthermore, in the embodiment of the present invention, when software deployment is performed, higher authority of the operating system in the second device may be obtained, which reduces abnormal deployment caused by authority problem and reduces the possibility of failure deployment. For example, when software is deployed on a second device running a Windows operating SYSTEM by using the method or the device in the embodiment of the present invention, since the printer driver is called by a Print spooller of a service program of the Windows operating SYSTEM, and the Print spooller is run by a SYSTEM account, the printer driver has the highest authority of the operating SYSTEM, and the printer driver for deployment also has the highest authority of the operating SYSTEM.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (12)

1. A shared printer based software deployment method, the method comprising:
the first device locally installs a printer driver to generate a first shared printer instance;
when the first device determines that at least one second device accesses the first shared printer instance, triggering the at least one second device to:
obtaining and installing the printer driver from the first device, calling a printer software interface included in the printer driver in the process of installing the printer driver, and executing software data to be deployed so as to install software to be deployed; wherein the software data to be deployed is located within the printer driver and is associated with the printer software interface.
2. The method of claim 1, wherein invoking a printer software interface included in the printer driver to execute the software to be deployed data to install the software to be deployed comprises:
and calling the printer software interface, obtaining the installation package of the software to be deployed based on the data of the software to be deployed, running the installation package of the software to be deployed, and installing the software to be deployed.
3. The method of claim 1, wherein invoking a printer software interface included in the printer driver to execute the software to be deployed data to install the software to be deployed comprises:
calling the printer software interface, obtaining the installation package of the software to be deployed and installation indication information used for indicating an installation mode based on the software data to be deployed, running the installation package of the software to be deployed, and installing the software to be deployed in the installation mode indicated by the installation indication information.
4. The method of claim 1, wherein invoking a printer software interface included in the printer driver to execute the software to be deployed data to install the software to be deployed comprises:
calling the printer software interface, obtaining a seed program for installing the software to be deployed based on the software data to be deployed, running the seed program, obtaining and running an installation package of the software to be deployed in the process of running the seed program, and installing the software to be deployed, wherein the seed program is a program for installing or guiding the installation of the software to be deployed.
5. The method of any one of claims 1-4, wherein after executing the software data to be deployed to install the software to be deployed, the method further comprises:
running the installed software to be deployed, obtaining setting information of the first equipment based on a second shared printer instance, and configuring the installed software to be deployed according to the setting information;
wherein the second shared printer instance is a shared printer instance generated by the at least one second device locally installing the printer driver.
6. A shared printer based software deployment method, the method comprising:
the second device accessing the first shared printer instance on the first device to obtain and install a printer driver; the printer driver comprises software data to be deployed, and the software data to be deployed is associated with a printer software interface included in the printer driver;
and the second equipment calls the printer software interface in the process of locally installing the printer driver, and executes the software data to be deployed so as to install the software to be deployed.
7. The method of claim 6, wherein invoking the printer software interface, executing the software to be deployed data to install software to be deployed, comprises:
and calling the printer software interface, obtaining the installation package of the software to be deployed based on the data of the software to be deployed, running the installation package of the software to be deployed, and installing the software to be deployed.
8. The method of claim 6, wherein invoking the printer software interface, executing the software to be deployed data to install software to be deployed, comprises:
calling the printer software interface, obtaining the installation package of the software to be deployed and installation indication information used for indicating an installation mode based on the software data to be deployed, running the installation package of the software to be deployed, and installing the software to be deployed in the installation mode indicated by the installation indication information.
9. The method of claim 6, wherein invoking the printer software interface, executing the software to be deployed data to install software to be deployed, comprises:
calling the printer software interface, obtaining a seed program for installing the software to be deployed based on the software data to be deployed, running the seed program, obtaining and running an installation package of the software to be deployed in the process of running the seed program, and installing the software to be deployed, wherein the seed program is a program for installing or guiding the installation of the software to be deployed.
10. The method of any of claims 6-9, wherein after executing the to-be-deployed software data to install to-be-deployed software, the method further comprises:
running the installed software to be deployed, obtaining setting information of the first equipment based on a second shared printer instance, and configuring the installed software to be deployed according to the setting information;
wherein the second shared printer instance is a shared printer instance generated by the second device locally installing the printer driver.
11. A shared printer based software deployment device, the device comprising:
an installation unit for locally installing a printer driver to generate a first shared printer instance;
a triggering unit, configured to trigger at least one second device to perform the following operations when it is determined that the at least one second device accesses the first shared printer instance:
obtaining and installing the printer driver from the device, calling a printer software interface included in the printer driver in the process of installing the printer driver, and executing software data to be deployed so as to install software to be deployed; wherein the software data to be deployed is located within the printer driver and is associated with the printer software interface.
12. A shared printer based software deployment device, the device comprising:
an accessing unit configured to access a shared printer instance on a first device to obtain a printer driver; the printer driver comprises software data to be deployed, and the software data to be deployed is associated with a printer software interface included in the printer driver;
and the installation unit is used for installing the printer driver, calling the printer software interface and executing the software data to be deployed in the process of installing the printer driver so as to install the software to be deployed.
CN201710825928.7A 2017-09-14 2017-09-14 Software deployment method and device based on shared printer Active CN107728962B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710825928.7A CN107728962B (en) 2017-09-14 2017-09-14 Software deployment method and device based on shared printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710825928.7A CN107728962B (en) 2017-09-14 2017-09-14 Software deployment method and device based on shared printer

Publications (2)

Publication Number Publication Date
CN107728962A CN107728962A (en) 2018-02-23
CN107728962B true CN107728962B (en) 2020-05-22

Family

ID=61204663

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710825928.7A Active CN107728962B (en) 2017-09-14 2017-09-14 Software deployment method and device based on shared printer

Country Status (1)

Country Link
CN (1) CN107728962B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1400528A (en) * 2001-07-26 2003-03-05 惠普公司 Automatic software drive program installation
CN1532699A (en) * 2003-03-25 2004-09-29 �ֵܹ�ҵ��ʽ���� Down loading system
CN1755628A (en) * 2004-09-30 2006-04-05 联想(北京)有限公司 Method of automatically installing software during operation system startup
CN101226466A (en) * 2007-01-05 2008-07-23 三星电子株式会社 Main frame and method for installing its printed driver
CN103632087A (en) * 2012-08-21 2014-03-12 腾讯科技(深圳)有限公司 Method and device for protecting process

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1400528A (en) * 2001-07-26 2003-03-05 惠普公司 Automatic software drive program installation
CN1532699A (en) * 2003-03-25 2004-09-29 �ֵܹ�ҵ��ʽ���� Down loading system
CN1755628A (en) * 2004-09-30 2006-04-05 联想(北京)有限公司 Method of automatically installing software during operation system startup
CN101226466A (en) * 2007-01-05 2008-07-23 三星电子株式会社 Main frame and method for installing its printed driver
CN103632087A (en) * 2012-08-21 2014-03-12 腾讯科技(深圳)有限公司 Method and device for protecting process

Also Published As

Publication number Publication date
CN107728962A (en) 2018-02-23

Similar Documents

Publication Publication Date Title
CN110096424B (en) Test processing method and device, electronic equipment and storage medium
CN110543327B (en) Service component multiplexing method, device, computer equipment and storage medium
US10404568B2 (en) Agent manager for distributed transaction monitoring system
CN106445580A (en) Method and device for BMC (Baseboard Management Controller) with external upgrading
US11435991B2 (en) Automated machine deployment and configuration
CN104375854A (en) Application updating and downloading method and user terminal
CN111061448A (en) Log information display method and device, electronic equipment and storage medium
US10791039B2 (en) Systems and methods for cloud service provisioning using software containers
CN108880864B (en) Automatic recovery method and device for service network, disaster recovery platform and storage medium
EP3754489A1 (en) Method for evaluating application deployment, apparatus, computer program product, and readable medium
CN107728962B (en) Software deployment method and device based on shared printer
CN110134546B (en) Batch restarting windows system method, electronic device and storage medium
CN112083971B (en) Component processing method, device and storage medium
CN102402440A (en) Method and device for pushing and prompting of application program
CN115208671A (en) Firewall configuration method and device, electronic equipment and storage medium
CN115237441A (en) Upgrade test method, device and medium based on cloud platform
CN114302055A (en) Linux-based camera control method, device, equipment and storage medium
CN114726905A (en) Method, device, equipment and storage medium for accessing Tbox network to Android system
CN110908684B (en) Method and device for updating silk-screen information of configuration page memory
CN108121574A (en) Hot upgrade method, device and the virtual machine system of a kind of kernel module
JP2014167778A (en) Electronic apparatus and application storage program
WO2021137921A1 (en) Automated configuration and deployment of contact center software suite
CN109981365A (en) Data decryptor method, apparatus, user equipment and storage medium
CN109413070A (en) A kind of WAF service activating method and relevant apparatus
US20230171179A1 (en) Method for testing pressure, electronic device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant