CN114706772A - Installation environment detection method, device, equipment and storage medium - Google Patents

Installation environment detection method, device, equipment and storage medium Download PDF

Info

Publication number
CN114706772A
CN114706772A CN202210339667.9A CN202210339667A CN114706772A CN 114706772 A CN114706772 A CN 114706772A CN 202210339667 A CN202210339667 A CN 202210339667A CN 114706772 A CN114706772 A CN 114706772A
Authority
CN
China
Prior art keywords
installation
detection
software
target
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210339667.9A
Other languages
Chinese (zh)
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.)
Hozon New Energy Automobile Co Ltd
Original Assignee
Hozon New Energy Automobile 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 Hozon New Energy Automobile Co Ltd filed Critical Hozon New Energy Automobile Co Ltd
Priority to CN202210339667.9A priority Critical patent/CN114706772A/en
Publication of CN114706772A publication Critical patent/CN114706772A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses an installation environment detection method, which is applied to a detection client running in a target terminal and comprises the following steps: receiving an installation environment detection instruction aiming at target software; inquiring the installation requirement information of the target software through the server; acquiring current environment information of a target terminal; and comparing the current environment information with the installation requirement information to determine whether the current environment of the target terminal meets the installation requirement of the target software. By applying the technical scheme provided by the application, the installation requirement information of the target software can be accurately acquired, so that whether the current environment of the target terminal meets the installation requirement of the target software can be accurately determined, an important basis is provided for whether the software can be installed in the terminal, the error probability of software installation can be reduced, the installation power of the software is improved, and the influence on the normal operation of a user is avoided. The application also discloses an installation environment detection device, equipment and a computer readable storage medium, and the device and the equipment have corresponding technical effects.

Description

