How to handle, install, and uninstall applications

By analyzing the handler and determining the packaging tool, traversing the silent parameters and executing the silent parameters, the problem of difficulty in achieving complete silence in the existing technology of application installation and uninstallation is solved, and automation and user experience are improved.

CN113867742BActive Publication Date: 2024-12-13HANGZHOU INFOGO TECH
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202111146765.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-28
Publication Date
2024-12-13
Estimated Expiration
2041-09-28

AI Technical Summary

Technical Problem

The prior art is difficult to achieve complete silent installation and uninstallation of applications, especially in software processing outside of standard packaging types, resulting in low user perception and maintenance efficiency.

Method used

By receiving processing instructions, parsing the handler, determining the packaging tool, and traversing the preset silent parameters, performing silent parameters to achieve silent processing, including silent installation and uninstallation.

Benefits of technology

It realizes the automatic silent processing of the application, improves the efficiency of installation and uninstallation and user experience, and solves the problem that traditional methods are difficult to achieve complete silent effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113867742B_ABST
    Figure CN113867742B_ABST
Patent Text Reader

Abstract

The present invention discloses a processing method, an installation method and an uninstallation method of an application. The method comprises: receiving a processing instruction of a target application, wherein the processing instruction is used to process the target application according to a processing program, and the processing instruction includes the processing program of the target application or an identifier of the processing program; obtaining the processing program according to the processing instruction, parsing it, and determining the packaging tool corresponding to the processing program, wherein the packaging tool is used to package the program file of the processing program; according to the packaging tool, traversing preset silent parameters, determining the silent parameters of the packaging tool, wherein the silent parameters include multiple packaging tools and silent parameters corresponding to the packaging tools; executing the silent parameters through the processing program, and performing silent processing on the target application. The present invention solves the technical problem that it is difficult to achieve a completely silent effect and difficult to achieve user-unnoticed processing in traditional processing methods such as application installation / uninstallation in the related art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of application processing, and in particular to an application processing method, an installation method and an uninstallation method. Background Art

[0002] At present, various software are emerging in the market, and people are more flexible in choosing and using computer applications. However, while it is convenient to use, other problems will also arise. The time and manpower costs of enterprise software management are getting higher and higher. One is the use of non-standard software, which may affect computer security. Pirated software may also involve infringement, etc., which will bring unnecessary security problems or economic losses to the enterprise. Another is that in an environment where there is no Internet access, enterprises need to maintain software in batches, which will also take up a lot of time and have low maintenance efficiency.

[0003] There are methods for silently uninstalling software in the industry. Specifically, a preset uninstaller and uninstall instructions are obtained; the uninstaller is run to scan the registry. If the silent uninstall path parameter is read, the silent uninstall path parameter is called to silently uninstall the target software corresponding to the uninstall instruction. The silent uninstall path parameter in the registry can be read by executing the issued uninstaller, and the software can be silently uninstalled in the system background. This solution only mentions the relevant methods for silently uninstalling installed software, and does not explain the silent installation of the general installer and the installation of software that is not packaged in the standard packaging type.

[0004] In addition, the existing solution uses QuietUninstallString when uninstalling. After testing, this information may not be able to achieve a completely silent effect, and there may be pop-ups or progress bars. In addition, the registry path scanned by this solution is incomplete, and some software installation information may still exist under HKEY_USERS or HKEY_CURRENT_USER. This makes it difficult to achieve a completely silent effect.

[0005] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0006] The embodiments of the present invention provide an application processing method, an installation method, and an uninstallation method, so as to at least solve the technical problems in the related art that the traditional application installation / uninstallation and other processing methods are difficult to achieve a completely silent effect and difficult to achieve user-unaware processing.

[0007] According to one aspect of an embodiment of the present invention, there is provided a method for processing an application, comprising: receiving a processing instruction of a target application, wherein the processing instruction is used to process the target application according to a processing procedure, and the processing instruction includes the processing procedure of the target application or an identifier of the processing procedure; obtaining the processing procedure according to the processing instruction, and parsing it to determine a packaging tool corresponding to the processing procedure, wherein the packaging tool is used to package program files of the processing procedure; according to the packaging tool, traversing preset silent parameters to determine the silent parameters of the packaging tool, wherein the silent parameters include multiple packaging tools and silent parameters corresponding to the packaging tools; executing the silent parameters through the processing procedure to silently process the target application.

[0008] Optionally, according to the packaging tool, before traversing the preset silent parameters and determining the silent parameters of the packaging tool, it also includes: determining multiple packaging tools and silent parameters corresponding to the packaging tools, wherein the silent parameters include at least one of the following: a silent parameter identifier, a silent processing instruction, and a silent processing program; and creating a table to store the silent parameters according to the multiple packaging tools and the silent parameters corresponding to the packaging tools.

[0009] Optionally, after creating a table to store the silent parameters according to multiple packaging tools and the silent parameters corresponding to the packaging tools, the method further includes: receiving a modification instruction for the silent parameters, wherein the modification instruction is used to add or delete the packaging tools and the silent parameters corresponding to the packaging tools in the table, and the modification instruction is also used to modify the silent parameters of the packaging tools; in response to the modification instruction, adding or deleting the packaging tools and the silent parameters corresponding to the packaging tools in the table, or modifying the silent parameters of the packaging tools in the table.

[0010] Optionally, obtaining the handler according to the processing instruction, parsing it, and determining the packaging tool corresponding to the handler includes: directly obtaining the handler when the processing instruction includes the handler; searching for the storage path of the handler according to the identifier and obtaining the handler according to the storage path when the processing instruction does not include the identifier of the handler; and parsing the handler to determine the packaging tool corresponding to the handler.

[0011] Optionally, parsing the handler to determine the packaging tool corresponding to the handler includes: parsing the executable file of the handler by a parsing tool to obtain a resource table of the executable file; searching for assembly information of the executable file at a preset location in the resource table; obtaining a target field in the assembly information, wherein the target field is used to characterize the packaging tool of the handler; and determining the packaging tool corresponding to the handler according to the target field.

[0012] Optionally, it also includes: when the packaging tool of the processing program is not found in the silent parameters, obtaining the target silent parameters, wherein the target silent parameters are one of the multiple silent parameters corresponding to the multiple packaging tools in the silent parameters; and executing the target silent parameters according to the processing program to process the target application.

[0013] According to another aspect of an embodiment of the present invention, there is also provided an application installation method, comprising: receiving an installation instruction of a target application, wherein the installation instruction includes an installation program of the target application; parsing the installation program to determine a packaging tool corresponding to the installation program; according to the packaging tool, traversing preset silent parameters to determine the silent parameters of the packaging tool, wherein the silent parameters include multiple packaging tools and silent parameters corresponding to the packaging tools; executing the silent parameters through the installation program to silently install the target application.

[0014] Optionally, parsing the installer and determining the packaging tool corresponding to the installer includes: parsing the executable file of the installer by a parsing tool to obtain a resource table of the executable file; searching for assembly information of the executable file at a preset location in the resource table; obtaining a target field in the assembly information, wherein the target field is used to characterize the packaging tool of the installer; and determining the packaging tool corresponding to the installer according to the target field.

[0015] Optionally, it also includes: when the packaging tool of the installer is not found in the silent parameters, obtaining target silent parameters, wherein the target silent parameters are one of multiple silent parameters corresponding to multiple packaging tools in the silent parameters; and installing the target application according to the installer by executing the target silent parameters.

[0016] According to another aspect of an embodiment of the present invention, a method for uninstalling an application is also provided, comprising: receiving an uninstall instruction of a target application, wherein the uninstall instruction includes an identifier of the target application; determining an uninstaller of the target application from a local installation registry according to the identifier; parsing the uninstaller to determine a packaging tool corresponding to the uninstaller; according to the packaging tool, traversing preset silent parameters to determine the silent parameters of the packaging tool, wherein the silent parameters include multiple packaging tools and silent parameters corresponding to the packaging tools; executing the silent parameters through the uninstaller to silently uninstall the target application.

[0017] Optionally, according to the identifier, determining the uninstaller of the target application from the local installation registry includes: obtaining the installation registry, wherein the installation registry includes software information of multiple applications installed locally, the software information including a save path of the application's uninstaller; according to the identifier, searching the installation registry for target software information of the corresponding target application; obtaining a target save path of the uninstaller of the target application according to the target software information; and obtaining the uninstaller of the target application according to the target save path.

[0018] Optionally, parsing the uninstaller and determining the packaging tool corresponding to the uninstaller includes: parsing the executable file of the uninstaller by a parsing tool to obtain a resource table of the executable file; searching for assembly information of the executable file at a preset location in the resource table; obtaining a target field in the assembly information, wherein the target field is used to characterize the packaging tool of the uninstaller; and determining the packaging tool corresponding to the uninstaller according to the target field.

[0019] According to another aspect of an embodiment of the present invention, there is further provided an application processing device, comprising: a first receiving module, configured to receive a processing instruction of a target application, wherein the processing instruction is used to process the target application according to a processing procedure, and the processing instruction includes the processing procedure of the target application or an identifier of the processing procedure; a first parsing module, configured to obtain the processing procedure according to the processing instruction, and parse the processing procedure to determine a packaging tool corresponding to the processing procedure, wherein the packaging tool is used to package program files of the processing procedure; a first traversal module, configured to traverse preset silent parameters according to the packaging tool to determine the silent parameters of the packaging tool, wherein the silent parameters include multiple packaging tools and silent parameters corresponding to the packaging tools; a processing module, configured to execute the silent parameters through the processing procedure to perform silent processing on the target application.

[0020] According to another aspect of an embodiment of the present invention, there is further provided an application installation device, comprising: a second receiving module, used to receive an installation instruction of a target application, wherein the installation instruction includes an installation program of the target application; a second parsing module, used to parse the installation program and determine a packaging tool corresponding to the installation program; a second traversal module, used to traverse preset silent parameters according to the packaging tool and determine the silent parameters of the packaging tool, wherein the silent parameters include multiple packaging tools and silent parameters corresponding to the packaging tools; an installation module, used to execute the silent parameters through the installation program to silently install the target application.

[0021] According to another aspect of an embodiment of the present invention, there is also provided an application uninstallation device, comprising: a third receiving module, used to receive an uninstallation instruction of a target application, wherein the uninstallation instruction includes an identifier of the target application; a determination module, used to determine an uninstallation program of the target application from a local installation registry according to the identifier; a third parsing module, used to parse the uninstallation program and determine a packaging tool corresponding to the uninstallation program; a third traversal module, used to traverse preset silent parameters according to the packaging tool and determine the silent parameters of the packaging tool, wherein the silent parameters include multiple packaging tools and silent parameters corresponding to the packaging tools; an uninstallation module, used to execute the silent parameters through the uninstallation program to silently uninstall the target application.

[0022] According to another aspect of an embodiment of the present invention, a processor is further provided, wherein the processor is used to run a program, wherein the program executes any one of the above methods when running.

[0023] According to another aspect of an embodiment of the present invention, a computer storage medium is provided, wherein the computer storage medium includes a stored program, wherein when the program is executed, the device where the computer storage medium is located is controlled to execute any one of the above methods.

[0024] In an embodiment of the present invention, a processing instruction of a target application is received, wherein the processing instruction is used to process the target application according to a processing program, and the processing instruction includes a processing program of the target application or an identifier of the processing program; the processing program is obtained according to the processing instruction, and is parsed to determine a packaging tool corresponding to the processing program, wherein the packaging tool is used to package the program file of the processing program; according to the packaging tool, preset silent parameters are traversed to determine the silent parameters of the packaging tool, wherein the silent parameters include multiple packaging tools and silent parameters corresponding to the packaging tools; the target application is silently processed by executing the silent parameters through the processing program, by determining the packaging tool of the processing program of the processing instruction, and setting the silent parameters according to the silent parameters corresponding to the packaging tool when the processing program is processed, so as to achieve the purpose of automatically triggering silent processing and automatically adopting a silent mode for processing when processing, thereby realizing the technical effect of improving the silent automation of application processing, automatically performing silent processing such as installation and uninstallation, and achieving user-unaware processing, thereby solving the technical problem that it is difficult to achieve a completely silent effect and user-unaware processing in traditional application installation / uninstallation and other processing methods in related technologies. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0026] Figure 1 is a flow chart of a processing method of an application according to an embodiment of the present invention;

[0027] Figure 2 is a flow chart of a method for installing an application according to an embodiment of the present invention;

[0028] Figure 3 is a flowchart of a method for uninstalling an application according to an embodiment of the present invention;

[0029] Figure 4 is a flowchart of silent installation and uninstallation according to an embodiment of the present invention;

[0030] Figure 5 is a schematic diagram of a processing device for an application according to an embodiment of the present invention;

[0031] Figure 6 is a schematic diagram of an installation device for application according to an embodiment of the present invention;

[0032] Figure 7 is a schematic diagram of an application uninstallation device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0033] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0034] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0035] According to an embodiment of the present invention, a method embodiment of a processing method for an application is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0036] Figure 1 is a flowchart of a processing method for an application according to an embodiment of the present invention. Figure 1 As shown, the method comprises the following steps:

[0037] Step S102, receiving a processing instruction of a target application, wherein the processing instruction is used to process the target application according to a processing procedure, and the processing instruction includes the processing procedure of the target application or an identifier of the processing procedure;

[0038] Step S104, obtaining a processing program according to the processing instruction, parsing it, and determining a packaging tool corresponding to the processing program, wherein the packaging tool is used to package the program files of the processing program;

[0039] Step S106, according to the packaging tool, traverse the preset silent parameters to determine the silent parameters of the packaging tool, wherein the silent parameters include multiple packaging tools and silent parameters corresponding to the packaging tools;

[0040] Step S108, executing the silent parameters through the processing program to perform silent processing on the target application.

[0041] Through the above steps, a processing instruction of a target application is received, wherein the processing instruction is used to process the target application according to a processing program, and the processing instruction includes a processing program of the target application or an identifier of the processing program; the processing program is obtained according to the processing instruction, and is parsed to determine a packaging tool corresponding to the processing program, wherein the packaging tool is used to package the program file of the processing program; according to the packaging tool, preset silent parameters are traversed to determine the silent parameters of the packaging tool, wherein the silent parameters include multiple packaging tools and silent parameters corresponding to the packaging tools; the target application is silently processed by executing the silent parameters through the processing program, by determining the packaging tool of the processing program of the processing instruction, and setting the silent parameters according to the silent parameters corresponding to the packaging tool when the processing program is processed, so as to achieve the purpose of automatically triggering silent processing and automatically adopting a silent mode for processing when processing, thereby realizing the technical effect of improving the silent automation of application processing, automatically performing silent processing such as installation and uninstallation, and achieving user-unaware processing, thereby solving the technical problem that it is difficult to achieve a completely silent effect and user-unaware processing in traditional application installation / uninstallation and other processing methods in related technologies.

[0042] The target application may be enterprise software, and the processing instruction may be an installation instruction or an uninstallation instruction. The uninstallation instruction includes a processing program or an identifier of a processing program, and the corresponding processing program may be obtained according to the processing program or the identifier of the processing program included in the processing instruction. The processing program of the target application is usually stored and transmitted in the form of a packaged file to prevent space occupation, and the target application obtained is generally also in the form of a packaged file.

[0043] Parsing the processing program of the target application can be to decompress the packaged file of the processing program to obtain the original file of the processing program. The original file includes parameters for identifying the packaging tool. Since the packaged files packaged by different packaging tools have different silent parameters when executed, the parameters required for silent processing are also different. Therefore, it is necessary to first determine the packaging tool of the packaged file in order to determine the silent parameters required for executing the processing, and then perform silent processing according to the silent parameters.

[0044] In this embodiment, silent parameters are set in advance, including multiple packaging tools and silent parameters corresponding to the packaging tools; since commonly used packaging tools are relatively fixed, their silent parameters are also universal, and multiple packaging tools are covered by creating a registration table. When using, you only need to find the corresponding data item in the silent parameter according to the identification of the packaging tool to determine the silent parameter of the packaging tool.

[0045] By processing the silent parameters of program execution, the target application is automatically processed silently, thereby achieving the purpose of automatically triggering silent processing and automatically adopting silent mode when processing, thereby realizing the automation of silent application processing, automatically performing silent processing such as installation and uninstallation, and achieving the technical effect of user-unaware processing, thereby solving the technical problems of traditional application uninstallation methods in related technologies, which are difficult to achieve a completely silent effect and difficult to achieve user-unaware uninstallation.

[0046] Optionally, according to the packaging tool, before traversing the preset silent parameters and determining the silent parameters of the packaging tool, it also includes: determining multiple packaging tools and silent parameters corresponding to the packaging tools, wherein the silent parameters include at least one of the following: a silent parameter identifier, a silent processing instruction, and a silent processing program; and creating a table to store the silent parameters according to the multiple packaging tools and the silent parameters corresponding to the packaging tools.

