CN110377312B - A software upgrade method, device and medium - Google Patents
A software upgrade method, device and medium Download PDFInfo
- Publication number
- CN110377312B CN110377312B CN201910655500.1A CN201910655500A CN110377312B CN 110377312 B CN110377312 B CN 110377312B CN 201910655500 A CN201910655500 A CN 201910655500A CN 110377312 B CN110377312 B CN 110377312B
- Authority
- CN
- China
- Prior art keywords
- upgrade
- software
- installation package
- operating system
- service
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Stored Programmes (AREA)
Abstract
Description
技术领域Technical field
本公开涉及计算机软件,尤其涉及一种软件升级方法、装置及介质。The present disclosure relates to computer software, and in particular, to a software upgrade method, device and medium.
背景技术Background technique
目前,用户在使用终端设备时,通常会因为误操作等原因删除某一个软件的升级服务程序,而造成该软件不能正常升级,从而给软件的使用造成影响。At present, when users use terminal equipment, they usually delete the upgrade service program of a certain software due to misoperation and other reasons, causing the software to fail to be upgraded normally, thus affecting the use of the software.
因此,需要一种更安全的软件升级方法。Therefore, a more secure method of software upgrade is needed.
发明内容Contents of the invention
为克服相关技术中存在的问题,本公开提供一种软件升级方法、装置及介质,采用该方法升级软件时,不会因用户误删升级服务而给使用软件带来影响。In order to overcome the problems existing in related technologies, the present disclosure provides a software upgrade method, device and medium. When using this method to upgrade software, the use of the software will not be affected by the user accidentally deleting the upgrade service.
根据本公开实施例的第一方面,提供一种软件升级方法,包括:According to a first aspect of an embodiment of the present disclosure, a software upgrade method is provided, including:
在操作系统中注册与所述软件关联的升级服务,其中,所述软件安装在所述操作系统上,所述升级服务用于对所述软件进行升级;Register an upgrade service associated with the software in the operating system, where the software is installed on the operating system, and the upgrade service is used to upgrade the software;
若通过所述升级服务检测到所述软件的升级安装包已被更新,则获取与所述升级服务关联的所述软件的升级安装包;If it is detected through the upgrade service that the upgrade installation package of the software has been updated, obtain the upgrade installation package of the software associated with the upgrade service;
通过安装所述升级安装包,对所述软件进行升级。The software is upgraded by installing the upgrade installation package.
其中,所述在操作系统中注册与所述软件关联的升级服务,包括:Wherein, registering the upgrade service associated with the software in the operating system includes:
在所述操作系统中安装硬件驱动程序,所述硬件驱动程序包括所述升级服务的安装包。Install a hardware driver in the operating system, where the hardware driver includes an installation package of the upgrade service.
其中,所述硬件驱动程序为虚拟硬件的驱动程序。Wherein, the hardware driver is a driver of virtual hardware.
其中,所述通过安装所述升级安装包对所述软件进行升级,包括:Wherein, upgrading the software by installing the upgrade installation package includes:
通过所述升级服务从设定存储地址获取所述升级安装包,并采用远程安装或本地安装的方式安装所述升级安装包。The upgrade installation package is obtained from the set storage address through the upgrade service, and the upgrade installation package is installed using remote installation or local installation.
根据本公开实施例的第二方面,提供一种软件升级装置,包括:According to a second aspect of the embodiment of the present disclosure, a software upgrade device is provided, including:
注册单元,被设置为在操作系统中注册与所述软件关联的升级服务,其中,所述软件安装在所述操作系统上,所述升级服务用于对所述软件进行升级;a registration unit configured to register an upgrade service associated with the software in the operating system, wherein the software is installed on the operating system, and the upgrade service is used to upgrade the software;
获取单元,被设置为若通过所述升级服务检测到所述软件的升级安装包已被更新,则获取与所述升级服务关联的所述软件的升级安装包;an acquisition unit configured to acquire the upgrade installation package of the software associated with the upgrade service if it is detected through the upgrade service that the upgrade installation package of the software has been updated;
更新单元,被设置为通过安装所述升级安装包,对所述软件进行升级。The update unit is configured to upgrade the software by installing the upgrade installation package.
其中,所述注册单元还被设置为:Wherein, the registration unit is also set to:
在所述操作系统中安装硬件驱动程序,所述硬件驱动程序包括所述升级服务的安装包。Install a hardware driver in the operating system, where the hardware driver includes an installation package of the upgrade service.
其中,所述硬件驱动程序为虚拟硬件的驱动程序。Wherein, the hardware driver is a driver of virtual hardware.
其中,所述更新单元还被设置为:Wherein, the update unit is also configured to:
通过所述升级服务从设定存储地址获取所述升级安装包,并采用远程安装或本地安装的方式安装所述升级安装包。The upgrade installation package is obtained from the set storage address through the upgrade service, and the upgrade installation package is installed using remote installation or local installation.
根据本公开实施例的第三方面,提供一种软件升级装置,包括:According to a third aspect of the embodiment of the present disclosure, a software upgrade device is provided, including:
处理器;processor;
用于存储处理器可执行指令的存储器;Memory used to store instructions executable by the processor;
其中,所述处理器被配置为:Wherein, the processor is configured as:
在操作系统中注册与所述软件关联的升级服务,其中,所述软件安装在所述操作系统上,所述升级服务用于对所述软件进行升级;Register an upgrade service associated with the software in the operating system, where the software is installed on the operating system, and the upgrade service is used to upgrade the software;
若通过所述升级服务检测到所述软件的升级安装包已被更新,则获取与所述升级服务关联的所述软件的升级安装包;If it is detected through the upgrade service that the upgrade installation package of the software has been updated, obtain the upgrade installation package of the software associated with the upgrade service;
通过安装所述升级安装包,对所述软件进行升级。The software is upgraded by installing the upgrade installation package.
根据本公开实施例的第四方面,提供一种非临时性计算机可读存储介质,当所述存储介质中的指令由设备的处理器执行时,使得设备能够执行一种软件升级方法,所述方法包括:According to a fourth aspect of an embodiment of the present disclosure, a non-transitory computer-readable storage medium is provided, which when instructions in the storage medium are executed by a processor of a device, enables the device to perform a software upgrade method, the Methods include:
在操作系统中注册与所述软件关联的升级服务,其中,所述软件安装在所述操作系统上,所述升级服务用于对所述软件进行升级;Register an upgrade service associated with the software in the operating system, where the software is installed on the operating system, and the upgrade service is used to upgrade the software;
若通过所述升级服务检测到所述软件的升级安装包已被更新,则获取与所述升级服务关联的所述软件的升级安装包;If it is detected through the upgrade service that the upgrade installation package of the software has been updated, obtain the upgrade installation package of the software associated with the upgrade service;
通过安装所述升级安装包,对所述软件进行升级。The software is upgraded by installing the upgrade installation package.
本公开的实施例提供的技术方案可以包括以下有益效果:在操作系统中注册软件的升级服务,就使得该升级服务能够以系统的权限运行,也正是因为这样,该升级服务不会被用户误删除。The technical solution provided by the embodiments of the present disclosure can include the following beneficial effects: registering the software upgrade service in the operating system enables the upgrade service to run with system permissions. Precisely because of this, the upgrade service will not be used by users. Deleted by mistake.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only, and do not limit the present disclosure.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本发明的实施例,并与说明书一起用于解释本发明的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description serve to explain the principles of the invention.
图1是根据一示例性实施例示出的一种软件升级方法的流程图。Figure 1 is a flow chart of a software upgrade method according to an exemplary embodiment.
图2是根据一示例性实施例示出的在操作系统中注册升级服务的流程图。FIG. 2 is a flowchart of registering an upgrade service in an operating system according to an exemplary embodiment.
图3是根据一示例性实施例示出的通过升级服务检测到软件的升级安装包已被更新的流程图。FIG. 3 is a flowchart of detecting that the software upgrade installation package has been updated through the upgrade service according to an exemplary embodiment.
图4是根据一示例性实施例示出的安装升级安装包的流程图。Figure 4 is a flowchart of installing an upgrade installation package according to an exemplary embodiment.
图5是根据一示例性实施例示出的一种软件升级方法的流程图。Figure 5 is a flow chart of a software upgrade method according to an exemplary embodiment.
图6是根据一示例性实施例示出的一种软件升级装置的框图。Figure 6 is a block diagram of a software upgrade device according to an exemplary embodiment.
图7是根据一示例性实施例示出的一种装置的框图。FIG. 7 is a block diagram of a device according to an exemplary embodiment.
图8是根据一示例性实施例示出的一种装置的框图。FIG. 8 is a block diagram of a device according to an exemplary embodiment.
具体实施方式Detailed ways
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本发明相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本发明的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the invention. Rather, they are merely examples of apparatus and methods consistent with aspects of the invention as detailed in the appended claims.
用户在使用终端设备时,因为删除某一个软件的升级服务程序,而造成该软件不能正常升级。为了解决这种问题,将软件的升级服务注册在操作系统中,该服务以系统权限运行,不会被用户删除。并且通过该升级服务能够自动检测软件的升级安装包是否被更新,从而能够对软件进行更新。When the user uses the terminal device, the software cannot be upgraded normally because the upgrade service program of a certain software is deleted. In order to solve this problem, the software upgrade service is registered in the operating system. This service runs with system permissions and will not be deleted by the user. And through this upgrade service, it can automatically detect whether the software upgrade installation package has been updated, so that the software can be updated.
本实施例公开一种软件升级方法,参照图1,图1是根据一示例性实施例示出的一种软件升级方法的流程图。如图1所示,该软件升级方法包括:This embodiment discloses a software upgrade method. Refer to Figure 1 . Figure 1 is a flow chart of a software upgrade method according to an exemplary embodiment. As shown in Figure 1, the software upgrade method includes:
步骤101,在操作系统中注册与软件关联的升级服务,其中,软件安装在操作系统上,升级服务用于对软件进行升级;Step 101: Register an upgrade service associated with the software in the operating system, where the software is installed on the operating system and the upgrade service is used to upgrade the software;
步骤102,若通过升级服务检测到软件的升级安装包已被更新,则获取与升级服务关联的软件的升级安装包;Step 102: If it is detected through the upgrade service that the upgrade installation package of the software has been updated, obtain the upgrade installation package of the software associated with the upgrade service;
步骤103,通过安装升级安装包,对软件进行升级。Step 103: Upgrade the software by installing the upgrade installation package.
在步骤101中,在操作系统中注册软件的升级服务,就使得该升级服务能够以系统的权限运行,也正是因为这样,该升级服务是不会被用户误删除的。步骤102中,已在操作系统中注册的升级服务会按照设定的触发条件检测软件的升级安装包是否被更新,具体的触发条件在下面详细描述。In step 101, registering the software upgrade service in the operating system enables the upgrade service to run with system permissions. Precisely because of this, the upgrade service will not be accidentally deleted by the user. In step 102, the upgrade service registered in the operating system will detect whether the software upgrade installation package has been updated according to the set trigger conditions. The specific trigger conditions are described in detail below.
作为对图1所示的实施例的细化和进一步扩展,本实施例公开了另一种软件升级方法。参照图2,图2为可选实施例中在操作系统中注册升级服务的流程图,如图2所示,图1所示的步骤101进一步可以包括:As a refinement and further expansion of the embodiment shown in Figure 1, this embodiment discloses another software upgrade method. Referring to Figure 2, Figure 2 is a flow chart of registering an upgrade service in the operating system in an optional embodiment. As shown in Figure 2, step 101 shown in Figure 1 may further include:
步骤1011,在操作系统中安装硬件驱动程序,所述硬件驱动程序包括升级服务的安装包。Step 1011: Install a hardware driver in the operating system, where the hardware driver includes the installation package of the upgrade service.
这里通过安装硬件驱动程序的方式安装升级服务的安装包后,就实现在操作系统中注册与该软件关联的升级服务。Here, after installing the installation package of the upgrade service by installing the hardware driver, the upgrade service associated with the software is registered in the operating system.
作为对图1所示的实施例的细化和进一步扩展,本实施例公开了另一种软件升级方法。上述步骤1011中的硬件驱动程序为虚拟硬件的驱动程序。需要说明的是,当操作系统为Windows时,可以具体实现为通过Windows系统的基本输入输出系统(BIOS),利用ACPI硬件来设置虚拟硬件,来实现驱动程序的安装。As a refinement and further expansion of the embodiment shown in Figure 1, this embodiment discloses another software upgrade method. The hardware driver in step 1011 above is a driver of virtual hardware. It should be noted that when the operating system is Windows, the specific implementation can be through the basic input and output system (BIOS) of the Windows system and using ACPI hardware to set up virtual hardware to implement driver installation.
在操作系统中通过安装硬件驱动程序的方式安装升级服务的安装包,可以通过下述两种方式实现:(1)在操作系统设置虚拟硬件,并在该虚拟硬件上设置驱动程序,同时将与软件关联的升级服务的安装包放在该驱动程序中,当操作系统启动时,会读取该虚拟硬件上的驱动程序并进行安装,这样,就会安装与该软件关联的升级服务的安装包;(2)将与该软件关联的升级服务的安装包添加到硬件驱动程序中,操作系统升级硬件的驱动程序时,会安装该软件关联的升级服务的安装包。Installing the installation package of the upgrade service by installing the hardware driver in the operating system can be achieved in the following two ways: (1) Set up virtual hardware in the operating system, and set the driver on the virtual hardware, and at the same time, The installation package of the upgrade service associated with the software is placed in the driver. When the operating system starts, it will read the driver on the virtual hardware and install it. In this way, the installation package of the upgrade service associated with the software will be installed. ; (2) Add the installation package of the upgrade service associated with the software to the hardware driver. When the operating system upgrades the driver of the hardware, the installation package of the upgrade service associated with the software will be installed.
作为对上述实施例的变型,也可以采用优先通过虚拟硬件方式安装与软件关联的升级服务的安装包,当虚拟硬件上没有该升级服务的安装包时,再通过将与软件关联的升级服务的安装包添加到操作系统的硬件驱动程序的方式进行安装。As a modification to the above embodiment, it is also possible to preferentially install the installation package of the upgrade service associated with the software through virtual hardware. When there is no installation package for the upgrade service on the virtual hardware, the installation package of the upgrade service associated with the software can also be installed through the virtual hardware. Install the hardware driver by adding the installation package to the operating system.
作为对图1所示的实施例的细化和进一步扩展,本实施例公开了另一种软件升级方法。当操作系统为Windows操作系统时,将升级服务的安装包添加到操作系统的硬件驱动程序中,包括:As a refinement and further expansion of the embodiment shown in Figure 1, this embodiment discloses another software upgrade method. When the operating system is a Windows operating system, add the installation package of the upgrade service to the hardware driver of the operating system, including:
通过在Windows操作系统的设备信息文件中添加与升级服务的安装包相关的信息,来将升级服务的安装包添加到操作系统的硬件驱动程序中。Add the installation package of the upgrade service to the hardware driver of the operating system by adding information related to the installation package of the upgrade service in the device information file of the Windows operating system.
当操作系统为Windows操作系统时,在其设备信息文件(INF文件)中,通过加入AddSoftware字段的方式,将与软件关联的升级服务的安装包集成到该操作系统的硬件驱动程序中。将与该软件关联的升级服务的安装包的相关信息写入到AddSoftware字段中,并将该AddSoftware字段加入到INF文件中。当Windows Update升级硬件驱动程序时,就会安装该软件的升级服务的安装包。When the operating system is a Windows operating system, the installation package of the upgrade service associated with the software is integrated into the hardware driver of the operating system by adding the AddSoftware field in its device information file (INF file). Write information about the installation package of the upgrade service associated with the software into the AddSoftware field, and add the AddSoftware field to the INF file. When Windows Update upgrades a hardware driver, the installation package of the software's upgrade service will be installed.
作为对图1所示的实施例的细化和进一步扩展,本实施例公开了另一种软件升级方法。步骤102中的通过升级服务检测到软件的升级安装包已被更新可以通过下述方式中至少之一实现:As a refinement and further expansion of the embodiment shown in Figure 1, this embodiment discloses another software upgrade method. Detecting in step 102 that the software upgrade installation package has been updated through the upgrade service can be achieved by at least one of the following methods:
方式一,通过升级服务周期性地检测软件的升级安装包是否被更新;Method 1: Use the upgrade service to periodically detect whether the software upgrade installation package has been updated;
方式二,通过升级服务在软件接收到用户的更新查询时,检测软件的升级安装包是否被更新;Method 2: Use the upgrade service to detect whether the upgrade installation package of the software has been updated when the software receives the user's update query;
方式三,通过升级服务在操作系统的时间达到设定时间点时,检测软件的升级安装包是否被更新;Method 3: Use the upgrade service to detect whether the software upgrade installation package has been updated when the operating system time reaches the set time point;
方式四,通过升级服务当操作系统中出现设定的事件时,检测软件的升级安装包是否被更新。Method 4: Use the upgrade service to detect whether the software upgrade installation package has been updated when a set event occurs in the operating system.
上述的检测周期、设定时间点以及设定事件可以根据实际需要来设置。The above-mentioned detection cycle, set time point and set event can be set according to actual needs.
作为对图1所示的实施例的细化和进一步扩展,本实施例公开了另一种软件升级方法。参照图3,图3为可选实施例中通过升级服务检测到软件的升级安装包已被更新的流程图,如图3所示,图1所示的步骤102中通过升级服务检测到软件的升级安装包已被更新进一步可以包括:As a refinement and further expansion of the embodiment shown in Figure 1, this embodiment discloses another software upgrade method. Referring to Figure 3, Figure 3 is a flow chart of detecting that the software upgrade installation package has been updated through the upgrade service in an optional embodiment. As shown in Figure 3, in step 102 shown in Figure 1, it is detected that the software upgrade installation package has been updated through the upgrade service. The upgrade installation package has been updated to further include:
步骤1021,通过升级服务在设定存储地址上检测到软件的升级安装包已被更新。Step 1021: It is detected through the upgrade service that the software upgrade installation package has been updated at the set storage address.
升级服务中设置有其检测升级安装包是否被更新的地址,当系统处于联网状态时,该地址可以是URL的形式。通过升级服务可以按照上述四种方式中之一到设定存储地址上进行更新检测。The upgrade service is provided with an address for detecting whether the upgrade installation package has been updated. When the system is connected to the Internet, the address may be in the form of a URL. Through the upgrade service, you can follow one of the above four methods to perform update detection on the set storage address.
作为对图1所示的实施例的细化和进一步扩展,本实施例公开了另一种软件升级方法。参照图4,图4为可选实施例中安装升级安装包的流程图,如图4所示,图1所示的步骤102中安装升级安装包进一步可以包括:As a refinement and further expansion of the embodiment shown in Figure 1, this embodiment discloses another software upgrade method. Referring to Figure 4, Figure 4 is a flow chart for installing the upgrade installation package in an optional embodiment. As shown in Figure 4, the installation of the upgrade installation package in step 102 shown in Figure 1 may further include:
步骤1022,通过升级服务从设定存储地址获取升级安装包,并采用远程安装或本地安装的方式安装升级安装包。Step 1022: Obtain the upgrade installation package from the set storage address through the upgrade service, and install the upgrade installation package using remote installation or local installation.
当检测到升级安装包被更新时,可以将该升级安装包下载到本地,进行本地安装,也可以直接在该升级安装包所处的存储地址上进行远程安装。选择哪种安装方式,可以根据实际需要设置。When it is detected that the upgrade installation package is updated, the upgrade installation package can be downloaded to the local computer for local installation, or it can be installed remotely at the storage address where the upgrade installation package is located. Which installation method you choose can be set according to actual needs.
作为对图1所示的实施例的细化和进一步扩展,本实施例公开了另一种软件升级方法。图1所示的步骤102中安装升级安装包对软件进行升级,包括下述方式中至少之一:As a refinement and further expansion of the embodiment shown in Figure 1, this embodiment discloses another software upgrade method. In step 102 shown in Figure 1, the upgrade installation package is installed to upgrade the software, including at least one of the following methods:
方式一,向用户发出是否升级软件的询问,并在接收到同意升级的响应后,通过调用与升级服务进程关联的软件的升级安装包来升级软件;Method 1: Send an inquiry to the user whether to upgrade the software, and after receiving a response agreeing to upgrade, upgrade the software by calling the upgrade installation package of the software associated with the upgrade service process;
方式二,调用与升级服务进程关联的软件的升级安装包,并采用静默安装软件的升级安装包的方式升级软件。Method 2: Call the upgrade installation package of the software associated with the upgrade service process, and upgrade the software by silently installing the upgrade installation package of the software.
如图5所示,图5示出了根据本公开的软件升级方法的一具体实施例,该实施例中的操作系统为Windows操作系统,该方法包括:As shown in Figure 5, Figure 5 shows a specific embodiment of a software upgrade method according to the present disclosure. The operating system in this embodiment is a Windows operating system. The method includes:
步骤501,在Windows操作系统的INF文件中加入AddSoftware字段,该AddSoftware字段包含升级服务的安装包的相关信息,从而将升级服务的安装包包括在硬件驱动程序中。Step 501: Add an AddSoftware field to the INF file of the Windows operating system. The AddSoftware field contains information about the installation package of the upgrade service, so that the installation package of the upgrade service is included in the hardware driver.
步骤502,Windows Update升级硬件驱动程序时,安装该升级服务的安装包,从而实现在Windows系统中注册与该软件关联的升级服务。Step 502: When Windows Update upgrades the hardware driver, install the installation package of the upgrade service, thereby registering the upgrade service associated with the software in the Windows system.
步骤503,通过该升级服务周期性在设定URL上检测软件的升级安装包是否被更新。Step 503: Use the upgrade service to periodically check whether the software upgrade installation package has been updated on the set URL.
步骤504,当检测到升级安装包被更新时,从设定URL上下载该升级安装包到本地设备上。Step 504: When it is detected that the upgrade installation package is updated, download the upgrade installation package from the set URL to the local device.
步骤505,升级服务采用静默安装的方式安装该升级安装包。Step 505: The upgrade service uses silent installation to install the upgrade installation package.
图6是根据一示例性实施例示出的一种软件升级装置框图。参照图7,该装置包括:Figure 6 is a block diagram of a software upgrade device according to an exemplary embodiment. Referring to Figure 7, the device includes:
注册单元601,被设置为在操作系统中注册与所述软件关联的升级服务,其中,所述软件安装在所述操作系统上,所述升级服务用于对所述软件进行升级;The registration unit 601 is configured to register an upgrade service associated with the software in the operating system, where the software is installed on the operating system, and the upgrade service is used to upgrade the software;
获取单元602,被设置为若通过所述升级服务检测到所述软件的升级安装包已被更新,则获取与所述升级服务关联的所述软件的升级安装包;The acquisition unit 602 is configured to acquire the upgrade installation package of the software associated with the upgrade service if it is detected through the upgrade service that the upgrade installation package of the software has been updated;
更新单元603,被设置为通过安装所述升级安装包,对所述软件进行升级。The update unit 603 is configured to upgrade the software by installing the upgrade installation package.
在可选实施方式中,所述注册单元601还被设置为:In an optional implementation, the registration unit 601 is further configured to:
在所述操作系统中安装硬件驱动程序,所述硬件驱动程序包括所述升级服务的安装包。Install a hardware driver in the operating system, where the hardware driver includes an installation package of the upgrade service.
在可选实施方式中,所述硬件驱动程序为虚拟硬件的驱动程序。In an optional implementation, the hardware driver is a driver of virtual hardware.
在可选实施方式中,所述更新单元603还被设置为:In an optional implementation, the update unit 603 is further configured to:
通过所述升级服务从设定存储地址获取所述升级安装包,并采用远程安装或本地安装的方式安装所述升级安装包。The upgrade installation package is obtained from the set storage address through the upgrade service, and the upgrade installation package is installed using remote installation or local installation.
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the devices in the above embodiments, the specific manner in which each module performs operations has been described in detail in the embodiments related to the method, and will not be described in detail here.
本公开的实施例中,在操作系统中注册软件的升级服务,就使得该升级服务能够以系统的权限运行,也正是因为这样,该升级服务不会被用户误删除。In the embodiment of the present disclosure, registering the software upgrade service in the operating system enables the upgrade service to run with system permissions, and precisely because of this, the upgrade service will not be accidentally deleted by the user.
图7是根据一示例性实施例示出的一种用于软件升级的装置700的框图。例如,装置700可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。FIG. 7 is a block diagram of a device 700 for software upgrade according to an exemplary embodiment. For example, the device 700 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, or the like.
参照图7,装置700可以包括以下一个或多个组件:处理组件702,存储器704,电力组件706,多媒体组件708,音频组件710,输入/输出(I/O)的接口712,传感器组件714,以及通信组件716。7, the device 700 may include one or more of the following components: a processing component 702, a memory 704, a power component 706, a multimedia component 708, an audio component 710, an input/output (I/O) interface 712, a sensor component 714, and communications component 716.
处理组件702通常控制装置700的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件702可以包括一个或多个处理器720来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件702可以包括一个或多个模块,便于处理组件702和其他组件之间的交互。例如,处理组件702可以包括多媒体模块,以方便多媒体组件708和处理组件702之间的交互。Processing component 702 generally controls the overall operations of device 700, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 702 may include one or more processors 720 to execute instructions to complete all or part of the steps of the above method. Additionally, processing component 702 may include one or more modules that facilitate interaction between processing component 702 and other components. For example, processing component 702 may include a multimedia module to facilitate interaction between multimedia component 708 and processing component 702.
存储器704被配置为存储各种类型的数据以支持在设备700的操作。这些数据的示例包括用于在装置700上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器704可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。Memory 704 is configured to store various types of data to support operations at device 700 . Examples of such data include instructions for any application or method operating on device 700, contact data, phonebook data, messages, pictures, videos, etc. Memory 704 may be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EEPROM), Programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
电力组件706为装置700的各种组件提供电力。电力组件706可以包括电源管理系统,一个或多个电源,及其他与为装置700生成、管理和分配电力相关联的组件。Power component 706 provides power to various components of device 700. Power components 706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to device 700 .
多媒体组件708包括在所述装置700和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件708包括一个前置摄像头和/或后置摄像头。当设备700处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。Multimedia component 708 includes a screen that provides an output interface between the device 700 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide action. In some embodiments, multimedia component 708 includes a front-facing camera and/or a rear-facing camera. When the device 700 is in an operating mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each front-facing camera and rear-facing camera can be a fixed optical lens system or have a focal length and optical zoom capabilities.
音频组件710被配置为输出和/或输入音频信号。例如,音频组件710包括一个麦克风(MIC),当装置700处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器704或经由通信组件716发送。在一些实施例中,音频组件710还包括一个扬声器,用于输出音频信号。Audio component 710 is configured to output and/or input audio signals. For example, audio component 710 includes a microphone (MIC) configured to receive external audio signals when device 700 is in operating modes, such as call mode, recording mode, and speech recognition mode. The received audio signal may be further stored in memory 704 or sent via communication component 716 . In some embodiments, audio component 710 also includes a speaker for outputting audio signals.
I/O接口712为处理组件702和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 712 provides an interface between the processing component 702 and a peripheral interface module, which may be a keyboard, a click wheel, a button, etc. These buttons may include, but are not limited to: Home button, Volume buttons, Start button, and Lock button.
传感器组件714包括一个或多个传感器,用于为装置700提供各个方面的状态评估。例如,传感器组件714可以检测到设备700的打开/关闭状态,组件的相对定位,例如所述组件为装置700的显示器和小键盘,传感器组件714还可以检测装置700或装置700一个组件的位置改变,用户与装置700接触的存在或不存在,装置700方位或加速/减速和装置700的温度变化。传感器组件714可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件714还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件714还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor component 714 includes one or more sensors that provide various aspects of status assessment for device 700 . For example, the sensor component 714 may detect the open/closed state of the device 700, the relative positioning of components, such as the display and keypad of the device 700, and the sensor component 714 may also detect a change in position of the device 700 or a component of the device 700. , the presence or absence of user contact with device 700 , device 700 orientation or acceleration/deceleration and temperature changes of device 700 . Sensor assembly 714 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 714 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 714 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
通信组件716被配置为便于装置700和其他设备之间有线或无线方式的通信。装置700可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件716经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件716还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。Communication component 716 is configured to facilitate wired or wireless communication between apparatus 700 and other devices. Device 700 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In one exemplary embodiment, communication component 716 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communications component 716 also includes a near field communications (NFC) module to facilitate short-range communications. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
在示例性实施例中,装置700可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, apparatus 700 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable Gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are implemented for executing the above method.
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器704,上述指令可由装置700的处理器720执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions, such as a memory 704 including instructions, which are executable by the processor 720 of the device 700 to complete the above method is also provided. For example, the non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
一种非临时性计算机可读存储介质,当所述存储介质中的指令由移动终端的处理器执行时,使得移动终端能够执行一种软件升级方法,所述方法包括:在操作系统中注册与所述软件关联的升级服务,其中,所述软件安装在所述操作系统上,所述升级服务用于对所述软件进行升级;若通过所述升级服务检测到所述软件的升级安装包已被更新,则获取与所述升级服务关联的所述软件的升级安装包;通过安装所述升级安装包,对所述软件进行升级。A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of a mobile terminal, enable the mobile terminal to perform a software upgrade method, the method includes: registering and The software-related upgrade service, wherein the software is installed on the operating system, and the upgrade service is used to upgrade the software; if it is detected through the upgrade service that the upgrade installation package of the software has been is updated, obtain the upgrade installation package of the software associated with the upgrade service; upgrade the software by installing the upgrade installation package.
图8是根据一示例性实施例示出的一种用于软件升级的装置800的框图。例如,装置800可以被提供为一服务器。参照图8,装置800包括处理组件822,其进一步包括一个或多个处理器,以及由存储器832所代表的存储器资源,用于存储可由处理组件822的执行的指令,例如应用程序。存储器832中存储的应用程序可以包括一个或一个以上的每一个对应于一组指令的模块。此外,处理组件822被配置为执行指令,以执行上述方法:在操作系统中注册与所述软件关联的升级服务,其中,所述软件安装在所述操作系统上,所述升级服务用于对所述软件进行升级;若通过所述升级服务检测到所述软件的升级安装包已被更新,则获取与所述升级服务关联的所述软件的升级安装包;通过安装所述升级安装包,对所述软件进行升级。FIG. 8 is a block diagram of a device 800 for software upgrade according to an exemplary embodiment. For example, device 800 may be provided as a server. Referring to Figure 8, apparatus 800 includes a processing component 822, which further includes one or more processors, and memory resources represented by memory 832 for storing instructions, such as application programs, executable by processing component 822. The application program stored in memory 832 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 822 is configured to execute instructions to perform the above method: register an upgrade service associated with the software in the operating system, wherein the software is installed on the operating system, and the upgrade service is used to The software is upgraded; if it is detected that the upgrade installation package of the software has been updated through the upgrade service, the upgrade installation package of the software associated with the upgrade service is obtained; by installing the upgrade installation package, Upgrade the software.
装置800还可以包括一个电源组件826被配置为执行装置800的电源管理,一个有线或无线网络接口850被配置为将装置800连接到网络,和一个输入输出(I/O)接口858。装置800可以操作基于存储在存储器832的操作系统,例如Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM或类似。Device 800 may also include a power supply component 826 configured to perform power management of device 800, a wired or wireless network interface 850 configured to connect device 800 to a network, and an input-output (I/O) interface 858. The device 800 may operate based on an operating system stored in the memory 832, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™ or the like.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本发明的其它实施方案。本申请旨在涵盖本发明的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本发明的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本发明的真正范围和精神由下面的权利要求指出。Other embodiments of the invention will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary technical means in the technical field that are not disclosed in the present disclosure. . It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
应当理解的是,本发明并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本发明的范围仅由所附的权利要求来限制。It is to be understood that the present invention is not limited to the precise construction described above and illustrated in the accompanying drawings, and that various modifications and changes may be made without departing from its scope. The scope of the invention is limited only by the appended claims.
Claims (6)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910655500.1A CN110377312B (en) | 2019-07-19 | 2019-07-19 | A software upgrade method, device and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910655500.1A CN110377312B (en) | 2019-07-19 | 2019-07-19 | A software upgrade method, device and medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110377312A CN110377312A (en) | 2019-10-25 |
CN110377312B true CN110377312B (en) | 2024-02-06 |
Family
ID=68254214
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910655500.1A Active CN110377312B (en) | 2019-07-19 | 2019-07-19 | A software upgrade method, device and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110377312B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107220074A (en) * | 2016-03-21 | 2017-09-29 | 阿里巴巴集团控股有限公司 | To the access of supporting layer software function, upgrade method and device |
CN108536460A (en) * | 2018-04-17 | 2018-09-14 | 南京高盛信息科技有限公司 | A kind of software automatic updating system of lightweight |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6418555B2 (en) * | 1998-07-21 | 2002-07-09 | Intel Corporation | Automatic upgrade of software |
CN102063321B (en) * | 2011-01-12 | 2016-04-13 | 中兴通讯股份有限公司 | The installation method of terminal software, device and system |
CN105335183A (en) * | 2014-08-06 | 2016-02-17 | 乐视致新电子科技(天津)有限公司 | Software upgrade method and system |
CN106874040A (en) * | 2017-01-17 | 2017-06-20 | 武汉天喻教育科技有限公司 | Realize that PC ends software is mourned in silence the system and method for upgrading based on Windows services |
-
2019
- 2019-07-19 CN CN201910655500.1A patent/CN110377312B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107220074A (en) * | 2016-03-21 | 2017-09-29 | 阿里巴巴集团控股有限公司 | To the access of supporting layer software function, upgrade method and device |
CN108536460A (en) * | 2018-04-17 | 2018-09-14 | 南京高盛信息科技有限公司 | A kind of software automatic updating system of lightweight |
Non-Patent Citations (2)
Title |
---|
系统封装部署在医院系统运维中的运用;陶长俊;;电脑知识与技术(27);全文 * |
系统自动更新升级软件SUS研究;谭安芬;王力;;电子工程师(06);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN110377312A (en) | 2019-10-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2016011743A1 (en) | Storage space saving method and apparatus | |
US10705828B2 (en) | Method and apparatus for updating application | |
US20170123781A1 (en) | Method, device and system for application updating | |
CN107329742A (en) | SDK call method and device | |
WO2017041397A1 (en) | Device control method and apparatus | |
CN105847430A (en) | Hybrid application page data access method and device | |
CN107483594A (en) | Method and device for displaying updated items | |
CN105100074A (en) | Data operation processing method, device and terminal equipment | |
CN106775903B (en) | Security policy file updating method and device | |
CN106598677A (en) | Method and device for downloading installation package | |
CN106126272A (en) | File system discharging method and device | |
CN105812515A (en) | Protection cover of mobile terminal, and method, device and terminal for setting system themes | |
CN107632835B (en) | Application installation method and device | |
CN107704259A (en) | Application upgrade method, apparatus and storage medium | |
CN105677513A (en) | Method and device for restoring backup data | |
CN107395624B (en) | Information processing method and device | |
CN106201628A (en) | Application program installation method and device | |
CN106406941A (en) | Method and apparatus for updating firmware | |
CN105095296B (en) | File management method and device | |
CN106162612B (en) | Method and device for controlling root authority | |
CN110221813B (en) | Application data connection establishment method and device, storage medium and electronic equipment | |
CN107463414B (en) | Application installation method and device | |
CN107071008A (en) | Localization method, device and the equipment of terminal device | |
CN107168731B (en) | System update control method and device | |
CN107861666B (en) | Desktop application installation method and 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |