CN114610331A - Software installation method and system - Google Patents

Software installation method and system Download PDF

Info

Publication number
CN114610331A
CN114610331A CN202011340432.9A CN202011340432A CN114610331A CN 114610331 A CN114610331 A CN 114610331A CN 202011340432 A CN202011340432 A CN 202011340432A CN 114610331 A CN114610331 A CN 114610331A
Authority
CN
China
Prior art keywords
software
installation
target software
target
perform
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
CN202011340432.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.)
NATIONAL COMPUTER VIRUS EMERGENCY RESPONSE CENTER
Secworld Information Technology Beijing Co Ltd
Qax Technology Group Inc
Original Assignee
NATIONAL COMPUTER VIRUS EMERGENCY RESPONSE CENTER
Secworld Information Technology Beijing Co Ltd
Qax Technology Group Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NATIONAL COMPUTER VIRUS EMERGENCY RESPONSE CENTER, Secworld Information Technology Beijing Co Ltd, Qax Technology Group Inc filed Critical NATIONAL COMPUTER VIRUS EMERGENCY RESPONSE CENTER
Priority to CN202011340432.9A priority Critical patent/CN114610331A/en
Publication of CN114610331A publication Critical patent/CN114610331A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3037Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a memory, e.g. virtual memory, cache
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
    • 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)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Mathematical Physics (AREA)
  • Stored Programmes (AREA)

Abstract

The application provides a software installation method, which is used in electronic equipment and comprises the following steps: receiving distribution software information issued by a server; and performing resource detection operation on the electronic equipment according to the distributed software information, and executing downloading operation and/or installing operation of target software based on the resource detection operation. According to the technical scheme, corresponding resource detection operation is executed based on the distributed software information, the target software is downloaded or installed in due time based on the resource detection operation, normal operation of equipment and downloading and installation of the target software are both considered, and user experience is good.

Description

软件安装方法和系统Software installation method and system

技术领域technical field

本申请涉及计算机技术领域,尤其涉及一种软件安装方法、系统、计算机设备及计算机可读存储介质。The present application relates to the field of computer technologies, and in particular, to a software installation method, system, computer device, and computer-readable storage medium.

背景技术Background technique

随着计算机和网络的发展,各类电子设备大量地应用于各种场景中。为适应需求,有时候需要对这些电子设备进行软件下载、软件安装和管理等。在现有技术中,软件通常是根据用户指令下载和安装,或者由软件控制中心主动推送和安装。上述软件安装方式,容易导致电子设备运行缓慢甚至崩溃,用户体验差。With the development of computers and networks, various electronic devices are widely used in various scenarios. In order to meet the demand, sometimes it is necessary to download, install and manage software for these electronic devices. In the prior art, software is usually downloaded and installed according to user instructions, or actively pushed and installed by a software control center. The above software installation methods may easily cause the electronic device to run slowly or even crash, resulting in poor user experience.

发明内容SUMMARY OF THE INVENTION

本申请的目的是提供一种软件安装方法、系统、计算机设备及计算机可读存储介质,用于解决现有软件安装方式容易导致电子设备运行缓慢甚至崩溃,用户体验差的问题。The purpose of the present application is to provide a software installation method, system, computer device and computer-readable storage medium, which are used to solve the problem that the existing software installation method easily causes the electronic device to run slowly or even crash, and the user experience is poor.

本申请实施例的一个方面提供了一种软件安装方法,所述方法包括:接收服务器下发的分发软件信息;及根据所述分发软件信息对所述电子设备进行资源检测操作,并基于所述资源检测操作,执行目标软件的下载操作和/或安装操作。An aspect of the embodiments of the present application provides a software installation method, the method includes: receiving distribution software information issued by a server; and performing a resource detection operation on the electronic device according to the distribution software information, and based on the distribution software information Resource detection operation, performing download operation and/or installation operation of target software.

可选的,所述分发软件信息包括所述目标软件的文件大小;所述根据所述分发软件信息对所述电子设备进行资源检测操作,并基于所述资源检测操作,执行目标软件的下载操作和/或安装操作,包括:检测磁盘的磁盘剩余空间;根据所述磁盘剩余空间和所述文件大小,确定是否执行所述目标软件的下载操作;及若确定执行所述目标软件的下载操作,则从所述服务器中下载所述目标软件。Optionally, the distribution software information includes the file size of the target software; performing a resource detection operation on the electronic device according to the distribution software information, and performing a download operation of the target software based on the resource detection operation and/or installation operation, including: detecting the remaining space of the disk; according to the remaining space of the disk and the size of the file, determining whether to execute the download operation of the target software; and if it is determined to execute the download operation of the target software, Then the target software is downloaded from the server.

可选的,所述分发软件信息包括目标软件的文件大小和存放路径;所述根据所述分发软件信息对所述电子设备进行资源检测操作,并基于所述资源检测操作,执行目标软件的下载操作和/或安装操作,包括:根据所述存放路径,确定磁盘中用于存放所述目标软件的目标分区;所述检测所述目标分区的磁盘剩余空间;根据所述磁盘剩余空间和所述文件大小,确定是否执行所述目标软件的下载操作;及若确定执行所述目标软件的下载操作,则从所述服务器中下载所述目标软件。Optionally, the distribution software information includes the file size and storage path of the target software; the resource detection operation is performed on the electronic device according to the distribution software information, and the download of the target software is performed based on the resource detection operation. The operation and/or installation operation includes: determining a target partition in the disk for storing the target software according to the storage path; detecting the remaining disk space of the target partition; according to the remaining disk space and the file size, determine whether to perform the download operation of the target software; and if it is determined to perform the download operation of the target software, download the target software from the server.

可选的,所述分发软件信息还包括内存占用率阈值;所述根据所述分发软件信息对所述电子设备进行资源检测操作,并基于所述资源检测操作,执行目标软件的下载操作和/或安装操作,包括:当所述目标软件下载完成,检测内存的当前内存占用率;根据所述当前内存占用率和所述内存占用率阈值,确定是否执行所述目标软件的安装操作;及若确定执行所述目标软件的安装操作,则对下载得到的所述目标软件进行安装操作。Optionally, the distribution software information further includes a memory occupancy threshold; performing a resource detection operation on the electronic device according to the distribution software information, and based on the resource detection operation, performing a download operation of the target software and/or Or the installation operation, including: when the download of the target software is completed, detecting the current memory occupancy rate of the memory; according to the current memory occupancy rate and the memory occupancy rate threshold, determining whether to execute the installation operation of the target software; and if If it is determined to perform the installation operation of the target software, the installation operation is performed on the downloaded target software.

可选的,所述根据所述分发软件信息对所述电子设备进行资源检测操作,并基于所述资源检测操作,执行目标软件的下载操作和/或安装操作,包括:若确定不执行所述目标软件的安装操作,则以预设频率检测所述当前内存占用率,直至所述当前内存占用率小于所述内存占用率阈值并确定执行所述安装操作。Optionally, performing a resource detection operation on the electronic device according to the distribution software information, and performing a download operation and/or an installation operation of the target software based on the resource detection operation, includes: if it is determined not to perform the For the installation operation of the target software, the current memory occupancy rate is detected at a preset frequency until the current memory occupancy rate is less than the memory occupancy rate threshold, and it is determined to execute the installation operation.

