Search

CN-121996269-A - Software type replacement or version switching control method, system, equipment, medium and product

CN121996269ACN 121996269 ACN121996269 ACN 121996269ACN-121996269-A

Abstract

The application discloses a method, a system, equipment, a medium and a product for controlling type replacement or version switching of software, which relate to the field of software upgrading and comprise the steps of acquiring current software package information actively reported by a client according to a preset time interval; and after receiving the address, the client downloads the installation package and executes silent updating operation to realize the type replacement or version switching of the software. The application realizes silence and flow automation of software update, does not need user intervention, and improves the operation and maintenance efficiency under unattended or frequent update scenes. Meanwhile, version upgrading is supported, version rollback or switching among different software types can be flexibly executed, the defect of unidirectional and stiff existing silent upgrading schemes is overcome, and the requirements of complex production environments on agility and manageability of software deployment are met.

Inventors

  • SONG YAO
  • FENG QIANG
  • LIU JINXIN
  • SHOU ZHAOBING

Assignees

  • 深圳市太美亚电子科技有限公司

Dates

Publication Date
20260508
Application Date
20251231

Claims (10)

  1. 1. A software type change or version switch control method is characterized in that, the software type replacement or version switching control method comprises the following steps: The method comprises the steps that a server side obtains software package information of a client side at the current time, wherein the software package information comprises a device identification code, a software name and a software version number of the client side, and the software package information is actively reported by the client side according to a preset time interval; the server terminal determines the current software configuration information based on the device identification code of the client terminal in the current software package information, wherein the software configuration information comprises an expected software name and an expected software version number; If the current software name is inconsistent with the expected software name or the software version number is inconsistent with the expected software version number, the server side generates an installation resource address of an expected software installation package corresponding to the expected software name and the expected software version number; And the client downloads the expected software installation package based on the installation resource address, and executes silent updating operation to realize the type replacement or version switching of the software.
  2. 2. The method for controlling type replacement or version switching of software according to claim 1, wherein before the server generates the installation resource address of the expected software installation package corresponding to the expected software name and the expected software version number, the method further comprises: The server side generates an asymmetric key pair through an asymmetric key algorithm, wherein the asymmetric key pair comprises a private key which is stored in the server side and used for signing and a public key which is issued to the client side along with a software installation resource address and used for verification; the server side calculates the expected software installation package through a hash algorithm to obtain a first hash value, and signs the first hash value through a digital signature algorithm by using the private key to obtain a digital signature value; And the server side correlates and stores the public key, the first hash value and the digital signature value with the software installation resource address so as to be issued to the client side along with the software installation resource address.
  3. 3. The method for controlling type replacement or version switching of software according to claim 2, wherein the client downloads a desired software installation package based on the installation resource address, and performs silent update operation, thereby implementing type replacement or version switching of software, and the method specifically comprises: The client downloads a desired software installation package to a temporary directory based on the installation resource address; the client calculates the downloaded expected software installation package through a hash algorithm to obtain a second hash value, and verifies the received digital signature value through a digital signature algorithm by using a public key to obtain a recovery value of the first hash value; if the second hash value is consistent with the recovery value of the first hash value, judging that the security check is passed, stopping running the software, deleting all files in the corresponding software program installation catalog of the software, copying the files in the temporary catalog into the corresponding software program installation catalog of the software, directly starting the updated software after copying is completed, and realizing type replacement or version switching of the software; if the second hash value is inconsistent with the recovery value of the first hash value, judging that the security check fails, deleting all files in the temporary directory and reporting an exception to a server.
  4. 4. The method for controlling the type change or version switch of software according to claim 1, wherein the text names of the software package information and the software program installation directory are each named by a software name plus a software version, and the software package information is stored in a text form.
  5. 5. The method for controlling type replacement or version switching of software according to claim 1, wherein the software installation resource address generated by the server is an out-link address of the cloud storage space, and the client completes downloading of the desired software installation package by HTTP request.
  6. 6. The method for controlling the type change or version switch of software according to claim 1, wherein the client actively reports the information of the software package and performs the silent update operation at preset time intervals, which is completed by a system-level daemon, and the system-level daemon comprises a background process based on a Windows service.
  7. 7. A type change or version switch control system of software, characterized in that the type change or version switch control system of software applies the type change or version switch control method of software according to any one of claims 1 to 6, the type change or version switch control system of software comprising: the system comprises a software package information acquisition module, a software package information processing module and a software package information processing module, wherein the software package information acquisition module is used for acquiring software package information of a client at the current time by a server side, and comprises a device identification code, a software name and a software version number of the client; the system comprises a configuration information determining module, a configuration information processing module and a configuration information processing module, wherein the configuration information determining module is used for determining the current software configuration information based on the equipment identification code of a client in the current software package information by a server end; The server side is used for generating a software installation resource address corresponding to the expected software name and the expected software version number at present if the software name at present is inconsistent with the expected software name or the software version number at present is inconsistent with the expected software version number; and the software updating module is used for downloading the installation package based on the software installation resource address by the client, and executing silent updating operation to realize the type replacement or version switching of the software.
  8. 8. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor executes the computer program to implement the type change or version switch control method of software according to any of claims 1-6.
  9. 9. A computer readable storage medium having stored thereon a computer program, characterized in that the computer program, when executed by a processor, implements a type change or version switch control method of software according to any of claims 1-6.
  10. 10. A computer program product comprising a computer program, characterized in that the computer program, when executed by a processor, implements a method of type change or version switch control of software according to any of claims 1-6.