[0047] The above-mentioned determination of the packaging tool can be input by the user, and the table of silent parameters at least includes an identification column of the packaging tool, such as a name column, and a silent parameter column corresponding to the packaging tool. When the user inputs the packaging tool, it is also necessary to input the silent parameters corresponding to the packaging tool, that is, to determine the silent parameters of the packaging tool. Different packaging tools have different silent parameters, as shown in Table 1 below. The silent parameters of the Microsoft Windows Installer (MSI) packaging tool include / qn without any window, / qb with basic installation progress display, and targetdir=specified installation directory. The silent processing of the Microsoft Windows Installer (MSI) packaging tool can be achieved through the above three silent parameters. The above silent parameter can be a silent parameter identifier, such as the above / qn, which is actually the data format in the file, or the data suffix, silent processing instruction, such as the silent parameter of the Installshield packaging tool in Table 1 below 4. Use the following command to perform silent installation: setup.exe-s[-sms], the silent processing program is the silent parameter of the Installshield packaging tool in Table 1 below 1. To use the silent installation method to install the program packaged with InstallShield technology, first create a setup.iss file in the existing operating system. Run the installation program with the -R parameter (case sensitive) in the command line window. For example: Setup.exe–R.

[0048] According to multiple packaging tools and silent parameters corresponding to the packaging tools, a table is created to store the silent parameters. A registration table can be first established, and then the packaging tools and silent parameters corresponding to the packaging tools entered one by one are filled into the table to generate the above-mentioned preset silent parameter table.

[0049] Optionally, after creating a table to store silent parameters according to multiple packaging tools and silent parameters corresponding to the packaging tools, the method further includes: receiving a modification instruction for the silent parameters, wherein the modification instruction is used to add or delete the packaging tools and silent parameters corresponding to the packaging tools in the table, and the modification instruction is also used to modify the silent parameters of the packaging tools; in response to the modification instruction, the packaging tools and silent parameters corresponding to the packaging tools in the table are added or deleted, or the silent parameters of the packaging tools in the table are modified.

[0050] After the above silent parameters are created, they can be modified and edited as needed during subsequent use. For example, if the packaging tool updates its silent parameters, it is necessary to update the silent parameters corresponding to the packaging tool. The above modification instructions can be issued by the terminal of the target software. This meets the flexibility requirements of long-term use.

[0051] Optionally, obtaining a handler according to a processing instruction and parsing the handler to determine a packaging tool corresponding to the handler includes: when the processing instruction includes the handler, directly obtaining the handler; when the processing instruction does not include an identifier of the handler, searching for a storage path of the handler according to the identifier, and obtaining the handler according to the storage path; parsing the handler to determine a packaging tool corresponding to the handler.

[0052] In the case where the processing instruction includes a handler, the handler is directly obtained. Usually, the installation program exists in the installation instruction. Obtaining the installation instruction will obtain the installation program accordingly. In the case where the processing instruction includes the identifier of the handler, the storage path of the handler is found according to the identifier, and the handler is obtained according to the storage path. Usually, after the target application is installed, the uninstaller will be stored in the local storage, and its storage path can be found through the local installation registry. The uninstall instruction page usually only includes the identifier of the target application to be uninstalled. By searching the local installation registry with this identifier, the storage path of the uninstaller of the target application to be uninstalled can be obtained, and the uninstaller can be obtained according to the storage path.

[0053] Optionally, parsing the handler to determine the packaging tool corresponding to the handler includes: parsing the executable file of the handler by a parsing tool to obtain a resource table of the executable file; searching for assembly information of the executable file at a preset location in the resource table; obtaining a target field in the assembly information, wherein the target field is used to represent the packaging tool of the handler; and determining the packaging tool corresponding to the handler based on the target field.

[0054] The executable file of the above-mentioned processing program can be a PE file, including a resource table, in which the information of the assembly manifest is stored at a preset position. The target field "description" field in the assembly information indicates the packaging tool used by the program, thereby determining the packaging tool corresponding to the processing program.

[0055] Optionally, it also includes: when no packaging tool for the processing program is found in the silent parameters, obtaining target silent parameters, wherein the target silent parameters are one of multiple silent parameters corresponding to multiple packaging tools in the silent parameters; and processing the target application according to the processing program executing the target silent parameters.

[0056] If the packaging tool is not found in the silent parameters, it means that the packaging tool is not recorded in the silent parameters. The target silent parameters are used for execution. The target silent parameters can include the silent parameters of multiple packaging tools. When executing, the silent parameters of multiple packaging tools are added to the processing program for execution to increase the hit probability of silent execution. If the target silent parameters still cannot be silently executed by the processing program, it is determined that the processing program cannot be silently processed, and a prompt box needs to pop up to ask the user whether to process it.

[0057] According to an embodiment of the present invention, a method embodiment of an application installation method is also provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0058] Figure 2 is a flow chart of a method for installing an application according to an embodiment of the present invention. Figure 2 As shown, the installation method of the application includes:

[0059] Step S202, receiving an installation instruction of a target application, wherein the installation instruction includes an installation program of the target application;

[0060] Step S204, parsing the installation program and determining a packaging tool corresponding to the installation program;

[0061] Step S206, according to the packaging tool, traverse the preset silent parameters to determine the silent parameters of the packaging tool, wherein the silent parameters include multiple packaging tools and silent parameters corresponding to the packaging tools;

[0062] Step S208, executing silent parameters through the installation program to silently install the target application.

[0063] Through the above steps, an installation instruction of a target application is received, wherein the installation instruction includes an installation program of the target application; the installation program is parsed to determine a packaging tool corresponding to the installation program; according to the packaging tool, preset silent parameters are traversed to determine the silent parameters of the packaging tool, wherein the silent parameters include multiple packaging tools and silent parameters corresponding to the packaging tools; the target application is silently installed by executing the silent parameters through the installation program, by determining the packaging tool of the installation program of the installation instruction, and according to the silent parameters corresponding to the packaging tool, when the installation program is installed, the silent parameters are set, thereby achieving the purpose of automatically triggering silent installation and automatically installing in silent mode during installation, thereby achieving the technical effect of improving the silent automation of application installation, automatically performing silent installation, and achieving user-imperceptible installation, thereby solving the technical problem in the related art that it is difficult to achieve a completely silent effect and user-imperceptible installation during traditional application installation.

[0064] Optionally, parsing the installer and determining the packaging tool corresponding to the installer includes: parsing the executable file of the installer through the parsing tool to obtain a resource table of the executable file; searching for assembly information of the executable file at a preset location in the resource table; obtaining a target field in the assembly information, wherein the target field is used to represent the packaging tool of the installer; and determining the packaging tool corresponding to the installer based on the target field.

[0065] Optionally, it also includes: when the packaging tool of the installer is not found in the silent parameters, obtaining preset silent parameters, wherein the silent parameters are one of multiple silent parameters corresponding to multiple packaging tools in the silent parameters; and installing the target application according to the preset silent parameters executed by the installer.

[0066] According to an embodiment of the present invention, a method embodiment of a method for uninstalling an application is also provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0067] Figure 3 is a flowchart of a method for uninstalling an application according to an embodiment of the present invention. Figure 3 As shown, the uninstallation method of the application includes:

[0068] Step S302, receiving an uninstall instruction of a target application, wherein the uninstall instruction includes an identifier of the target application;

[0069] Step S304, determining the uninstallation program of the target application from the local installation registry according to the identifier;

[0070] Step S306, parsing the uninstall program and determining the packaging tool corresponding to the uninstall program;

[0071] Step S308, according to the packaging tool, traverse the preset silent parameters to determine the silent parameters of the packaging tool, wherein the silent parameters include multiple packaging tools and silent parameters corresponding to the packaging tools;

[0072] Step S310: silently uninstall the target application by executing silent parameters through the uninstallation program.

[0073] Through the above steps, an uninstall instruction of a target application is received, wherein the uninstall instruction includes an identifier of the target application; according to the identifier, an uninstaller of the target application is determined from a local installation registry; the uninstaller is parsed to determine a packaging tool corresponding to the uninstaller; according to the packaging tool, preset silent parameters are traversed to determine the silent parameters of the packaging tool, wherein the silent parameters include multiple packaging tools and silent parameters corresponding to the packaging tools; the target application is silently uninstalled by executing the silent parameters through the uninstaller, the uninstaller is obtained by the uninstaller identifier of the uninstall instruction, and the uninstaller is parsed to determine the packaging tool of the uninstaller, and according to the silent parameters corresponding to the packaging tool, when the uninstaller is uninstalled, the silent parameters are set, so as to achieve the purpose of automatically triggering silent uninstallation and automatically uninstalling in a silent manner when uninstalling, thereby achieving the technical effect of improving the silent automation of application uninstallation, automatically performing silent uninstallation, and achieving user-unconscious uninstallation, thereby solving the technical problem in the related art that it is difficult to achieve a completely silent effect and user-unconscious uninstallation when uninstalling traditional applications.

[0074] Optionally, according to the identifier, determining the uninstaller of the target application from the local installation registry includes: obtaining the installation registry, wherein the installation registry includes software information of multiple applications installed locally, and the software information includes a save path of the application's uninstaller; according to the identifier, searching the installation registry for target software information of the corresponding target application; obtaining a target save path of the uninstaller of the target application according to the target software information; and obtaining the uninstaller of the target application according to the target save path.

[0075] Optionally, parsing the uninstaller and determining the packaging tool corresponding to the uninstaller includes: parsing the executable file of the uninstaller through a parsing tool to obtain a resource table of the executable file; searching for assembly information of the executable file at a preset location in the resource table; obtaining a target field in the assembly information, wherein the target field is used to represent the packaging tool of the uninstaller; and determining the packaging tool corresponding to the uninstaller based on the target field.

[0076] It should be noted that this embodiment also provides an optional implementation, which is described in detail below.

[0077] This implementation method proposes to effectively improve the efficiency of software maintenance and improve the standardization and security of enterprise software use through software non-perception management technology. Software non-perception management technology mainly includes silent installation and silent uninstallation of software. Silent operation mainly parses the software packaging type and executes according to the corresponding silent parameters, which can be applied to most computer applications.

[0078] This implementation can improve the efficiency of enterprise software maintenance. Administrators can operate software in batches, silently, or even forcibly through commands, which greatly improves the efficiency of software maintenance and saves time and labor costs. It also ensures the safety and standardization of software use. For non-standard and unsafe software, administrators can perform silent uninstall operations on them. For software that is uniformly specified by the enterprise or confirmed to be safe, it can be silently installed to achieve the purpose of non-perception control of terminal software.

[0079] The use mode of this embodiment is relatively flexible. It can be used in independent terminals to realize batch operation of terminal software and improve efficiency. It can also be managed in a unified manner in a server-client mode, with the administrator controlling the installation and uninstallation of the software and managing batch terminals without user intervention, thus realizing unattended installation and uninstallation.

[0080] The specific details are as follows: 1. Software packaging type and silent parameters.

[0081] Whether it is an installation package or an uninstaller, if the executable file is packaged in the standard type in the table below, there will be corresponding silent parameters. The silent parameters corresponding to each packaging type are fixed. Users can run the program according to the corresponding parameters or parameter combinations as needed. Common packaging types and corresponding silent parameters are shown in Table 1 below. Table 1 is the silent parameter registry:

[0082] Table 1 Silent parameter registration table

[0083]

[0084]

[0085] 2. Confirm software installation information

[0086] The locally installed software information is saved in the registry under "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall", "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall", "HKEY_USERS\***\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" or "HKEY_CURRENT_USER\***\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall", and the UninstallString key value is the path of the software uninstaller. In practice, UninstallString may already contain some parameters or other information. For example, if UninstallString is "C:\Users\test\AppData\Roaming\Tencent\QQMicroGameBox\1.2.4.3\Uninstall.exe"1101070761", you need to sort out the uninstall information, split UninstallString by spaces, delete "1101070761", and get the path of the real uninstall program "Uninstall.exe".

[0087] 3. PE file information search

[0088] PE files have a resource table. The resource ID 24 in the resource table is the information of the software manifest. The manifest is an XML structure, and the "description" field indicates the packaging tool used by the program. The manifest information of a certain software is as follows. The packaging tool is "Nullsoft Install System", corresponding to Table 1. The silent parameter is " / S", and the specific code is as follows:

[0089]

[0090] According to the above steps, the silent parameters of a software can be basically determined, such as " / s", " / quiet", " / S", " / qn", etc. The executable program can be run with these parameters to achieve the silent effect.

[0091] Take batch software installation as an example. Assume that an enterprise has 200 terminals that need to install a certain software. The software needs to be operated by clicking "Next" on the interface. It takes 1 minute to fully install a software. Generally, there are the following solutions for installing software:

[0092] A) End-user assisted execution: The administrator distributes the software to the end-users, and each user installs it manually. This solution requires the cooperation of 200 end-users, and there is no guarantee that everyone will cooperate in the installation.

[0093] B) The administrator completes the installation independently. It takes at least 200 minutes for one administrator to install 200 terminals. This is very time-consuming.

[0094] If batch silent installation is used, the administrator only needs to send the software in batches, and the user does not need to operate. This technology can parse the installation program sent by the administrator, obtain the manifest information of the installation program, find the software packaging type information and match the corresponding silent parameters. The terminal software is executed according to the silent parameters to achieve the effect of silent software installation. It only takes about 1 minute to fully install 200 terminals, which greatly reduces time and labor costs.

[0095] Take software uninstallation as an example. If it is found that some terminals have installed software that is prohibited by the enterprise, the uninstallation needs to be performed manually. The normal process cannot guarantee that every terminal will fully cooperate with the execution. If silent uninstallation is used, the administrator can send the software name to be uninstalled without the user's perception. The terminal finds the corresponding software installation information in the registry according to the software name. The installation information contains the software uninstallation program path. This technology can parse the uninstallation program packaging method and the corresponding silent parameters to achieve the effect of silent uninstallation, complete the software uninstallation, and ensure the standardization of software use.

[0096] Figure 4 is a flowchart of silent installation and uninstallation according to an embodiment of the present invention, such as Figure 4 As shown, the specific steps of the software silent installation / uninstallation process are as follows:

[0097] S01: Parse the PE structure of the software installation package, obtain the software packaging type through the description field of the manifest in the resource table, and then determine the silent parameters of the software ( / s, / quiet, / qn, / S, etc.) according to the silent parameter comparison table in Table 1.

[0098] S02: If it is the standard packaging type and parameters in Table 1, execute according to the silent parameters in the table.

[0099] S03: If it is not a known packaging type, try to execute it with " / s" as the parameter. According to practice, some unknown types of software can be installed silently with this parameter.

[0100] S04: According to the registry location in Table 1, the installation information of a certain software is obtained, and the UninstallString is taken to obtain the path of the uninstaller, and then the corresponding silent parameters are obtained by parsing the PE structure of the uninstaller (same as S01).

[0101] Figure 5 is a schematic diagram of a processing device according to an embodiment of the present invention, such as Figure 5 As shown, according to another aspect of an embodiment of the present invention, a device for processing an application is provided, including: a first receiving module 52, a first parsing module 54, a first traversal module 56 and a processing module 58. The device is described in detail below.

[0102] The first receiving module 52 is used to receive a processing instruction of a target application, wherein the processing instruction is used to process the target application according to a processing procedure, and the processing instruction includes the processing procedure of the target application or an identifier of the processing procedure; the first parsing module 54 is connected to the above-mentioned first receiving module 52, and is used to obtain the processing procedure according to the processing instruction, and parse it to determine the packaging tool corresponding to the processing procedure, wherein the packaging tool is used to package the program files of the processing procedure; the first traversal module 56 is connected to the above-mentioned first parsing module 54, and is used to traverse preset silent parameters according to the packaging tool to determine the silent parameters of the packaging tool, wherein the silent parameters include multiple packaging tools and silent parameters corresponding to the packaging tools; the processing module 58 is connected to the above-mentioned first traversal module 56, and is used to execute the silent parameters through the processing procedure to perform silent processing on the target application.

[0103] Through the above-mentioned device, a processing instruction of a target application is received, wherein the processing instruction is used to process the target application according to a processing program, and the processing instruction includes a processing program of the target application or an identifier of the processing program; the processing program is obtained according to the processing instruction, and is parsed to determine a packaging tool corresponding to the processing program, wherein the packaging tool is used to package the program file of the processing program; according to the packaging tool, preset silent parameters are traversed to determine the silent parameters of the packaging tool, wherein the silent parameters include multiple packaging tools and silent parameters corresponding to the packaging tools; the target application is silently processed by executing the silent parameters through the processing program, by determining the packaging tool of the processing program of the processing instruction, and setting the silent parameters according to the silent parameters corresponding to the packaging tool when the processing program is processed, so as to achieve the purpose of automatically triggering silent processing and automatically adopting a silent mode for processing when processing, thereby realizing the technical effect of improving the silent automation of application processing, automatically performing silent processing such as installation and uninstallation, and achieving user-unaware processing, thereby solving the technical problem that it is difficult to achieve a completely silent effect and user-unaware processing in traditional application installation / uninstallation and other processing methods in related technologies.