可选的,所述分发软件信息还包括时间区间,用于指示所述电子设备在所述时间区间内执行所述资源检测操作,以及执行所述目标软件的下载操作和/或安装操作。Optionally, the distribution software information further includes a time interval, which is used to instruct the electronic device to perform the resource detection operation and the download operation and/or the installation operation of the target software within the time interval.

可选的,所述分发软件信息还包括执行方式,用于指示所述电子设备在所述目标软件下载完成之后的安装方式。Optionally, the distribution software information further includes an execution mode, which is used to indicate an installation mode of the electronic device after the download of the target software is completed.

本申请实施例的一个方面又提供了一种软件安装系统,用于电子设备,所述软件安装系统包括:接收模块,用于接收服务器下发的分发软件信息;及执行模块,用于根据所述分发软件信息对所述电子设备进行资源检测操作,并基于所述资源检测操作,执行目标软件的下载操作和/或安装操作。Another aspect of the embodiments of the present application further provides a software installation system for an electronic device, the software installation system includes: a receiving module for receiving distributed software information issued by a server; and an execution module for The distributed software information is used to perform a resource detection operation on the electronic device, and based on the resource detection operation, a download operation and/or an installation operation of the target software is performed.

本申请实施例的一个方面又提供了一种计算机设备,包括存储器、处理器以及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如上述软件安装方法的步骤。Another aspect of the embodiments of the present application further provides a computer device, including a memory, a processor, and a computer program stored in the memory and running on the processor, where the processor implements the above software when executing the computer program The steps of the installation method.

本申请实施例的一个方面又提供了一种计算机可读存储介质,包括存储器、处理器以及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如上述软件安装方法的步骤。Another aspect of the embodiments of the present application further provides a computer-readable storage medium, including a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the computer program when the processor executes the computer program. Follow the steps of the software installation method above.

本申请实施例提供的软件安装方法、系统、设备及计算机可读存储介质,可以基于分发软件信息执行相应的资源检测操作,并基于该资源检测操作适时下载或安装所述目标软件,兼顾设备正常运行和目标软件的下载和安装,用户体验好。The software installation method, system, device, and computer-readable storage medium provided by the embodiments of the present application can perform a corresponding resource detection operation based on the distribution software information, and download or install the target software in a timely manner based on the resource detection operation, taking into account the normal operation of the device. Running and downloading and installation of target software, user experience is good.

附图说明Description of drawings

图1示意性示出了根据本申请实施例的软件安装方法的应用环境图;FIG. 1 schematically shows an application environment diagram of a software installation method according to an embodiment of the present application;

图2示意性示出了根据本申请实施例的软件安装方法的用户界面图;FIG. 2 schematically shows a user interface diagram of a software installation method according to an embodiment of the present application;

图3示意性示出了根据本申请实施例一的软件安装方法的流程图;FIG. 3 schematically shows a flowchart of a software installation method according to Embodiment 1 of the present application;

图4为图3中步骤S302的子步骤图;Fig. 4 is a sub-step diagram of step S302 in Fig. 3;

图5为图3中步骤S302的另一子步骤图;Fig. 5 is another sub-step diagram of step S302 in Fig. 3;

图6为图3中步骤S302的另一子步骤图;Fig. 6 is another sub-step diagram of step S302 in Fig. 3;

图7为图3中步骤S302的另一子步骤图;Fig. 7 is another sub-step diagram of step S302 in Fig. 3;

图8示意性示出了的软件安装方法的一个具体示例图;FIG. 8 schematically shows a specific example diagram of the software installation method;

图9示意性示出了根据本申请实施例二的软件安装系统的框图;及FIG. 9 schematically shows a block diagram of a software installation system according to Embodiment 2 of the present application; and

图10示意性示出了根据本申请实施例三的适于实现软件安装方法的计算机设备的硬件架构示意图。FIG. 10 schematically shows a schematic diagram of a hardware architecture of a computer device suitable for implementing a software installation method according to Embodiment 3 of the present application.

具体实施方式Detailed ways

为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application will be described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.

需要说明的是,在本申请实施例中涉及“第一”、“第二”等的描述仅用于描述目的,而不能理解为指示或暗示其相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。另外,各个实施例之间的技术方案可以相互结合,但是必须是以本领域普通技术人员能够实现为基础,当技术方案的结合出现相互矛盾或无法实现时应当认为这种技术方案的结合不存在,也不在本申请要求的保护范围之内。It should be noted that the descriptions involving "first" and "second" in the embodiments of the present application are only for description purposes, and should not be understood as indicating or implying their relative importance or implicitly indicating the indicated technical features quantity. Thus, a feature delimited with "first", "second" may expressly or implicitly include at least one of that feature. In addition, the technical solutions between the various embodiments can be combined with each other, but must be based on the realization by those of ordinary skill in the art. When the combination of technical solutions is contradictory or cannot be realized, it should be considered that the combination of such technical solutions does not exist. , is not within the scope of protection claimed in this application.

在本申请的描述中,需要理解的是,步骤前的数字标号并不标识执行步骤的前后顺序,仅用于方便描述本申请及区别每一步骤,因此不能理解为对本申请的限制。In the description of the present application, it should be understood that the numerical labels before the steps do not identify the order of execution of the steps, but are only used to facilitate the description of the present application and to distinguish each step, and therefore should not be construed as a limitation on the present application.

下面为本申请涉及的术语解释:The following is an explanation of the terms involved in this application:

磁盘,是指用于存储数据的存储器,数据被存储到该存储器之后,断电后也能保持数据不丢失。在本申请中,磁盘可以是软磁盘(Floppy Disk,简称软盘),硬磁盘(Harddisk,简称硬盘),亦可以是用于存储软件等数据的其他非易失性存储介质。Disk refers to the memory used to store data. After the data is stored in the memory, the data will not be lost even after the power is turned off. In this application, the magnetic disk may be a floppy disk (Floppy Disk, floppy disk for short), a hard disk (Harddisk, hard disk for short), or other non-volatile storage medium for storing data such as software.

内存,又称为内存储器和主存储器,用于加载和运行软件、暂时存放处理器的运算数据等。Memory, also known as internal memory and main memory, is used to load and run software, temporarily store processor operation data, and so on.

图1示意性示出了根据本申请实施例的软件安装方法的环境应用示意图。在示例性的实施例中,如图1所示,软件控制中心2可以通过网络4连接多个电子设备6。FIG. 1 schematically shows a schematic diagram of an environment application of a software installation method according to an embodiment of the present application. In an exemplary embodiment, as shown in FIG. 1 , the software control center 2 can connect a plurality of electronic devices 6 through the network 4 .

软件控制中心2可以通过一个或多个网络4提供软件分发服务。The software control center 2 may provide software distribution services through one or more networks 4 .

软件控制中心2,可以由单个或多个计算机设备组成,如,机架式服务器、刀片式服务器、塔式服务器或机柜式服务器(包括独立的服务器,或者多个服务器所组成的服务器集群)等。所述一个或多个计算机设备可以包括虚拟化计算实例。计算机设备可以基于定义用于仿真的特定软件(例如,操作系统,专用应用程序,服务器)的虚拟映像和/或其他数据来加载虚拟机。随着对不同类型的处理服务的需求改变,可以在所述一个或多个计算机设备上加载和/或终止不同的虚拟机。The software control center 2 can be composed of single or multiple computer devices, such as rack servers, blade servers, tower servers or cabinet servers (including independent servers, or server clusters composed of multiple servers), etc. . The one or more computer devices may include virtualized computing instances. The computer device may load the virtual machine based on a virtual image and/or other data that defines the particular software (eg, operating system, special-purpose application, server) used for emulation. Different virtual machines may be loaded and/or terminated on the one or more computer devices as demands for different types of processing services change.