Installation environment detection method, device, equipment and storage medium
Technical Field
The present application relates to the field of computer application technologies, and in particular, to a method, an apparatus, a device, and a storage medium for detecting an installation environment.
Background
With the rapid development of computer technology and terminal technology, the higher the frequency of using terminals such as desktop computers, notebook computers, mobile phones, etc., the higher the frequency of using terminals, the more important tools for people to work and live. Many enterprises and public institutions provide office terminals for employees, and software required by offices, such as professional design software, professional data processing software and the like, can be installed in the terminals. Generally, the software has high requirements for installation environment, and if the environment of the terminal does not meet the installation requirements of the software, the software is easily installed and fails to be used normally. Moreover, after the first installation of some software on the terminal fails, the probability of errors in reinstallation is also high. The normal operation of the user is seriously influenced.
Therefore, how to reduce the error probability of software installation and improve the installation power of software is a technical problem which needs to be solved urgently by those skilled in the art at present.
Disclosure of Invention
The application aims to provide an installation environment detection method, an installation environment detection device, installation environment detection equipment and a storage medium, so that the error probability of software installation is reduced, the installation power of software is improved, and the influence on the normal operation of a user is avoided.
In order to solve the technical problem, the application provides the following technical scheme:
an installation environment detection method is applied to a detection client running in a target terminal, and comprises the following steps:
receiving an installation environment detection instruction aiming at target software, wherein the target software is software to be installed in the target terminal;
inquiring the installation requirement information of the target software through a server;
acquiring current environment information of the target terminal;
and comparing the current environment information with the installation requirement information to determine whether the current environment of the target terminal meets the installation requirement of the target software.
In a specific embodiment of the present application, the querying, by a server, the installation requirement information of the target software includes:
sending a query request aiming at the installation requirement of the target software to a server according to a preset access address;
and receiving a query result returned by the server, wherein the query result carries the installation requirement information of the target software.
In a specific embodiment of the present application, the acquiring current environment information of the target terminal includes:
and acquiring the current environment information of the target terminal corresponding to the installation requirement information according to the installation requirement information of the target software.
In a specific embodiment of the present application, the detection client is: and downloading a detection tool package to the target terminal at the server side, and starting the client side after the target terminal runs the detection tool executable file in the detection tool package.
In a specific embodiment of the present application, the comparing the current environment information with the installation requirement information to determine whether the current environment of the target terminal meets the installation requirement of the target software includes:
comparing each detection item included in the current environment information with the corresponding installation requirement in the installation requirement information to obtain a detection result of each detection item;
and determining whether the current environment of the target terminal meets the installation requirement of the target software or not according to the detection result of each detection item.
In a specific embodiment of the present application, the determining whether the current environment of the target terminal meets the installation requirement of the target software according to the detection result of each detection item includes:
and if the detection result of the at least one detection item is that the detection is failed, determining that the current environment of the target terminal does not meet the installation requirement of the target software.
In a specific embodiment of the present application, after the determining whether the current environment of the target terminal meets the installation requirement of the target software, the method further includes:
and outputting and displaying a final detection result, wherein the final detection result comprises a detection result of each detection item and/or a detection result of whether the current environment of the target terminal meets the installation requirement of the target software.
In a specific embodiment of the present application, in a case that it is determined that the current environment of the target terminal meets the installation requirement of the target software, the method further includes:
downloading and saving the installation medium of the target software, so as to install the target software on the target terminal by using the installation medium of the target software.
In a specific embodiment of the present application, the current environment information includes at least one of software configuration information, hardware configuration information, system permission information, and network environment information of the target terminal.
An installation environment detection apparatus applied to a detection client operating in a target terminal, the installation environment detection apparatus comprising:
the detection instruction receiving module is used for receiving an installation environment detection instruction aiming at target software, and the target software is software to be installed in the target terminal;
the installation requirement information inquiry module is used for inquiring the installation requirement information of the target software through a server;
the current environment information acquisition module is used for acquiring the current environment information of the target terminal;
and the result judging module is used for comparing the current environment information with the installation requirement information and determining whether the current environment of the target terminal meets the installation requirement of the target software.
An installation environment detection apparatus comprising:
a memory for storing a computer program;
and a processor for implementing the steps of the installation environment detection method when executing the computer program.
A computer-readable storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of the installation environment detection method described above.
A computer program product comprising computer instructions stored in a computer readable storage medium and adapted to be read and executed by a processor to cause a computer device having the processor to perform the installation environment detection method described above.
By applying the technical scheme provided by the embodiment of the application, the detection client running in the target terminal inquires the installation requirement information of the target software through the server after receiving the installation environment detection instruction aiming at the target software, and compares the current environment information with the installation requirement information after acquiring the current environment information of the target terminal to determine whether the current environment of the target terminal meets the installation requirement of the target software. The detection client side can accurately acquire the installation requirement information of the target software through interaction with the server side, so that whether the current environment of the target terminal meets the installation requirement of the target software can be accurately determined, an important basis is provided for installing the software in the terminal, the error probability of software installation can be reduced, the installation power of the software is improved, and the influence on the normal operation of a user is avoided.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
In order to more clearly illustrate the embodiments of the present application 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, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow chart of an implementation of a method for detecting an installation environment in an embodiment of the present application;
FIG. 2 is a diagram illustrating an embodiment of an installation environment detection process;
FIG. 3 is a diagram illustrating a final detection result output in an embodiment of the present application;
FIG. 4 is a schematic structural diagram of an installation environment detection apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an installation environment detection device in an embodiment of the present application.
Detailed Description
In order that those skilled in the art will better understand the disclosure, the following detailed description will be given with reference to the accompanying drawings. It should be apparent that the described embodiments are only a few embodiments of the present application, and not all embodiments. 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 application.
The core of the application is to provide an installation environment detection method, which can be applied to a detection client running in a target terminal. The target terminal can be a desktop computer, a notebook computer, a mobile phone, a tablet computer and other terminals. The detection client can run in the target terminal and interact with the server. After receiving an installation environment detection instruction for target software, the detection client inquires installation requirement information of the target software through the server, and after acquiring current environment information of the target terminal, compares the current environment information with the installation requirement information to determine whether the current environment of the target terminal meets the installation requirement of the target software. The detection client side can accurately acquire the installation requirement information of the target software through interaction with the server side, so that whether the current environment of the target terminal meets the installation requirement of the target software can be accurately determined, an important basis is provided for installing the software in the terminal, the error probability of software installation can be reduced, the installation power of the software is improved, and the influence on the normal operation of a user is avoided.
Referring to fig. 1, there is shown a flowchart for implementing an installation environment detection method provided in the embodiment of the present application, where the method may include the following steps:
s110: an installation environment detection instruction for the target software is received.
The target software is software to be installed in the target terminal.
In the embodiment of the application, the target software is software to be installed in the target terminal, and may be professional design software, professional data processing software, and the like. The user can install the target software in the target terminal according to actual requirements, and before the target software is installed, an installation environment detection instruction aiming at the target software can be sent to the detection client side so that the detection client side can detect the installation environment of the target terminal.
Specifically, the detection client may provide a human-computer interaction interface for the user, and the user may input a name of the target software to be installed in the target terminal through the human-computer interaction interface, and after receiving the name of the target software input by the user, the detection client considers that an installation environment detection instruction for the target software is received. Or the detection client can display the names of the software supporting the installation environment detection through the human-computer interaction interface, the user selects the name of the target software to be installed in the target terminal according to the requirement, and after the name of the target software selected by the user is received, the user can think that the installation environment detection instruction aiming at the target software is received.
It should be noted that, if the software that the detection client supports the installation environment detection is only the target software, after receiving the start instruction of the user, it may be considered that the installation environment detection instruction for the target software is received.
After receiving the installation environment detection instruction for the target software, the operation of the subsequent steps can be continuously executed.
S120: and inquiring the installation requirement information of the target software through the server.
It can be understood that some software, especially professional software, such as professional design software, professional data processing software, etc., have certain requirements for installation environments, and the software can be successfully installed in the terminal only if the current environment of the terminal meets the installation requirements of the software. The requirements of different software for the installation environment may be the same or different.
The installation requirement information of various software can be obtained in advance by official release information of the software or a supplier of the software and stored at a server. Specifically, the configuration file may be stored in the configuration file of the server. The installation requirement information of each piece of software may include requirements for software configuration, requirements for hardware configuration, requirements for system authority, requirements for network environment, and the like.
After receiving the installation environment detection instruction aiming at the target software, the detection client can interact with the server, and the server inquires the installation requirement information of the target software.
The installation requirement information of the target software is stored at the server, so that the update of the version of the target software is facilitated, and when the installation requirement information changes, the corresponding installation requirement information can be updated in time at the server, so that when the detection client receives the installation environment detection instruction aiming at the target software, the latest installation requirement information of the target software can be inquired through the server, and the basic guarantee is provided for the accuracy of the detection of the installation environment.
S130: and acquiring the current environment information of the target terminal.
In the embodiment of the application, the detection client can acquire the current environment information of the target terminal after receiving the installation environment detection instruction for the target software. The current environment information may include at least one of software configuration information, hardware configuration information, system authority information, and network environment information of the target terminal. The software configuration information may include browser type and version, browser setting, JAVA (computer programming language) version, operating system,. NET Framework (code programming model), etc., the hardware configuration information may include available memory size, video card memory and driver version, CPU (central processing unit), hard disk capacity, etc., the system permission information may include administrator permission, etc., and the network environment information may include network bandwidth and delay, firewall, etc.
Specifically, the detection client may obtain the current environment information of the target terminal by reading the system attribute and the configuration information of the target terminal or by calling a third-party class library.
The following is a specific example of a current environment information acquisition manner of the target terminal:
for the memory information, the memory information can be obtained by using a getMem method of a near class in a near class library;
for the display card information, if the target terminal is a windows 10 operating system, the command dxdiag/t dxdiag.txt can be executed first, and then the file dxdiag.txt is processed to obtain the display card information, if the target terminal is a windows 7 operating system, the command is slightly different, the display card information can be obtained by executing the command dxdiag \ tdxdiag.txt first and then the file dxdiag.txt is processed, and it needs to be noted that the dxdiag.txt file is generated under a root directory of a disk C;
for CPU information, the CPU information can be obtained by using a getCpuInfoList method of a Sigar class in a third-party class library sigar.jar;
for the disk space information, the method can be used for obtaining getFileSystemList and getFileSystemusage of the Sigar class in the third-party class library sigar.jar;
for operating system information, all system attributes can be acquired through system.
For the administrator authority information, whether the group of the current user contains the administrator group "administerrates" or not can be queried by executing the windows command "WHOAMI/GROUPS";
for network bandwidth and delay information, an iperf tool with corresponding versions can be deployed at a server and a detection client respectively by using the iperf tool, after the iperf tool is deployed at the server, a command 'iperf 3-s-D' is executed, the server can monitor 5201 ports all the time in a daemon process mode, and after the iperf tool is deployed at the detection client, a command 'iperf 3-c 47.103.32.103-p 5201-i 2-t 10-f M' is executed to connect the server and send data, so that network bandwidth and delay information are obtained;
for firewall port information, all firewall rules can be inquired by executing a windows command 'netsh advfirewall firewall tile name ═ all status ═ enabled', and then the result is processed to obtain the available condition of the specified port;
for the browser version information, if it is IE (Internet Explorer, a web browser), it can be obtained by querying the registry by executing the following windows command:
reg query“HKLM\SOFTWARE\Microsoft\Internet Explorer”/v svcUpdate Version;
if it is Firefox (a type of web browser), it can be obtained by querying the registry by executing the following windows command:
reg query“HKEY_LOCAL_MACHINE\Software\WOW6432Node\Mozilla”/s/v CurrentVersion;
reg query“HKEY_CURRENT_USER\Software\Mozilla”/s/v Current Version;
reg query“HKEY_LOCAL_MACHINE\Software\Mozilla”/s/v Current Version;
if it is Chrome (a web browser), it can be obtained by executing the following windows command to query the registry:
reg query“HKEY_CURRENT_USER\Software\Google\Chrome\BLBeacon”/s/v version;
for the browser setting information, for example, the Enable Enhanced Protected Mode may be obtained by executing the following command to obtain a value of Isolation in the registry, and if the value is PMIL, the Enable Enhanced Protected Mode is disabled (disable), and if the value is PMEM, the Enable Enhanced Protected Mode is enabled (Enable):
reg query“HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\”/v Isolation;
as with TLS (Transport Layer Security), this may be achieved by querying the registry value with a windows command, indicating TLS1.2 enabled (enable) if the value is 2048 or greater, and TLS1.2 disabled (disable) if the value is 2048 or less:
reg query“HKEY_CURRENT_USER\Software\Microsoft\Windows\Current Version\Internet Settings”/v SecureProtocols;
for JAVA version information, it can be obtained by querying the registry by executing the following windows command:
reg query“HKEY_LOCAL_MACHINE\Software\JavaSoft\Java Development Kit”/s/v CurrentVersion;
for the network frame information, it can be obtained by executing the following windows command query registry:
reg query“HKEY_LOCAL_MACHINE\Software\Microsoft\NET Framework setup\NDP”。
it should be noted that, the above-mentioned manner for acquiring the current environment information of the target terminal is only a specific example, and in practical application, the corresponding information may be acquired through other manners according to practical situations, which is not limited in this embodiment of the present application.
In addition, in the embodiment of the present application, the execution sequence of step S120 and step S130 is not limited, and the operation of step S120 and then step S130 may be executed first, or the operation of step S130 and then step S120 may be executed first, or the operations of step S120 and step S130 may be executed simultaneously.
S140: and comparing the current environment information with the installation requirement information to determine whether the current environment of the target terminal meets the installation requirement of the target software.
In the embodiment of the application, after an installation environment detection instruction for target software is received, the installation requirement information of the target software is inquired through the server, and the current environment information of the target terminal is obtained, the current environment information and the installation requirement information can be compared, and whether the current environment of the target terminal meets the installation requirement of the target software or not can be determined according to a comparison result. For example, the installation requirement information of the target software inquired by the server includes that the bandwidth is greater than 4Mb/s and the delay is less than 350ms, the acquired current environment information of the target terminal includes that the bandwidth is 100Mb/s and the delay is within a range of (100ms, 200ms), and the comparison shows that both the bandwidth and the delay in the current environment of the target terminal can meet the corresponding installation requirement of the target software.
By applying the method provided by the embodiment of the application, the detection client running in the target terminal inquires the installation requirement information of the target software through the server after receiving the installation environment detection instruction aiming at the target software, and compares the current environment information with the installation requirement information after acquiring the current environment information of the target terminal to determine whether the current environment of the target terminal meets the installation requirement of the target software. The detection client side can accurately acquire the installation requirement information of the target software through interaction with the server side, so that whether the current environment of the target terminal meets the installation requirement of the target software can be accurately determined, an important basis is provided for whether the software can be installed in the terminal, the error probability of software installation can be reduced, the installation power of the software is improved, and the influence on the normal operation of a user is avoided.
In an embodiment of the present application, querying, by a server, installation requirement information of target software may include the following steps:
the method comprises the following steps: sending a query request aiming at the installation requirement of the target software to a server according to a preset access address;
step two: and receiving a query result returned by the server, wherein the query result carries the installation requirement information of the target software.
For convenience of description, the above two steps are combined for illustration.
In the embodiment of the present application, the access address of the installation requirement information of each software stored in the server may be preset. For example, the installation requirement information of each software may be stored in the configuration file of the server, and the access address may be an access address of the configuration file of the server. Suppose the configuration file of the server is named: properties, stored in a DocumentRoot path of a server, and accessible through a URL (Uniform Resource Locator) like the following: https://192.168.100.130/checktool/config.
The access addresses of the server and the configuration file of the server can be saved in the configuration file of the detection client, and the detection client can obtain the access addresses through the local configuration file, so that a query request aiming at the installation requirement of the target software can be sent to the server according to the access addresses.
After receiving a query request for the installation requirement of the target software sent by the detection client, the server may query the installation requirement information of the target software in a configuration file of the server. Specifically, the corresponding installation requirement information may be queried according to the identifier of the target software.
The detection client can receive a query result returned by the server, wherein the query result carries installation requirement information of the target software. Thus, the detection client obtains the installation requirement information of the target software.
The detection client sends a query request aiming at the installation requirement of the target software to the server according to the preset access address, the server performs corresponding query, and returns a query result, so that the accuracy of the query result can be ensured. Once the target software is updated, the corresponding installation requirement of the target software may also be changed, so that the installation requirement information of the target software can be updated in time at the server, and the accurate result can be ensured by inquiring through the server.
Certainly, in practical application, the detection client can download the configuration file of the server to the local through interaction with the server when being started, and when receiving the installation environment detection instruction for the target software, the detection client can query the configuration file of the server downloaded to the local to obtain the installation requirement information of the target software, so that the dependence on the network can be reduced.
Fig. 2 is a schematic diagram illustrating a specific installation environment detection process in an embodiment of the present application, after receiving an installation environment detection instruction for target software, the local configuration file can be inquired first to obtain the access address of the configuration file of the server, according to the access address, a query request aiming at the installation requirement of the target software can be sent, and after the server receives the query request, inquiring the installation requirement information of the target software in the configuration file of the server, then returning an inquiry result which carries the installation requirement information of the target software, analyzing the inquiry result by the detection client to obtain the installation requirement information of the target software, meanwhile, the detection client can acquire the current environment information of the target terminal, and can determine whether the current environment of the target terminal meets the installation requirement of the target software or not based on the current environment information and the installation requirement information. Through interaction with the server, the installation requirement information of the target software is accurately obtained, and whether the current environment of the target terminal meets the installation requirement of the target software is further accurately determined.
In an embodiment of the present application, obtaining the current environment information of the target terminal may include the following steps:
and acquiring the current environment information of the target terminal corresponding to the installation requirement information according to the installation requirement information of the target software.
Different software corresponds to different installation requirements, the detection client acquires the installation requirement information of the target software after receiving the installation environment detection instruction aiming at the target software and inquiring the installation requirement information of the target software through the server, and the current environment information of the target terminal corresponding to the installation requirement information is acquired according to the installation requirement information of the target software, so that the acquisition of the current environment information of the target terminal is more targeted. That is, the installation requirement information of the target software includes what contents, and the current environment information corresponding to the contents is obtained correspondingly. For example, the installation requirement information of the target software includes a requirement for a memory, a requirement for a bandwidth, and a requirement for an operating system, and according to the installation requirement information of the target software, the current environment information of the target terminal corresponding to the installation requirement information may include memory information, bandwidth information, and operating system information, and may not be collected for other environment information of the target terminal. Therefore, the efficiency of acquiring the current environment information of the target terminal can be improved.
In one embodiment of the present application, the detection client may be: and downloading the detection tool package to the target terminal at the server side, and starting the client side after the target terminal runs the detection tool executable file in the detection tool package.
In the embodiment of the application, the core service class of the detection tool can be issued through a jar package, and the whole tool can be compressed into the detection tool package and stored in the server. The version number of the detection kit may be defined according to a preset definition rule, such as the definition rule being < main version number > < sub version number > < phase version number >. When the functional module is changed greatly, for example, a plurality of modules are added or the whole architecture is changed, the main version number can be updated; when the functions are increased or changed to a certain extent, such as functions of controlling the authority and adding a custom view, the sub-version number can be updated; the phase version number may be updated when there is Bug (Bug, error, etc.) fix or some small change. The server can store a plurality of version number detection toolkits.
The server side can download the detection tool package with the latest version, and after the detection tool package is downloaded to the target terminal, the target terminal can run the detection tool executable file in the detection tool package to start the detection client side. The detection tool executable file may be named: bat, the user may initiate the detection client by double-clicking on the file.
The detection client can operate without being installed on the target terminal, and the use by a user is facilitated.
In an embodiment of the present application, comparing the current environment information with the installation requirement information to determine whether the current environment of the target terminal meets the installation requirement of the target software may include the following steps:
the first step is as follows: comparing each detection item included in the current environment information with the corresponding installation requirement in the installation requirement information to obtain the detection result of each detection item;
the second step is that: and determining whether the current environment of the target terminal meets the installation requirement of the target software or not according to the detection result of each detection item.
For convenience of description, the above two steps are combined for illustration.
In the embodiment of the application, after the installation environment detection instruction for the target software is received, the installation requirement information of the target software is inquired through the server, and the current environment information of the target terminal is obtained, the current environment information and the installation requirement information can be further compared. The current environment information may include a plurality of detection items, such as detection items of an available memory size, a video memory and drive version of a video card, a CPU, a hard disk capacity, administrator rights, and the like. Each detection item corresponds to the installation requirement of the target software. Each detection item included in the current environment information may be compared with a corresponding installation requirement in the installation requirement information. For example, the CPU detection item included in the current environment information is compared with the installation requirement for the CPU in the installation requirement information.
As shown in table 1, for each detection item included in the current environment information of the target terminal and the corresponding installation requirement in the installation requirement information of the target software:
Figure BDA0003578555480000131
Figure BDA0003578555480000141
TABLE 1
It should be noted that the foregoing is only a specific example and is not intended to limit the embodiments of the present application.
After the comparison, the detection result of each detection item can be obtained. The detection result of each detection item can be two types, one type is that the detection item passes, which indicates that the corresponding detection item meets the installation requirement of the corresponding target software, and the other type is that the detection item fails, which indicates that the corresponding detection item does not meet the installation requirement of the corresponding target software. And determining whether the current environment of the target terminal meets the installation requirement of the target software or not according to the detection result of each detection item. After the detection result of each detection item is obtained, whether the current environment of the target terminal meets the installation requirement of the target software or not is determined according to the detection result of each detection item, and the accuracy of judgment can be improved.
Specifically, if the detection result of the at least one detection item is that the detection fails, it may be determined that the current environment of the target terminal does not meet the installation requirement of the target software. The installation requirement information of the target software is the minimum requirement information for ensuring the correct installation of the target software, if the detection result of at least one detection item is that the detection is failed, the current environment of the target terminal can be considered to not reach the minimum requirement for the correct installation of the target software, and if the target software is continuously installed in the target terminal, the probability of successful installation is low, and the current environment of the target terminal can be determined not to meet the installation requirement of the target software.
If the detection result of each detection item is passed, the current environment of the target terminal can be determined to meet the installation requirement of the target software, and the installation power for installing the target software on the target terminal is higher.
In an embodiment of the present application, after determining whether the current environment of the target terminal meets the installation requirement of the target software, the method may further include the steps of:
and outputting and displaying a final detection result, wherein the final detection result comprises a detection result of each detection item and/or a detection result of whether the current environment of the target terminal meets the installation requirement of the target software.
In the embodiment of the application, after determining whether the current environment of the target terminal meets the installation requirement of the target software, a final detection result can be output and displayed. And a browser in the target terminal can be called to output and display the final detection result, or the final detection result is output and displayed through a human-computer interaction interface.
The final detection result may include a detection result of each detection item, such as a pass detection result and a fail detection result, so as to facilitate a user to know the detection result of each detection item, and may also include a detection result of whether the current environment of the target terminal meets the installation requirement of the target software, so as to facilitate the user to perform further operations, such as determining whether to continue to install the target software, or whether to clean the current environment of the target terminal, so as to enable the current environment of the target terminal to meet the installation requirement of the target software.
As shown in fig. 3, for a schematic diagram of outputting the displayed final detection result, the detection result of whether the current environment of the target terminal meets the installation requirement of the target software is displayed at the top, and the current environment, the installation requirement, and the detection result corresponding to each detection item are displayed at the bottom.
In an embodiment of the present application, in the case that it is determined that the current environment of the target terminal meets the installation requirement of the target software, the method may further include the steps of:
and downloading and saving the installation medium of the target software so as to install the target software on the target terminal by using the installation medium of the target software.
In the embodiment of the application, in the case that the current environment of the target terminal is determined to meet the installation requirement of the target software, the installation medium of the target software can be downloaded and saved. Bat, which may include a download file of the installation medium of the target software in the tool directory of the detection client, may perform an operation of downloading the installation medium of the target software when the user double-clicks the file, or may automatically perform an operation of downloading the installation medium of the target software when it is determined that the current environment of the target terminal satisfies the installation requirement of the target software, and then store the installation medium of the target software obtained by downloading in a setting folder of the tool directory, such as a media folder. The target software can be installed at the target terminal using the installation medium of the target software.
Under the condition that the current environment of the target terminal meets the installation requirement of the target software, the installation medium of the target software is downloaded and stored, and the user does not need to download the installation medium of the target software through other ways, so that the installation efficiency of the target software can be improved.
Corresponding to the above method embodiment, the present application further provides an installation environment detection apparatus, which is applied to a detection client running in a target terminal, and the installation environment detection apparatus described below and the installation environment detection method described above may be referred to in correspondence.
Referring to fig. 4, the apparatus may include the following modules:
a detection instruction receiving module 410, configured to receive an installation environment detection instruction for target software, where the target software is software to be installed in a target terminal;
an installation requirement information query module 420, configured to query installation requirement information of the target software through a server;
a current environment information obtaining module 430, configured to obtain current environment information of the target terminal;
and the result judgment module 440 is configured to compare the current environment information with the installation requirement information, and determine whether the current environment of the target terminal meets the installation requirement of the target software.
By applying the device provided by the embodiment of the application, the detection client running in the target terminal inquires the installation requirement information of the target software through the server after receiving the installation environment detection instruction aiming at the target software, compares the current environment information with the installation requirement information after acquiring the current environment information of the target terminal, and determines whether the current environment of the target terminal meets the installation requirement of the target software. The detection client side can accurately acquire the installation requirement information of the target software through interaction with the server side, so that whether the current environment of the target terminal meets the installation requirement of the target software can be accurately determined, an important basis is provided for whether the software can be installed in the terminal, the error probability of software installation can be reduced, the installation power of the software is improved, and the influence on the normal operation of a user is avoided.
In one embodiment of the present application, the installation requirement information query module 420 is configured to:
sending a query request aiming at the installation requirement of the target software to a server according to a preset access address;
and receiving a query result returned by the server, wherein the query result carries the installation requirement information of the target software.
In a specific embodiment of the present application, the current environment information obtaining module 430 is configured to:
and acquiring the current environment information of the target terminal corresponding to the installation requirement information according to the installation requirement information of the target software.
In a specific embodiment of the present application, the detection client is: and downloading the detection tool package to the target terminal at the server side, and starting the client side after the target terminal runs the detection tool executable file in the detection tool package.
In a specific embodiment of the present application, the result determining module 440 is configured to:
comparing each detection item included in the current environment information with the corresponding installation requirement in the installation requirement information to obtain the detection result of each detection item;
and determining whether the current environment of the target terminal meets the installation requirement of the target software or not according to the detection result of each detection item.
In a specific embodiment of the present application, the result determining module 440 is configured to:
and if the detection result of the at least one detection item is that the detection is failed, determining that the current environment of the target terminal does not meet the installation requirement of the target software.
In an embodiment of the present application, the system further includes a result display module, configured to:
and after determining whether the current environment of the target terminal meets the installation requirement of the target software, outputting and displaying a final detection result, wherein the final detection result comprises a detection result of each detection item and/or a detection result whether the current environment of the target terminal meets the installation requirement of the target software.
In a specific embodiment of the present application, the system further includes an installation medium download saving module, configured to:
and under the condition that the current environment of the target terminal meets the installation requirement of the target software, downloading and storing the installation medium of the target software so as to install the target software on the target terminal by using the installation medium of the target software.
In a specific embodiment of the present application, the current environment information includes at least one of software configuration information, hardware configuration information, system permission information, and network environment information of the target terminal.
Corresponding to the above method embodiment, an embodiment of the present application further provides an installation environment detection apparatus, including:
a memory for storing a computer program;
and the processor is used for realizing the steps of the installation environment detection method when executing the computer program.
As shown in fig. 5, in order to illustrate the structure of the installation environment detection device, the installation environment detection device may include: a processor 10, a memory 11, a communication interface 12 and a communication bus 13. The processor 10, the memory 11 and the communication interface 12 all communicate with each other through a communication bus 13.
In the embodiment of the present application, the processor 10 may be a Central Processing Unit (CPU), an application specific integrated circuit, a digital signal processor, a field programmable gate array or other programmable logic device, etc.
The processor 10 may call a program stored in the memory 11, and in particular, the processor 10 may perform operations in an embodiment of the installation environment detection method.
The memory 11 is used for storing one or more programs, the program may include program codes, the program codes include computer operation instructions, in this embodiment, the memory 11 stores at least the program for implementing the following functions:
receiving an installation environment detection instruction aiming at target software, wherein the target software is software to be installed in a target terminal;
inquiring the installation requirement information of the target software through the server;
acquiring current environment information of a target terminal;
and comparing the current environment information with the installation requirement information to determine whether the current environment of the target terminal meets the installation requirement of the target software.
In one possible implementation, the memory 11 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function (such as an interaction function and an information acquisition function), and the like; the stored data area may store data created during use, such as query data, comparison data, and the like.
Further, the memory 11 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device or other volatile solid state storage device.
The communication interface 12 may be an interface of a communication module for connecting with other devices or systems.
Of course, it should be noted that the structure shown in fig. 5 does not constitute a limitation to the installation environment detection device in the embodiment of the present application, and the installation environment detection device may include more or less components than those shown in fig. 5 or some components in combination in practical applications.
Corresponding to the above method embodiments, the present application further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the installation environment detection method.
Further, it should be noted that: embodiments of the present application also provide a computer program product or computer program, which may include computer instructions, which may be stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor can execute the computer instruction, so that the computer device executes the description of the installation environment detection method in the foregoing embodiment, and therefore, the description thereof will not be repeated here. In addition, the beneficial effects of the same method are not described in detail. For technical details not disclosed in the embodiments of the computer program product or the computer program referred to in the present application, reference is made to the description of the embodiments of the method of the present application.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The principle and the implementation of the present application are explained in the present application by using specific examples, and the above description of the embodiments is only used to help understanding the technical solution and the core idea of the present application. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.