[0104] Figure 6 is a schematic diagram of an installation device according to an embodiment of the present invention. Figure 6 As shown, according to another aspect of an embodiment of the present invention, there is also provided an application installation device, including: a second receiving module 62, a second parsing module 64, a second traversal module 66 and an installation module 68. The device is described in detail below.

[0105] The second receiving module 62 is used to receive the installation instruction of the target application, wherein the installation instruction includes the installation program of the target application; the second parsing module 64, connected to the above-mentioned second receiving module 62, is used to parse the installation program and determine the packaging tool corresponding to the installation program; the second traversal module 66, connected to the above-mentioned second parsing module 64, is used to traverse the preset silent parameters according to the packaging tool to determine the silent parameters of the packaging tool, wherein the silent parameters include multiple packaging tools and silent parameters corresponding to the packaging tools; the installation module 68, connected to the above-mentioned second traversal module 66, is used to execute the silent parameters through the installation program to silently install the target application.

[0106] Through the above-mentioned device, an installation instruction of a target application is received, wherein the installation instruction includes an installation program of the target application; the installation program is parsed to determine a packaging tool corresponding to the installation program; according to the packaging tool, preset silent parameters are traversed to determine the silent parameters of the packaging tool, wherein the silent parameters include multiple packaging tools and silent parameters corresponding to the packaging tools; the target application is silently installed by executing the silent parameters through the installation program, by determining the packaging tool of the installation program of the installation instruction, and according to the silent parameters corresponding to the packaging tool, when the installation program is installed, the silent parameters are set, thereby achieving the purpose of automatically triggering silent installation and automatically installing in silent mode during installation, thereby achieving the technical effect of improving the silent automation of application installation, automatically performing silent installation, and achieving user-imperceptible installation, thereby solving the technical problem in the related technology that it is difficult to achieve a completely silent effect and user-imperceptible installation during traditional application installation.

[0107] Figure 7 is a schematic diagram of an application uninstallation device according to an embodiment of the present invention, such as Figure 7 As shown, according to another aspect of an embodiment of the present invention, there is also provided an application uninstallation device, including: a third receiving module 70, a determination module 72, a third parsing module 74, a third traversal module 76 and an uninstallation module 78. The device is described in detail below.

[0108] The third receiving module 70 is used to receive an uninstall instruction of a target application, wherein the uninstall instruction includes an identifier of the target application; the determining module 72 is connected to the third receiving module 70, and is used to determine an uninstaller of the target application from a local installation registry according to the identifier; the third parsing module 74 is connected to the determining module 72, and is used to parse the uninstaller and determine a packaging tool corresponding to the uninstaller; the third traversal module 76 is connected to the third parsing module 74, and is used to traverse preset silent parameters according to the packaging tool and determine the silent parameters of the packaging tool, wherein the silent parameters include multiple packaging tools and silent parameters corresponding to the packaging tools; the uninstalling module 78 is connected to the third traversal module 76, and is used to silently uninstall the target application by executing the silent parameters through the uninstaller.

[0109] Through the above-mentioned device, an uninstall instruction of a target application is received, wherein the uninstall instruction includes an identifier of the target application; according to the identifier, an uninstaller of the target application is determined from a local installation registry; the uninstaller is parsed to determine a packaging tool corresponding to the uninstaller; according to the packaging tool, preset silent parameters are traversed to determine the silent parameters of the packaging tool, wherein the silent parameters include multiple packaging tools and silent parameters corresponding to the packaging tools; the target application is silently uninstalled by executing the silent parameters through the uninstaller, the uninstaller is obtained by the uninstaller identifier of the uninstall instruction, and the uninstaller is parsed to determine the packaging tool of the uninstaller, and according to the silent parameters corresponding to the packaging tool, when the uninstaller is uninstalled, the silent parameters are set, so as to achieve the purpose of automatically triggering silent uninstallation and automatically uninstalling in a silent manner when uninstalling, thereby achieving the technical effect of improving the silent automation of application uninstallation, automatically performing silent uninstallation, and achieving user-unconscious uninstallation, thereby solving the technical problem that it is difficult to achieve a completely silent effect and user-unconscious uninstallation in traditional application uninstallation in related technologies.

[0110] According to another aspect of an embodiment of the present invention, a processor is further provided, and the processor is used to run a program, wherein any one of the above methods is executed when the program is run.

[0111] According to another aspect of an embodiment of the present invention, a computer storage medium is provided, the computer storage medium including a stored program, wherein when the program is running, the device where the computer storage medium is located is controlled to execute any one of the above methods.

[0112] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0113] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0114] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0115] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0116] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0117] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

[0118] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A method for processing an application, characterized in that: include: receiving a processing instruction of a target application, wherein the processing instruction is used to process the target application according to a processing procedure, and the processing instruction includes the processing procedure of the target application or an identifier of the processing procedure; The processing program is obtained according to the processing instruction, and is parsed to determine a packaging tool corresponding to the processing program, wherein the packaging tool is used to package the program file of the processing program; according to the packaging tool, preset silent parameters are traversed to determine the silent parameters of the packaging tool, wherein the silent parameters include multiple packaging tools and silent parameters corresponding to the packaging tools; The silent parameters are executed by the processing program to perform silent processing on the target application; before traversing the preset silent parameters according to the packaging tool and determining the silent parameters of the packaging tool, the application processing method also includes: determining multiple packaging tools and silent parameters corresponding to the packaging tools, wherein the silent parameters include at least one of the following: silent parameter identifiers, silent processing instructions, and silent processing programs; creating a table to store the silent parameters according to the multiple packaging tools and the silent parameters corresponding to the packaging tools; The step of parsing the processing program and determining the packaging tool corresponding to the processing program includes: parsing the executable file of the processing program by a parsing tool to obtain a resource table of the executable file; searching for assembly information of the executable file at a preset position in the resource table; obtaining a target field in the assembly information, wherein the target field is used to represent the packaging tool of the processing program; and determining the packaging tool corresponding to the processing program according to the target field; The method also includes: if the packaging tool of the processing program is not found in the silent parameters, obtaining a target silent parameter, wherein the target silent parameter is one of multiple silent parameters corresponding to multiple packaging tools in the silent parameters; and executing the target silent parameter according to the processing program to process the target application.