如图2所示,软件控制中心2可以配置有用户界面(User Interface)。所述用户界面可以包括第一用户界面和第二用户界面。其中,所述第一用户界面用于编辑和控制软件分发对象。所述第二用户界面用于控制软件分发和执行。以第二用户界面为例,其配置有多个UI组件,用于供用户配置分发软件信息,如:软件存放路径、是否替换同名文件、软件的执行方式,如“接收后运行”、“只接收”、“终端资源占用率不太高于70%时执行”、“终端重启时安装”等各类指令性信息。As shown in FIG. 2 , the software control center 2 may be configured with a user interface (User Interface). The user interface may include a first user interface and a second user interface. Wherein, the first user interface is used for editing and controlling software distribution objects. The second user interface is used to control software distribution and execution. Taking the second user interface as an example, it is configured with multiple UI components for users to configure and distribute software information, such as: software storage path, whether to replace the file with the same name, and the execution mode of the software, such as "run after receiving", "only" receive", "execute when the terminal resource occupancy rate is not higher than 70%", "install when the terminal restarts" and other types of instructional information.

网络4可以包括各种网络设备,例如路由器,交换机,多路复用器,集线器,调制解调器,网桥,中继器,防火墙,代理设备和/或等等。网络4可以包括物理链路,例如同轴电缆链路,双绞线电缆链路,光纤链路,它们的组合和/或类似物。网络4可以包括无线链路,例如蜂窝链路,卫星链路,Wi-Fi链路和/或类似物。The network 4 may include various network devices such as routers, switches, multiplexers, hubs, modems, bridges, repeaters, firewalls, proxy devices and/or the like. The network 4 may include physical links such as coaxial cable links, twisted pair cable links, fiber optic links, combinations thereof, and/or the like. The network 4 may include wireless links such as cellular links, satellite links, Wi-Fi links and/or the like.

多个电子设备6可以被配置为访问软件控制中心2的内容和服务。多个电子设备6可以包括任何类型的计算机设备,如终端类设备:移动设备,平板设备,膝上型计算机,智能设备(例如,智能服饰,智能手表,智能扬声器,智能眼镜),虚拟现实耳机,游戏设备,机顶盒,数字流设备,机器人,车载终端,智能电视,电视盒,电子书阅读器,MP3(运动图像专家组音频层III)播放器,MP4(运动图像专家组音频层IV)播放器等。多个电子设备6亦可以包括非终端设备,如网关、交换机等。A plurality of electronic devices 6 may be configured to access the content and services of the software control center 2 . The plurality of electronic devices 6 may include any type of computer device, such as end-type devices: mobile devices, tablet devices, laptop computers, smart devices (eg, smart clothing, smart watches, smart speakers, smart glasses), virtual reality headsets , game equipment, set-top box, digital streaming equipment, robot, vehicle terminal, smart TV, TV box, e-book reader, MP3 (Moving Picture Experts Group Audio Layer III) player, MP4 (Moving Picture Experts Group Audio Layer IV) player device, etc. The plurality of electronic devices 6 may also include non-terminal devices, such as gateways, switches, and the like.

多个电子设备6可以配置有关联账户或识别信息,以方便软件控制中心的控制和管理。Multiple electronic devices 6 may be configured with associated accounts or identification information to facilitate the control and management of the software control center.

本申请在于提供一种软件安装方案,其可以根据软件控制中心2的软件分发信息,监测设备资源占用状态,并根据监测到的设备资源占用状态实施软件的下载和安装。下文将提供多个实施例,下文提供的各个实施例可以用于实现上文描述的软件安装操作。为便于理解,下面将以其中一个电子设备6为执行主体进行示例性描述。The present application is to provide a software installation solution, which can monitor the occupancy status of equipment resources according to the software distribution information of the software control center 2, and implement software download and installation according to the monitored occupancy status of equipment resources. Various embodiments will be provided below, and various embodiments provided below may be used to implement the software installation operations described above. For ease of understanding, an exemplary description will be given below with one of the electronic devices 6 as the execution subject.

实施例一Example 1

图2示意性示出了根据本申请实施例一的软件安装方法的流程图。FIG. 2 schematically shows a flowchart of a software installation method according to Embodiment 1 of the present application.

如图3所示,该电子设备6的震动控制方法可以包括步骤S300~S302,其中:As shown in FIG. 3, the vibration control method of the electronic device 6 may include steps S300-S302, wherein:

步骤S300,接收服务器下发的分发软件信息。Step S300, receiving the distribution software information issued by the server.

需要说明的是,所述服务器可以为图1中的软件控制中心2或作为软件控制中心2的一部分。It should be noted that the server may be the software control center 2 in FIG. 1 or a part of the software control center 2 .

为提高软件下载和安装体验,软件提供商通过所述服务器向电子设备6分发软件前,可以配置分发软件信息,以使电子设备6在分发软件信息的指示下,对自身资源进行检测操作,从而确保电子设备6能够在指定的状态下下载或安装目标软件。In order to improve the software download and installation experience, before distributing the software to the electronic device 6 through the server, the software provider can configure the distribution software information, so that the electronic device 6 can perform a detection operation on its own resources under the instruction of distributing the software information, thereby Make sure that the electronic device 6 can download or install the target software in the specified state.

所述分发软件信息,可以根据具体需求配置。例如,所述分发软件信息可以包括以下一项或多项:The distribution software information can be configured according to specific requirements. For example, the distribution software information may include one or more of the following:

(1)所述目标软件的文件大小,用于指示存储所述目标软件所需的物理存储容量;(1) The file size of the target software, which is used to indicate the physical storage capacity required to store the target software;

(2)所述目标软件的存放路径,用于指示所述目标软件的存放路径和/或安装路径等;(2) The storage path of the target software, which is used to indicate the storage path and/or installation path of the target software, etc.;

(3)执行方式,用于指示电子设备6在哪些情况之下执行安装操作,或者执行何种安装方式;(3) Execution mode, which is used to instruct the electronic device 6 to perform the installation operation under which circumstances, or which installation mode to perform;

(4)内存占用率阈值,用于指示电子设备6安装所述目标软件时的最高内存占用率;(4) memory occupancy rate threshold, for indicating the highest memory occupancy rate when the electronic device 6 installs the target software;

(5)时间区间,用于指示何时进行资源检测操作,或者执行目标软件的下载、安装等相关操作。(5) A time interval, which is used to indicate when to perform a resource detection operation, or perform relevant operations such as downloading and installation of the target software.

步骤S302,根据所述分发软件信息对所述电子设备进行资源检测操作,并基于所述资源检测操作,执行目标软件的下载操作和/或安装操作。Step S302: Perform a resource detection operation on the electronic device according to the distribution software information, and perform a download operation and/or an installation operation of the target software based on the resource detection operation.

电子设备6接收到所述服务器下发的分发软件信息,可以执行如下操作:The electronic device 6 receives the distribution software information issued by the server, and can perform the following operations:

(1)解析所述分发软件信息,得到一个或多个指示参数;(1) Parse the distribution software information to obtain one or more indication parameters;

(2)根据上述指示参数,启动相应的资源检测操作,检测自身的软件或硬件状态;(2) According to the above-mentioned instruction parameters, start the corresponding resource detection operation to detect its own software or hardware status;

(3)判断是否满足部分指示参数所对应的软件或硬件要求;(3) Judging whether the software or hardware requirements corresponding to some of the indicated parameters are met;

(4)如果满足,则启动这部分指示参数的关联操作,如,所述目标软件的下载操作。(4) If satisfied, start the associated operation of the indicated parameters in this part, for example, the download operation of the target software.

(5)如果不满足,则不启动这部分指示参数的关联操作,如,不执行所述目标软件的下载操作。(5) If it is not satisfied, the associated operation of the indicated parameters in this part is not started, for example, the download operation of the target software is not executed.

基于本实施例所述的软件安装方法,电子设备6可以根据所述服务器所希望的安装指示,在检测到设备资源符合特定要求的情形下,下载或安装所述目标软件,例如,在电子设备6的空闲状态下。即,本实施例所述的方案,可以基于服务器下发的分发软件信息,兼顾设备正常运行和所述目标软件的下载和安装,用户体验好。Based on the software installation method described in this embodiment, the electronic device 6 can download or install the target software according to the installation instruction desired by the server and in the case that the device resource meets the specific requirements, for example, in the electronic device 6 in the idle state. That is, the solution described in this embodiment can be based on the distribution software information issued by the server, taking into account the normal operation of the device and the downloading and installation of the target software, and the user experience is good.

作为示例,所述分发软件信息包括所述目标软件的文件大小。如图4所示,所述步骤S302可以包括步骤S400~S404。其中,步骤S400,检测磁盘的磁盘剩余空间;步骤S400,根据所述磁盘剩余空间和所述文件大小,确定是否执行所述目标软件的下载操作;步骤S404,若确定执行所述目标软件的下载操作,则从所述服务器中下载所述目标软件。在本实施例中,电子设备6可以先判断其磁盘是否有足够空间存储所述目标软件。若所述磁盘有足够空间存储所述目标软件时,电子设备6则可以向所述服务器发送所述目标软件的下载请求,以执行下载操作。若所述磁盘没有足够空间存储所述目标软件时,则不执行所述下载操作以防止所述目标软件下载失败或下载之后磁盘空间被全部占用所导致的设备故障,或者在所述服务器的指示下删除所述磁盘中所述目标软件的同名软件等。As an example, the distribution software information includes the file size of the target software. As shown in FIG. 4 , the step S302 may include steps S400 to S404. Wherein, in step S400, the remaining space of the disk is detected; in step S400, according to the remaining space on the disk and the size of the file, it is determined whether to execute the download operation of the target software; in step S404, if it is determined to execute the download of the target software operation, the target software is downloaded from the server. In this embodiment, the electronic device 6 may first determine whether its disk has enough space to store the target software. If the disk has enough space to store the target software, the electronic device 6 may send a download request of the target software to the server to perform a download operation. If the disk does not have enough space to store the target software, the download operation is not performed to prevent the failure of downloading the target software or the device failure caused by the disk space being fully occupied after downloading, or the server instructs Delete the software with the same name of the target software in the disk and so on.

作为示例,所述分发软件信息包括目标软件的文件大小和存放路径。如图5所示,所述步骤S302可以包括步骤S500~S506。其中,步骤S500,根据所述存放路径,确定磁盘中用于存放所述目标软件的目标分区;步骤S502,所述检测所述目标分区的磁盘剩余空间;步骤S504,根据所述磁盘剩余空间和所述文件大小,确定是否执行所述目标软件的下载操作;及步骤S506,若确定执行所述目标软件的下载操作,则从所述服务器中下载所述目标软件。在本实施例中,电子设备6可以先判断所述目标分区是否有足够空间存储所述目标软件。若所述目标分区有足够空间存储所述目标软件时,电子设备6则可以向所述服务器发送所述目标软件的下载请求,以执行下载操作。若所述目标分区没有足够空间存储所述目标软件时,则不执行所述下载操作以防止所述目标软件下载失败或下载之后磁盘空间被全部占用所导致的设备故障,或者在所述服务器的指示下删除所述磁盘中所述目标软件的同名软件等。另外,当所述目标分区没有足够空间存储所述目标软件时,电子设备6亦可以将所述目标分区和其他分区的状态发送给所述服务器,以便所述服务器决定是否改变所述目标软件的存放或安装路径。As an example, the distribution software information includes the file size and storage path of the target software. As shown in FIG. 5, the step S302 may include steps S500-S506. Wherein, in step S500, according to the storage path, determine the target partition in the disk for storing the target software; in step S502, in the detection of the remaining disk space of the target partition; in step S504, according to the remaining disk space and According to the file size, determine whether to perform the download operation of the target software; and step S506, if it is determined to perform the download operation of the target software, download the target software from the server. In this embodiment, the electronic device 6 may first determine whether the target partition has enough space to store the target software. If the target partition has enough space to store the target software, the electronic device 6 may send a download request for the target software to the server to perform a download operation. If the target partition does not have enough space to store the target software, the download operation is not performed to prevent the target software from failing to download or the device failure caused by the disk space being completely occupied after downloading, or the server's Delete the software with the same name of the target software in the disk under the instruction. In addition, when the target partition does not have enough space to store the target software, the electronic device 6 can also send the status of the target partition and other partitions to the server, so that the server can decide whether to change the status of the target software. Storage or installation path.

作为示例,所述分发软件信息包括内存占用率阈值。如图6所示,所述步骤S302可以包括步骤S600~S604。其中,步骤S600,当所述目标软件下载完成,检测内存的当前内存占用率;步骤S602,根据所述当前内存占用率和所述内存占用率阈值,确定是否执行所述目标软件的安装操作;及步骤S604,若确定执行所述目标软件的安装操作,则对下载得到的所述目标软件进行安装操作。在本实施例中,当所述目标软件下载完毕之后,电子设备6需检测其内存的当前内存占用率。当所述当前内存占用率过高时,则说明所述电子设备6处于高负荷状态。在所述高负荷状态下,安装所述目标软件可能会导致安装失败和影响设备正常使用。本实施例旨在解决这一个问题,在当前内存占用率低于所述内存占用率阈值,则启动所述目标软件的安装操作。当然,在另一些实施例中,所述内存占用率阈值可调整的,例如根据目标软件的重要紧急程度。例如,当所述目标软件为重大安全漏洞补丁程序时,则可以动态调高所述内存占用率阈值,以便及时修复漏洞。As an example, the distribution software information includes a memory occupancy threshold. As shown in FIG. 6, the step S302 may include steps S600-S604. Wherein, in step S600, when the download of the target software is completed, the current memory occupancy rate of the memory is detected; in step S602, according to the current memory occupancy rate and the memory occupancy rate threshold, it is determined whether to execute the installation operation of the target software; And step S604, if it is determined to execute the installation operation of the target software, perform the installation operation on the downloaded target software. In this embodiment, after the download of the target software is completed, the electronic device 6 needs to detect the current memory occupancy rate of its memory. When the current memory occupancy rate is too high, it means that the electronic device 6 is in a high load state. Under the high load state, installing the target software may cause installation failure and affect the normal use of the device. This embodiment aims to solve this problem. When the current memory occupancy rate is lower than the memory occupancy rate threshold, the installation operation of the target software is started. Of course, in other embodiments, the memory occupancy rate threshold is adjustable, for example, according to the importance and urgency of the target software. For example, when the target software is a major security vulnerability patch program, the memory occupancy rate threshold can be dynamically increased to repair the vulnerability in time.

作为示例,如图7所示,所述步骤S302还可以包括步骤S606。其中,步骤S606:若确定不执行所述目标软件的安装操作,则以预设频率检测所述当前内存占用率,直至所述当前内存占用率小于所述内存占用率阈值并确定执行所述安装操作。通过此种方式,可以防止检测操作过于频繁对设备运行造成的影响。在另一些实施例中,所述预设频率可以根据所述目标软件的重要紧急程度、文件大小动态调整。例如,当所述目标软件为重大安全漏洞补丁程序时,则可以调高检测所述当前内存占用率的频率。当所述目标软件较大时,则可以调低检测所述当前内存占用率的频率。As an example, as shown in FIG. 7 , the step S302 may further include the step S606. Wherein, step S606: if it is determined not to execute the installation operation of the target software, the current memory occupancy rate is detected at a preset frequency until the current memory occupancy rate is less than the memory occupancy rate threshold and it is determined to execute the installation operate. In this way, the influence on the operation of the equipment caused by too frequent detection operations can be prevented. In some other embodiments, the preset frequency can be dynamically adjusted according to the importance and urgency of the target software and the file size. For example, when the target software is a major security vulnerability patch program, the frequency of detecting the current memory occupancy rate may be increased. When the target software is relatively large, the frequency of detecting the current memory occupancy rate can be lowered.

作为示例,所述分发软件信息还包括时间区间,用于指示所述电子设备在所述时间区间内执行所述资源检测操作,以及执行所述目标软件的下载操作和/或安装操作。可以理解,繁忙时段,设备资源可能大概率不满足下载和安装要求。因此,本实施例可以避免繁忙时段频繁检测资源检测操作,以增加安装成功概率。As an example, the distribution software information further includes a time interval, which is used to instruct the electronic device to perform the resource detection operation and perform the download operation and/or the installation operation of the target software within the time interval. It is understandable that during busy hours, device resources may not meet the download and installation requirements with a high probability. Therefore, this embodiment can avoid frequent detection of resource detection operations during busy periods, so as to increase the probability of successful installation.

作为示例,所述分发软件信息还包括执行方式,用于指示所述电子设备在所述目标软件下载完成之后的安装方式。本实施例,在于提供多种方式以便用户根据需求灵活选择。As an example, the distribution software information further includes an execution mode, which is used to indicate an installation mode of the electronic device after the download of the target software is completed. In this embodiment, a variety of ways are provided so that users can flexibly choose according to their needs.

如图8所示,为了方便理解,以下提供一个具体示例。As shown in FIG. 8 , for the convenience of understanding, a specific example is provided below.

步骤S800,接收分发软件信息。Step S800, receiving distribution software information.

步骤S802,检测磁盘或目标分区的磁盘剩余空间。Step S802, detecting the remaining disk space of the disk or the target partition.

步骤S804,判断所述磁盘剩余空间是否可以存储目标软件,例如所述磁盘剩余空间是否大于所述目标软件文件大小。如果可以存储所述目标软件,则进入所述步骤S806,否则流程结束。Step S804, determine whether the remaining space on the disk can store the target software, for example, whether the remaining space on the disk is larger than the file size of the target software. If the target software can be stored, go to step S806; otherwise, the process ends.

步骤S806,下载所述目标软件。Step S806, downloading the target software.

步骤S808,判断当前内存占用率是否小于内存占用率阈值。如果不是,则进入步骤S810,否则进入步骤S812。Step S808, it is judged whether the current memory occupancy rate is less than the memory occupancy rate threshold. If not, go to step S810, otherwise go to step S812.

步骤S812,等待特定时长,例如1分钟、3分钟等。跳转步骤S808。Step S812, wait for a specific time period, such as 1 minute, 3 minutes, and so on. Jump to step S808.

步骤S812,执行所述目标软件的安装操作。Step S812: Execute the installation operation of the target software.

本示例,将磁盘大小和内存大小结合,进行目标软件的下载和安装,有效提高了所述目标软件的安装成功率、降低了软件下载和安装对设备运行的负面影响,提升用户体验。In this example, the disk size and the memory size are combined to download and install the target software, which effectively improves the installation success rate of the target software, reduces the negative impact of software download and installation on device operation, and improves user experience.

实施例二Embodiment 2

图9示意性示出了根据本申请实施例二的软件安装系统的框图,该软件安装系统可以被分割成一个或多个程序模块,一个或者多个程序模块被存储于存储介质中,并由一个或多个处理器所执行,以完成本申请实施例。本申请实施例所称的程序模块是指能够完成特定功能的一系列计算机程序指令段,以下描述将具体介绍本实施例中各程序模块的功能。FIG. 9 schematically shows a block diagram of a software installation system according to Embodiment 2 of the present application. The software installation system may be divided into one or more program modules, and the one or more program modules are stored in a storage medium and configured by One or more processors are executed to complete the embodiments of the present application. The program modules referred to in the embodiments of the present application refer to a series of computer program instruction segments capable of performing specific functions. The following description will specifically introduce the functions of each program module in this embodiment.

如图9所示,该软件安装系统900可以包括接收模块902和执行模块904,其中:As shown in FIG. 9, the software installation system 900 may include a receiving module 902 and an executing module 904, wherein:

接收模块902,用于接收服务器下发的分发软件信息;及a receiving module 902, configured to receive the distribution software information issued by the server; and

执行模块904,用于根据所述分发软件信息对所述电子设备进行资源检测操作,并基于所述资源检测操作,执行目标软件的下载操作和/或安装操作。。The execution module 904 is configured to perform a resource detection operation on the electronic device according to the distribution software information, and perform a download operation and/or an installation operation of the target software based on the resource detection operation. .

在示例性的实施例中,所述分发软件信息包括所述目标软件的文件大小。所述执行模块904,还用于:检测磁盘的磁盘剩余空间;根据所述磁盘剩余空间和所述文件大小,确定是否执行所述目标软件的下载操作;及若确定执行所述目标软件的下载操作,则从所述服务器中下载所述目标软件。In an exemplary embodiment, the distribution software information includes a file size of the target software. The execution module 904 is further configured to: detect the remaining disk space of the disk; determine whether to execute the download operation of the target software according to the remaining disk space and the file size; and if it is determined to execute the download of the target software operation, the target software is downloaded from the server.

在示例性的实施例中,所述分发软件信息包括目标软件的文件大小和存放路径。所述执行模块904,还用于:根据所述存放路径,确定磁盘中用于存放所述目标软件的目标分区;所述检测所述目标分区的磁盘剩余空间;根据所述磁盘剩余空间和所述文件大小,确定是否执行所述目标软件的下载操作;及若确定执行所述目标软件的下载操作,则从所述服务器中下载所述目标软件。In an exemplary embodiment, the distribution software information includes the file size and storage path of the target software. The execution module 904 is further configured to: determine, according to the storage path, a target partition in the disk for storing the target software; to detect the remaining disk space of the target partition; According to the file size, it is determined whether to perform the download operation of the target software; and if it is determined to perform the download operation of the target software, the target software is downloaded from the server.