Claims (12)

1. An installation environment detection method is applied to a detection client running in a target terminal, and comprises the following steps:
receiving an installation environment detection instruction aiming at target software, wherein the target software is software to be installed in the target terminal;
inquiring the installation requirement information of the target software through a server;
acquiring current environment information of the target terminal;
and comparing the current environment information with the installation requirement information to determine whether the current environment of the target terminal meets the installation requirement of the target software.
2. The installation environment detection method of claim 1, wherein the querying, by the server, the installation requirement information of the target software comprises:
sending a query request aiming at the installation requirement of the target software to a server according to a preset access address;
and receiving a query result returned by the server, wherein the query result carries the installation requirement information of the target software.
3. The installation environment detection method according to claim 1, wherein said obtaining current environment information of the target terminal includes:
and acquiring the current environment information of the target terminal corresponding to the installation requirement information according to the installation requirement information of the target software.
4. The installation environment detection method according to claim 1, wherein the detection client is: and downloading a detection tool package to the target terminal at the server side, and starting the client side after the target terminal runs the detection tool executable file in the detection tool package.
5. The installation environment detection method according to claim 1, wherein the comparing the current environment information with the installation requirement information to determine whether the current environment of the target terminal meets the installation requirement of the target software comprises:
comparing each detection item included in the current environment information with the corresponding installation requirement in the installation requirement information to obtain a detection result of each detection item;
and determining whether the current environment of the target terminal meets the installation requirement of the target software or not according to the detection result of each detection item.
6. The installation environment detection method of claim 5, wherein the determining whether the current environment of the target terminal meets the installation requirement of the target software according to the detection result of each detection item comprises:
and if the detection result of the at least one detection item is that the detection is failed, determining that the current environment of the target terminal does not meet the installation requirement of the target software.
7. The installation environment detection method according to claim 5, further comprising, after said determining whether the current environment of the target terminal meets the installation requirement of the target software:
and outputting and displaying a final detection result, wherein the final detection result comprises a detection result of each detection item and/or a detection result of whether the current environment of the target terminal meets the installation requirement of the target software.
8. The installation environment detection method according to claim 1, wherein in a case where it is determined that the current environment of the target terminal satisfies the installation requirement of the target software, further comprising:
downloading and saving the installation medium of the target software, so as to install the target software on the target terminal by using the installation medium of the target software.
9. The installation environment detection method according to any one of claims 1 to 8, wherein the current environment information includes at least one of software configuration information, hardware configuration information, system authority information, and network environment information of the target terminal.
10. An installation environment detection apparatus, applied to a detection client operating in a target terminal, comprising:
the detection instruction receiving module is used for receiving an installation environment detection instruction aiming at target software, and the target software is software to be installed in the target terminal;
the installation requirement information inquiry module is used for inquiring the installation requirement information of the target software through a server;
the current environment information acquisition module is used for acquiring the current environment information of the target terminal;
and the result judging module is used for comparing the current environment information with the installation requirement information and determining whether the current environment of the target terminal meets the installation requirement of the target software.
11. An installation environment detection apparatus, characterized by comprising:
a memory for storing a computer program;
a processor for implementing the steps of the installation environment detection method of any one of claims 1 to 9 when executing said computer program.
12. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the installation environment detection method as claimed in any one of claims 1 to 9.
CN202210339667.9A 2022-04-01 2022-04-01 Installation environment detection method, device, equipment and storage medium Pending CN114706772A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210339667.9A CN114706772A (en) 2022-04-01 2022-04-01 Installation environment detection method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210339667.9A CN114706772A (en) 2022-04-01 2022-04-01 Installation environment detection method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114706772A true CN114706772A (en) 2022-07-05