2. The method according to claim 1, characterized in that: After creating a table according to the plurality of packaging tools and the silent parameters corresponding to the packaging tools to store the silent parameters, the method further includes: receiving a modification instruction for the silent parameter, wherein the modification instruction is used to add or delete the packaging tools and the silent parameters corresponding to the packaging tools in the table, and the modification instruction is also used to modify the silent parameters of the packaging tools; In response to the modification instruction, the packaging tools and the silent parameters corresponding to the packaging tools in the table are added or deleted, or the silent parameters of the packaging tools in the table are modified.

3. The method according to claim 1, characterized in that Acquiring the processing program according to the processing instruction, parsing it, and determining that the packaging tool corresponding to the processing program includes: When the processing instruction includes the processing program, directly obtaining the processing program; In a case where the processing instruction does not include an identifier of the processing program, searching for a storage path of the processing program according to the identifier, and acquiring the processing program according to the storage path; The processing program is parsed to determine a packaging tool corresponding to the processing program.

4. A method for installing an application, characterized in that: include: Receiving an installation instruction of a target application, wherein the installation instruction includes an installation program of the target application; parsing the installation program to determine a packaging tool corresponding to the installation program; According to the packaging tool, traverse preset silent parameters to determine the silent parameters of the packaging tool, wherein the silent parameters include multiple packaging tools and silent parameters corresponding to the packaging tools; execute the silent parameters through the installation program to silently install the target application; Before traversing preset silent parameters according to the packaging tool and determining the silent parameters of the packaging tool, the application installation method further includes: determining multiple packaging tools and silent parameters corresponding to the packaging tools, wherein the silent parameters include at least one of the following: silent parameter identifiers, silent processing instructions, and silent processing programs; creating a table to store the silent parameters according to the multiple packaging tools and the silent parameters corresponding to the packaging tools; Wherein, parsing the installer and determining the packaging tool corresponding to the installer comprises: parsing the executable file of the installer by a parsing tool to obtain a resource table of the executable file; searching for assembly information of the executable file at a preset position in the resource table; obtaining a target field in the assembly information, wherein the target field is used to represent the packaging tool of the installer; and determining the packaging tool corresponding to the installer according to the target field; The method further includes: when the packaging tool of the installer is not found in the silent parameters, obtaining target silent parameters, wherein the target silent parameters are one of multiple silent parameters corresponding to multiple packaging tools in the silent parameters; and installing the target application according to the installer by executing the target silent parameters.

5. A method for uninstalling an application, characterized in that: include: Receiving an uninstall instruction of a target application, wherein the uninstall instruction includes an identifier of the target application; determining an uninstall program of the target application from a local installation registry according to the identifier; parsing the uninstall program to determine a packaging tool corresponding to the uninstall program; According to the packaging tool, traverse the preset silence parameters to determine the silence parameters of the packaging tool, wherein the silence parameters include multiple packaging tools and silence parameters corresponding to the packaging tools; The target application is silently uninstalled by executing the silent parameter through the uninstallation program; before traversing the preset silent parameters according to the packaging tool and determining the silent parameters of the packaging tool, the application uninstallation method further includes: determining multiple packaging tools and silent parameters corresponding to the packaging tools, wherein the silent parameters include at least one of the following: silent parameter identifiers, silent processing instructions, and silent processing programs; creating a table to store the silent parameters according to the multiple packaging tools and the silent parameters corresponding to the packaging tools; Wherein, parsing the uninstaller and determining the packaging tool corresponding to the uninstaller includes: parsing the executable file of the uninstaller by a parsing tool to obtain a resource table of the executable file; searching for assembly information of the executable file at a preset position in the resource table; obtaining a target field in the assembly information, wherein the target field is used to represent the packaging tool of the uninstaller; and determining the packaging tool corresponding to the uninstaller according to the target field; The method also includes: if the packaging tool of the uninstaller is not found in the silent parameters, obtaining a target silent parameter, wherein the target silent parameter is one of multiple silent parameters corresponding to multiple packaging tools in the silent parameters; and executing the target silent parameter according to the uninstaller to uninstall the target application.

6. The method according to claim 5, characterized in that Determining the uninstaller of the target application from the local installation registry according to the identifier includes: Acquire the installation registry, wherein the installation registry includes software information of multiple applications installed locally, and the software information includes a save path of an uninstaller of the application; According to the identifier, searching the installation registry for target software information of the corresponding target application; Acquire a target saving path of an uninstallation program of the target application according to the target software information; Obtain an uninstaller of the target application according to the target save path.

7. A processor, characterized in that: The processor is used to run a program, wherein the program executes the method according to any one of claims 1 to 6 when running.

Citation Information

Patent Citations

  • Intelligent dynamic deployment and unloading method of surveying and mapping image data processing software

    CN109298868A

  • Software code packaging and deploying method, device and equipment and storage medium

    CN111611008A

  • Method and device for silently uninstalling software

    CN112162763A