在示例性的实施例中,所述分发软件信息还包括内存占用率阈值。所述执行模块904,还用于:当所述目标软件下载完成,检测内存的当前内存占用率;根据所述当前内存占用率和所述内存占用率阈值,确定是否执行所述目标软件的安装操作;及若确定执行所述目标软件的安装操作,则对下载得到的所述目标软件进行安装操作。In an exemplary embodiment, the distribution software information further includes a memory usage threshold. The execution module 904 is further configured to: when the download of the target software is completed, detect the current memory occupancy rate of the memory; and determine whether to execute the installation of the target software according to the current memory occupancy rate and the memory occupancy rate threshold operation; and if it is determined to perform the installation operation of the target software, perform the installation operation on the downloaded target software.

在示例性的实施例中,所述执行模块904,还用于:若确定不执行所述目标软件的安装操作,则以预设频率检测所述当前内存占用率,直至所述当前内存占用率小于所述内存占用率阈值并确定执行所述安装操作。In an exemplary embodiment, the executing module 904 is further configured to: if it is determined not to perform the installation operation of the target software, detect the current memory usage rate at a preset frequency until the current memory usage rate is less than the memory usage threshold and determines to perform the installation operation.

在示例性的实施例中,所述分发软件信息还包括时间区间,用于指示所述电子设备在所述时间区间内执行所述资源检测操作,以及执行所述目标软件的下载操作和/或安装操作。In an exemplary embodiment, the distribution software information further includes a time interval, which is used to instruct the electronic device to perform the resource detection operation, and perform the download operation of the target software and/or within the time interval. installation operation.

在示例性的实施例中,所述分发软件信息还包括执行方式,用于指示所述电子设备在所述目标软件下载完成之后的安装方式。In an exemplary embodiment, the distribution software information further includes an execution mode, which is used to indicate an installation mode of the electronic device after the download of the target software is completed.

实施例三Embodiment 3

图10示意性示出了根据本申请实施例三的适于实现软件安装方法的计算机设备1000的硬件架构示意图。计算机设备1000可以为电子设备6,以可以作为电子设备6的一部分。本实施例中,计算机设备1000是一种能够按照事先设定或者存储的指令,自动进行数值计算和/或信息处理的设备。例如,可以是智能手机、平板电脑、笔记本电脑、台式计算机、机架式服务器、刀片式服务器、塔式服务器或机柜式服务器(包括独立的服务器,或者多个服务器所组成的服务器集群)、网关等。如图10所示,计算机设备1000至少包括但不限于:可通过系统总线相互通信链接存储器1010、处理器1020、网络接口1030、震动元件1040。其中:FIG. 10 schematically shows a schematic diagram of a hardware architecture of a computer device 1000 suitable for implementing a software installation method according to Embodiment 3 of the present application. Computer device 1000 may be electronic device 6 so as to be part of electronic device 6 . In this embodiment, the computer device 1000 is a device that can automatically perform numerical calculation and/or information processing according to pre-set or stored instructions. For example, it can be a smartphone, tablet, laptop, desktop computer, rack server, blade server, tower server, or rack server (including standalone servers, or server clusters of multiple servers), gateways Wait. As shown in FIG. 10 , the computer device 1000 at least includes but is not limited to: a memory 1010 , a processor 1020 , a network interface 1030 , and a vibration element 1040 that can communicate with each other through a system bus. in:

存储器1010至少包括一种类型的计算机可读存储介质,可读存储介质包括闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等)、随机访问存储器(RAM)、静态随机访问存储器(SRAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、可编程只读存储器(PROM)、磁性存储器、磁盘、光盘等。在一些实施例中,存储器1010可以是计算机设备1000的内部存储模块,例如该计算机设备1000的硬盘或内存。在另一些实施例中,存储器1010也可以是计算机设备1000的外部存储设备,例如该计算机设备1000上配备的插接式硬盘,智能存储卡(Smart Media Card,简称为SMC),安全数字(Secure Digital,简称为SD)卡,闪存卡(Flash Card)等。当然,存储器1010还可以既包括计算机设备1000的内部存储模块也包括其外部存储设备。本实施例中,存储器1010通常用于存储安装于计算机设备1000的操作系统和各类应用软件,例如软件安装方法的程序代码等。此外,存储器1010还可以用于暂时地存储已经输出或者将要输出的各类数据。The memory 1010 includes at least one type of computer-readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), programmable read only memory (PROM), magnetic memory, magnetic disk, optical disk, and the like. In some embodiments, the memory 1010 may be an internal storage module of the computer device 1000 , such as a hard disk or memory of the computer device 1000 . In other embodiments, the memory 1010 may also be an external storage device of the computer device 1000, such as a plug-in hard disk, a Smart Media Card (SMC for short), a Secure Digital (Secure Digital) device equipped on the computer device 1000 Digital, referred to as SD) card, flash memory card (Flash Card) and so on. Of course, the memory 1010 may also include both an internal storage module of the computer device 1000 and an external storage device thereof. In this embodiment, the memory 1010 is generally used to store the operating system and various types of application software installed in the computer device 1000 , such as program codes of a software installation method, and the like. In addition, the memory 1010 may also be used to temporarily store various types of data that have been output or will be output.

处理器1020在一些实施例中可以是中央处理器(Central Processing Unit,简称为CPU)、控制器、微控制器、微处理器、或其他数据处理芯片。该处理器1020通常用于控制计算机设备1000的总体操作,例如执行与计算机设备1000进行数据交互或者通信相关的控制和处理等。本实施例中,处理器1020用于运行存储器1010中存储的程序代码或者处理数据。In some embodiments, the processor 1020 may be a central processing unit (Central Processing Unit, CPU for short), a controller, a microcontroller, a microprocessor, or other data processing chips. The processor 1020 is generally used to control the overall operation of the computer device 1000 , such as performing control and processing related to data interaction or communication with the computer device 1000 . In this embodiment, the processor 1020 is configured to run program codes or process data stored in the memory 1010 .

网络接口1030可包括无线网络接口或有线网络接口,该网络接口1030通常用于在计算机设备1000与其他计算机设备之间建立通信链接。例如,网络接口1030用于通过网络将计算机设备1000与外部终端相连,在计算机设备1000与外部终端之间的建立数据传输通道和通信链接等。网络可以是企业内部网(Intranet)、互联网(Internet)、全球移动通讯系统(Global System of Mobile communication,简称为GSM)、宽带码分多址(WidebandCode Division Multiple Access,简称为WCDMA)、4G网络、5G网络、蓝牙(Bluetooth)、Wi-Fi等无线或有线网络。The network interface 1030, which may include a wireless network interface or a wired network interface, is typically used to establish a communication link between the computer device 1000 and other computer devices. For example, the network interface 1030 is used to connect the computer device 1000 with an external terminal through a network, and establish a data transmission channel and a communication link between the computer device 1000 and the external terminal. The network can be an intranet (Intranet), the Internet (Internet), a Global System of Mobile communication (GSM for short), a Wideband Code Division Multiple Access (WCDMA for short), a 4G network, 5G network, Bluetooth, Wi-Fi and other wireless or wired networks.

需要指出的是,图10仅示出了具有部件1010-1030的计算机设备,但是应理解的是,并不要求实施所有示出的部件,可以替代的实施更多或者更少的部件。It should be noted that FIG. 10 only shows a computer device having components 1010-1030, but it should be understood that implementation of all of the shown components is not required and that more or less components may be implemented instead.

在本实施例中,存储于存储器1010中的软件安装方法还可以被分割为一个或者多个程序模块,并由一个或多个处理器(本实施例为处理器1020)所执行,以完成本申请实施例。In this embodiment, the software installation method stored in the memory 1010 may also be divided into one or more program modules, and executed by one or more processors (the processor 1020 in this embodiment) to complete this embodiment. Application Examples.

实施例四Embodiment 4

本申请还提供一种计算机可读存储介质,计算机可读存储介质其上存储有计算机程序,计算机程序被处理器执行时实现实施例中的软件安装方法的步骤。The present application also provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the software installation method in the embodiment are implemented.

本实施例中,计算机可读存储介质包括闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等)、随机访问存储器(RAM)、静态随机访问存储器(SRAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、可编程只读存储器(PROM)、磁性存储器、磁盘、光盘等。在一些实施例中,计算机可读存储介质可以是计算机设备的内部存储单元,例如该计算机设备的硬盘或内存。在另一些实施例中,计算机可读存储介质也可以是计算机设备的外部存储设备,例如该计算机设备上配备的插接式硬盘,智能存储卡(Smart Media Card,简称为SMC),安全数字(Secure Digital,简称为SD)卡,闪存卡(Flash Card)等。当然,计算机可读存储介质还可以既包括计算机设备的内部存储单元也包括其外部存储设备。本实施例中,计算机可读存储介质通常用于存储安装于计算机设备的操作系统和各类应用软件,例如实施例中软件安装方法的程序代码等。此外,计算机可读存储介质还可以用于暂时地存储已经输出或者将要输出的各类数据。In this embodiment, the computer-readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory ( ROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Programmable Read-Only Memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the computer-readable storage medium may be an internal storage unit of a computer device, such as a hard disk or a memory of the computer device. In other embodiments, the computer-readable storage medium may also be an external storage device of a computer device, such as a plug-in hard disk equipped on the computer device, a Smart Media Card (SMC for short), a secure digital ( Secure Digital, referred to as SD) card, flash memory card (Flash Card) and so on. Of course, the computer-readable storage medium may also include both an internal storage unit of a computer device and an external storage device thereof. In this embodiment, the computer-readable storage medium is generally used to store the operating system and various application software installed on the computer device, for example, the program code of the software installation method in the embodiment. In addition, the computer-readable storage medium can also be used to temporarily store various types of data that have been output or will be output.

显然,本领域的技术人员应该明白,上述的本申请实施例的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本申请实施例不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that each module or each step of the above-mentioned embodiments of the present application may be implemented by a general-purpose computing device, and they may be centralized on a single computing device, or distributed in multiple computing devices. network, they can optionally be implemented with program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, can be different from the The illustrated or described steps are performed in order, either by fabricating them separately into individual integrated circuit modules, or by fabricating multiple modules or steps of them into a single integrated circuit module. As such, the embodiments of the present application are not limited to any specific combination of hardware and software.

以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。The above are only the preferred embodiments of the present application, and are not intended to limit the scope of the patent of the present application. Any equivalent structure or equivalent process transformation made by using the contents of the description and drawings of the present application, or directly or indirectly applied in other related technical fields , are similarly included within the scope of patent protection of this application.

Claims (10)

1.一种软件安装方法,用于电子设备,其特征在于,所述方法包括:1. a software installation method, is used for electronic equipment, it is characterized in that, described method comprises: 接收服务器下发的分发软件信息;及Receive distribution software information from the server; and 根据所述分发软件信息对所述电子设备进行资源检测操作,并基于所述资源检测操作,执行目标软件的下载操作和/或安装操作。Perform a resource detection operation on the electronic device according to the distribution software information, and perform a download operation and/or an installation operation of the target software based on the resource detection operation. 2.根据权利要求1所述的软件安装方法,其特征在于,所述分发软件信息包括所述目标软件的文件大小;所述根据所述分发软件信息对所述电子设备进行资源检测操作,并基于所述资源检测操作,执行目标软件的下载操作和/或安装操作,包括:2 . The software installation method according to claim 1 , wherein the distribution software information includes the file size of the target software; the resource detection operation is performed on the electronic device according to the distribution software information, and 2 . Based on the resource detection operation, perform a download operation and/or an installation operation of the target software, including: 检测磁盘的磁盘剩余空间;Check the remaining disk space of the disk; 根据所述磁盘剩余空间和所述文件大小,确定是否执行所述目标软件的下载操作;及Determine whether to perform the download operation of the target software according to the remaining space on the disk and the file size; and 若确定执行所述目标软件的下载操作,则从所述服务器中下载所述目标软件。If it is determined to execute the download operation of the target software, the target software is downloaded from the server. 3.根据权利要求1所述的软件安装方法,其特征在于,所述分发软件信息包括目标软件的文件大小和存放路径;所述根据所述分发软件信息对所述电子设备进行资源检测操作,并基于所述资源检测操作,执行目标软件的下载操作和/或安装操作,包括:3. The software installation method according to claim 1, wherein the distribution software information comprises a file size and a storage path of the target software; the resource detection operation is performed on the electronic device according to the distribution software information, And based on the resource detection operation, perform a download operation and/or an installation operation of the target software, including: 根据所述存放路径,确定磁盘中用于存放所述目标软件的目标分区;According to the storage path, determine the target partition in the disk for storing the target software; 所述检测所述目标分区的磁盘剩余空间;the detection of the remaining disk space of the target partition; 根据所述磁盘剩余空间和所述文件大小,确定是否执行所述目标软件的下载操作;及Determine whether to perform the download operation of the target software according to the remaining space on the disk and the file size; and 若确定执行所述目标软件的下载操作,则从所述服务器中下载所述目标软件。If it is determined to execute the download operation of the target software, the target software is downloaded from the server. 4.根据权利要求2或3所述的软件安装方法,其特征在于,所述分发软件信息还包括内存占用率阈值;所述根据所述分发软件信息对所述电子设备进行资源检测操作,并基于所述资源检测操作,执行目标软件的下载操作和/或安装操作,包括:4. The software installation method according to claim 2 or 3, wherein the distribution software information further comprises a memory occupancy rate threshold; the resource detection operation is performed on the electronic device according to the distribution software information, and Based on the resource detection operation, perform a download operation and/or an installation operation of the target software, including: 当所述目标软件下载完成,检测内存的当前内存占用率;When the download of the target software is completed, the current memory occupancy rate of the memory is detected; 根据所述当前内存占用率和所述内存占用率阈值,确定是否执行所述目标软件的安装操作;及determining whether to perform the installation operation of the target software according to the current memory occupancy rate and the memory occupancy rate threshold; and 若确定执行所述目标软件的安装操作,则对下载得到的所述目标软件进行安装操作。If it is determined to perform the installation operation of the target software, the installation operation is performed on the downloaded target software. 5.根据权利要求4所述的软件安装方法,其特征在于,所述根据所述分发软件信息对所述电子设备进行资源检测操作,并基于所述资源检测操作,执行目标软件的下载操作和/或安装操作,包括:5. The software installation method according to claim 4, characterized in that, according to the distribution software information, a resource detection operation is performed on the electronic device, and based on the resource detection operation, a download operation and a download operation of the target software are performed. / or installation operations, including: 若确定不执行所述目标软件的安装操作,则以预设频率检测所述当前内存占用率,直至所述当前内存占用率小于所述内存占用率阈值并确定执行所述安装操作。If it is determined not to perform the installation operation of the target software, the current memory occupancy rate is detected at a preset frequency until the current memory occupancy rate is less than the memory occupancy rate threshold, and it is determined to perform the installation operation. 6.根据权利要求1所述的软件安装方法,其特征在于,所述分发软件信息还包括时间区间,用于指示所述电子设备在所述时间区间内执行所述资源检测操作,以及执行所述目标软件的下载操作和/或安装操作。6 . The software installation method according to claim 1 , wherein the distribution software information further comprises a time interval, used to instruct the electronic device to perform the resource detection operation within the time interval, and to execute the Describe the download operation and/or installation operation of the target software. 7.根据权利要求1所述的软件安装方法,其特征在于,所述分发软件信息还包括执行方式,用于指示所述电子设备在所述目标软件下载完成之后的安装方式。7 . The software installation method according to claim 1 , wherein the distribution software information further comprises an execution mode, which is used to indicate an installation mode of the electronic device after the download of the target software is completed. 8 . 8.一种软件安装系统,用于电子设备,其特征在于,包括:8. A software installation system for electronic equipment, characterized in that, comprising: 接收模块,用于接收服务器下发的分发软件信息;及a receiving module for receiving the distribution software information issued by the server; and 执行模块,用于根据所述分发软件信息对所述电子设备进行资源检测操作,并基于所述资源检测操作,执行目标软件的下载操作和/或安装操作。An execution module, configured to perform a resource detection operation on the electronic device according to the distribution software information, and perform a download operation and/or an installation operation of the target software based on the resource detection operation. 9.一种计算机设备,包括存储器、处理器以及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时用于实现权利要求1~7中任一项所述的软件安装方法的步骤。9. A computer device, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor is used to implement claims 1 to 7 when the processor executes the computer program The steps of any one of the software installation methods. 10.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质内存储有计算机程序,所述计算机程序可被至少一个处理器所执行,以使所述至少一个处理器执行权利要求1~7中任一项所述的软件安装方法的步骤。10. A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and the computer program can be executed by at least one processor, so that the at least one processor executes the rights The steps of the software installation method described in any one of requirements 1 to 7 are required.
CN202011340432.9A 2020-11-25 2020-11-25 Software installation method and system Pending CN114610331A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011340432.9A CN114610331A (en) 2020-11-25 2020-11-25 Software installation method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011340432.9A CN114610331A (en) 2020-11-25 2020-11-25 Software installation method and system

Publications (1)

Publication Number Publication Date
CN114610331A true CN114610331A (en) 2022-06-10

Family

ID=81857156

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011340432.9A Pending CN114610331A (en) 2020-11-25 2020-11-25 Software installation method and system

Country Status (1)

Country Link
CN (1) CN114610331A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024083114A1 (en) * 2022-10-20 2024-04-25 华为技术有限公司 Software distribution method, electronic device, and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105991729A (en) * 2015-02-12 2016-10-05 广东欧珀移动通信有限公司 Installation package downloading method and server
CN109962946A (en) * 2017-12-22 2019-07-02 阿里巴巴集团控股有限公司 Download the method and device of resource
CN110531990A (en) * 2019-07-26 2019-12-03 苏州浪潮智能科技有限公司 Software installation method and device
WO2020199597A1 (en) * 2019-04-04 2020-10-08 平安科技(深圳)有限公司 Blockchain node management agent service installation method, electronic apparatus and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105991729A (en) * 2015-02-12 2016-10-05 广东欧珀移动通信有限公司 Installation package downloading method and server
CN109962946A (en) * 2017-12-22 2019-07-02 阿里巴巴集团控股有限公司 Download the method and device of resource
WO2020199597A1 (en) * 2019-04-04 2020-10-08 平安科技(深圳)有限公司 Blockchain node management agent service installation method, electronic apparatus and storage medium
CN110531990A (en) * 2019-07-26 2019-12-03 苏州浪潮智能科技有限公司 Software installation method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024083114A1 (en) * 2022-10-20 2024-04-25 华为技术有限公司 Software distribution method, electronic device, and system

Similar Documents

Publication Publication Date Title
US9400641B2 (en) Adaptable middleware layer
CN111427596B (en) Software upgrading method and device and terminal equipment
KR101891423B1 (en) Broadcasting management information using fountain codes
CN112836152B (en) Page rendering method, system, computer device and computer readable storage medium
CN113411404A (en) File downloading method, device, server and storage medium
CN103500111A (en) Information configuration method and device based on zookeeper
US10404568B2 (en) Agent manager for distributed transaction monitoring system
CN110855746A (en) Middleware management method, electronic device and storage medium
CN113630443A (en) Service management method, device, server and medium
EP3313041A1 (en) Application download method and device
CN117527791A (en) File uploading method and device, electronic equipment and storage medium
CN111143031A (en) Method and device for changing capacity of virtual machine
CN109086077A (en) A kind of operation method and device of application program
CN115827148A (en) Resource management method and device, electronic equipment and storage medium
CN113791867B (en) Method and application for adjusting KVM virtual machine service process priority
CN115580642A (en) Communication method and device between applications, nonvolatile storage medium and processor
CN114610331A (en) Software installation method and system
CN106708569B (en) Hot loading method and device for VOBC configuration file in over-the-line train
CN113282363A (en) Method and device for optimizing hybrid APP
CN110365839B (en) Shutdown method, shutdown device, shutdown medium and electronic equipment
CN112615916A (en) File deployment method and device, electronic equipment and storage medium
CN116016175B (en) OTA (over the air) upgrading method and device for automatic driving operation vehicle
CN113946376B (en) Load adjustment method and device, electronic equipment and storage medium
CN105677510A (en) Monitoring method of communication processor and intelligent terminal
US20240031166A1 (en) Web-side data signature method and apparatus and computer device

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

Country or region after: China

Address after: 100097 No. 202, 203, 205, 206, 207, 208, 2nd floor, block D, No. 51, Kunming Hunan Road, Haidian District, Beijing

Applicant after: Qianxin Wangshen information technology (Beijing) Co.,Ltd.

Applicant after: QAX Technology Group Inc.

Applicant after: NATIONAL COMPUTER VIRUS EMERGENCY RESPONSE CENTER

Address before: 100097 No. 202, 203, 205, 206, 207, 208, 2nd floor, block D, No. 51, Kunming Hunan Road, Haidian District, Beijing

Applicant before: LEGENDSEC INFORMATION TECHNOLOGY (BEIJING) Inc.

Country or region before: China

Applicant before: QAX Technology Group Inc.

Applicant before: NATIONAL COMPUTER VIRUS EMERGENCY RESPONSE CENTER