Description

Software type replacement or version switching control method, system, equipment, medium and product Technical Field The present application relates to the field of software upgrade, and in particular, to a method, system, device, medium, and product for controlling type change or version switch of software. Background The main method for upgrading/updating PC client software is to download the latest software package from the server to complete the upgrading operation. The developer needs to upload the installation package to a server or a website, and the client prompts the user after detecting the new version, and the user can download the installation package for updating after confirming the new version. The disadvantage of this approach is that the update process requires user interaction, which is inefficient and experienced poorly for application scenarios that require frequent updates or are inconvenient for the user to directly operate the screen. To further reduce user intervention, silent upgrade modes have also emerged in the related art, which typically host upgrade service modules to Windows services, periodically detect updates in the background, and automatically download and replace files in software directories if new versions exist. However, the silent upgrading mode still has obvious defects that only one-way upgrading to a higher version is supported, the silent upgrading mode cannot be flexibly switched to a specified historical version according to actual requirements, and the silent upgrading mode cannot be replaced among different software types. For example, in a production environment, software versions or software types often need to be switched according to different device types or production products, and the existing silent upgrade mechanism cannot meet the requirement of such flexible switching. Therefore, an automatic control method capable of supporting silent upgrading, flexible version switching and type changing of software is needed to solve the problems that updating depends on user operation, silent rollback cannot be achieved or type switching is not achieved across software, and accordingly automation degree and adaptability of software deployment and maintenance are improved. Disclosure of Invention The application aims to provide a software type replacement or version switching control method, a system, equipment, a medium and a product, which can immediately determine the name and the expected version number of expected software according to an equipment identification code on the premise of no need of user intervention, and complete silent upgrading through one-time downloading and integral catalog replacement, thereby realizing flexible switching of the same equipment between any historical version or different software types and improving the automation degree and adaptability of software deployment and maintenance. In order to achieve the above object, the present application provides the following solutions: in a first aspect, the present application provides a method for controlling type replacement or version switching of software, including: The method comprises the steps that a server side obtains software package information of a client side at the current time, wherein the software package information comprises a device identification code, a software name and a software version number of the client side, and the software package information is actively reported by the client side according to a preset time interval; the server terminal determines the current software configuration information based on the device identification code of the client terminal in the current software package information, wherein the software configuration information comprises an expected software name and an expected software version number; If the current software name is inconsistent with the expected software name or the software version number is inconsistent with the expected software version number, the server side generates an installation resource address of an expected software installation package corresponding to the expected software name and the expected software version number; And the client downloads the expected software installation package based on the installation resource address, and executes silent updating operation to realize the type replacement or version switching of the software. In a second aspect, the present application provides a software type change or version switch control system, comprising: the system comprises a software package information acquisition module, a software package information processing module and a software package information processing module, wherein the software package information acquisition module is used for acquiring software package information of a client at the current time by a server side, and comprises a device identification code, a software name and a software version number of the client; the system