Family

ID=82172266

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210339667.9A Pending CN114706772A (en) 2022-04-01 2022-04-01 Installation environment detection method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114706772A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116248291A (en) * 2023-01-30 2023-06-09 深圳市盛思达通讯技术有限公司 Signature verification method and system of consumer

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116248291A (en) * 2023-01-30 2023-06-09 深圳市盛思达通讯技术有限公司 Signature verification method and system of consumer
CN116248291B (en) * 2023-01-30 2023-11-17 深圳市盛思达通讯技术有限公司 Signature verification method and system of consumer

Similar Documents

Publication Publication Date Title
US9519654B2 (en) Method, device, processing center and system for desktop synchronization
US9444899B2 (en) Use of internet information services logging to collect user information in an asynchronous manner
US8327022B2 (en) Method and apparatus for updating a domain name server
CN107635027B (en) Domain name resolution method, medium, device and computing equipment
CN112311786B (en) Service request processing method and device, storage medium and computing equipment
CN110580305B (en) Method, apparatus, system and medium for generating identifier
US8024430B2 (en) System and method for installing software
CN112653618A (en) Gateway registration method and device of micro-service application API endpoint
CN111225064A (en) Ceph cluster deployment method, system, device and computer-readable storage medium
CN110737891A (en) host intrusion detection method and device
US11722481B2 (en) Multiple identity provider authentication system
CN109831779B (en) Upgrade package downloading method, device, server, terminal and system
CN114706772A (en) Installation environment detection method, device, equipment and storage medium
US11687348B2 (en) Intelligent launch of applications
US9167052B2 (en) Apparatus, systems, and methods for providing policy in network-based applications
US8291406B2 (en) Data imaging system and methods
US20140282057A1 (en) System for applying applications of different operating systems in one electronic device and method thereof
US9354853B2 (en) Performing administrative tasks associated with a network-attached storage system at a client
US11768889B1 (en) Evaluating configuration files for uniform resource indicator discovery
CN114185804A (en) Interface testing method and device and terminal equipment
CN111131436B (en) Method and device for quickly searching proxy and readable storage medium
US11487570B1 (en) Efficient creation of endpoints for accessing services directly within a cloud-based system
CN113779122A (en) Method and apparatus for exporting data
CN116225576B (en) Application program data environment switching method and device, electronic equipment and medium
CN113411800B (en) Method and device for assisting client in wireless network switching

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
CB02 Change of applicant information

Address after: 314500 988 Tong Tong Road, Wu Tong Street, Tongxiang, Jiaxing, Zhejiang

Applicant after: United New Energy Automobile Co.,Ltd.

Address before: 314500 988 Tong Tong Road, Wu Tong Street, Tongxiang, Jiaxing, Zhejiang

Applicant before: Hezhong New Energy Vehicle Co.,Ltd.

CB02 Change of applicant information