CN107315602B - Application program upgrading method and terminal - Google Patents
Application program upgrading method and terminal Download PDFInfo
- Publication number
- CN107315602B CN107315602B CN201710335760.1A CN201710335760A CN107315602B CN 107315602 B CN107315602 B CN 107315602B CN 201710335760 A CN201710335760 A CN 201710335760A CN 107315602 B CN107315602 B CN 107315602B
- Authority
- CN
- China
- Prior art keywords
- application program
- upgrade
- upgrade package
- appid
- downloading
- 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
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention relates to an upgrading method and a terminal of an application program, wherein the method comprises the following steps: downloading an upgrade package from a server; and operating the upgrading packet, and assigning the AppID value of the application program to the AppID parameter of the upgrading packet so that the upgrading packet identifies the corresponding application program according to the AppID parameter and finishes upgrading operation. Under the condition that the updating contents of a plurality of different application programs are the same, the invention can reduce the workload when the upgrade package is established and avoid the condition that the upgrade package and the application programs are not matched because of incorrect upgrade configuration.
Description
Technical Field
The invention relates to a computer program technology, in particular to an application program upgrading technology.
Background
The installation package making tool is packaging software which is specially used for making installation programs, the installation programs are written by simply using scripts which are difficult and error-prone for most people, and the installation package making tool has the advantages that beginners can easily master the installation programs, the made installation programs are complete in functions, and the like. The Inno Setup is free installation and production software, is the biggest characteristic of the Inno Setup, is small, simple, convenient and exquisite, supports the past script, can quickly produce a standard Windows-style installation interface, and is enough to complete general installation tasks.
The method includes the steps that an Inno Setup is used for creating application installation packages or upgrade packages, each application needs to correspond to a unique identification id (namely AppID), when version upgrade is conducted, generally, one upgrade package can only correspond to one application, and in some cases, one universal update package is used for conducting version upgrade on multiple applications.
Generally, an upgrade package created by the inno setup tool must specify a constant as the AppId, and appids corresponding to different applications are different, so that one application per liter level must create a corresponding upgrade package, and the upgrade package uniquely corresponds to the application.
Disclosure of Invention
In order to overcome the defects of the prior art, one of the objectives of the present invention is to provide an application program upgrading method, which can solve the problem that one application program per liter level must create a corresponding upgrade package.
The second purpose of the present invention is to provide a terminal, which can solve the problem that one application per liter level must create a corresponding upgrade package.
In order to achieve one of the above purposes, the technical scheme adopted by the invention is as follows:
an application program upgrading method, comprising the following steps:
downloading an upgrade package from a server;
and operating the upgrading packet, and assigning the AppID value of the application program to the AppID parameter of the upgrading packet so that the upgrading packet identifies the corresponding application program according to the AppID parameter and finishes upgrading operation.
Preferably, the upgrading operation includes the following steps:
exiting the application;
installing the upgrade package and finishing the updating of the registry information so as to update the version number of the application program in the registry;
and restarting the application program to finish upgrading operation.
Preferably, the downloading of the upgrade package from the server specifically includes the following steps: and when the server side is checked to have the version updating information of the application program, downloading the upgrade package from the server side to a local temporary directory.
Preferably, when the upgrade package is operated, whether the application program is locally installed is judged, if yes, the AppID value of the application program is assigned to the AppID parameter of the upgrade package, and if not, the upgrade operation is quitted.
In order to achieve the second purpose, the technical scheme adopted by the invention is as follows:
a terminal comprising a memory and a processor;
the memory to store program instructions;
the processor is configured to execute the program instructions to perform the following steps:
downloading an upgrade package from a server;
and operating the upgrading packet, and assigning the AppID value of the application program to the AppID parameter of the upgrading packet so that the upgrading packet identifies the corresponding application program according to the AppID parameter and finishes upgrading operation.
Preferably, the upgrading operation includes the following steps:
exiting the application;
installing the upgrade package and finishing the updating of the registry information so as to update the version number of the application program in the registry;
and restarting the application program to finish upgrading operation.
Preferably, the downloading of the upgrade package from the server specifically includes the following steps: and when the server side is checked to have the version updating information of the application program, downloading the upgrade package from the server side to a local temporary directory.
Preferably, when the upgrade package is operated, whether the application program is locally installed is judged, if yes, the AppID value of the application program is assigned to the AppID parameter of the upgrade package, and if not, the upgrade operation is quitted.
Compared with the prior art, the invention has the beneficial effects that:
under the condition that the updating contents of a plurality of different application programs are the same, the invention can reduce the workload when the upgrade package is established and avoid the condition that the upgrade package and the application programs are not matched because of incorrect upgrade configuration.
Drawings
FIG. 1 is a flow chart of an upgrade method according to a preferred embodiment of the present invention;
fig. 2 is a schematic structural diagram of a terminal according to a preferred embodiment of the present invention.
Detailed Description
The invention will be further described with reference to the accompanying drawings and the detailed description below:
the embodiment provides an upgrading method of an application program. Before the upgrading method is implemented, an upgrading packet is created. The process of creating the upgrade package is as follows:
step 1: and opening the inosetup software, creating an inosetup template script, and manually inputting the version number after the upgrade, the release information in the upgrade package, the update file contained in the upgrade package and other information at the starting position of the template script.
Step 2: a function method GetAppId related code for acquiring a command line parameter ApId is manually input in a [ code ] section.
And step 3: the acquisition mode of manually modifying the value of the AppId parameter in the [ Setup ] section is acquired by a function GetAppId instead. Thus the AppId value of the upgrade package will be specified by the command line parameters.
Code example:
AppId={code:getAppId}
and 4, step 4: in the initializeseetup function, a relevant code for judging whether the application is installed is added. And searching the specified position of the registry through the AppId, and judging whether the application program is installed in the system. And if the corresponding application program is not installed, exiting the upgrading operation after popping up the error prompt message.
And 5: in the CurStepChanged function, the relevant code in the update registry about the application version number is added. By updating the registry information, the information display of the version number and the like of the application program in the system can be updated.
Step 6: the upgrade package of this time is generated by the inno setup tool compilation using the template script and related files created in the previous step.
And 7: and configuring upgrading information of the application program at the server side, so that the application program receives version updating related data from the remote server side when the version of the application program is checked.
After the upgrade package is created and the application program is started, the upgrade method flow shown in fig. 1 is executed.
And step S1, downloading the upgrade package from the server.
The method specifically comprises the following steps: and when the server side is checked to have the version updating information of the application program, downloading an upgrade package from the server side to a local temporary directory, and then operating the upgrade package through the command line parameters.
Step S2, the upgrade package is run, whether the application program is installed locally (realized by the relevant codes in step 4) is determined, if yes, the AppID value of the application program is assigned to the AppID parameter of the upgrade package, that is, the unique AppID of the application program is transmitted to the upgrade package (realized by the relevant codes in steps 2 and 3), so that the upgrade package identifies the corresponding application program according to the AppID parameter and completes the upgrade operation, otherwise, the upgrade operation is exited.
That is to say, the app id parameter of the upgrade package of the present embodiment is dynamically transmitted by the application program, so as to implement the upgrade operation of the same upgrade package on different application programs, that is, the upgrade package of the present embodiment is a general upgrade package. It should be noted that, in the prior art, the app id of a common upgrade package is a constant, and different application programs cannot be upgraded.
Specifically, the upgrading operation includes the following steps:
exiting the application;
installing the upgrade package and completing the updating of the registry information, thereby updating the version number of the application program in the registry (realized by the relevant codes in the step 5);
and restarting the application program to finish upgrading operation.
As shown in fig. 2, a terminal corresponding to the above method is provided, which includes a memory and a processor;
the memory to store program instructions;
the processor is configured to execute the program instructions to perform the following steps:
downloading an upgrade package from a server;
and operating the upgrading packet, and assigning the AppID value of the application program to the AppID parameter of the upgrading packet so that the upgrading packet identifies the corresponding application program according to the AppID parameter and finishes upgrading operation.
Preferably, the upgrading operation includes the following steps:
exiting the application;
installing the upgrade package and finishing the updating of the registry information so as to update the version number of the application program in the registry;
and restarting the application program to finish upgrading operation.
Preferably, the downloading of the upgrade package from the server specifically includes the following steps: and when the server side is checked to have the version updating information of the application program, downloading the upgrade package from the server side to a local temporary directory.
Preferably, when the upgrade package is operated, whether the application program is locally installed is judged, if yes, the AppID value of the application program is assigned to the AppID parameter of the upgrade package, and if not, the upgrade operation is quitted.
Various other modifications and changes may be made by those skilled in the art based on the above-described technical solutions and concepts, and all such modifications and changes should fall within the scope of the claims of the present invention.
Claims (6)
1. An application program upgrading method is characterized by comprising the following steps:
downloading an upgrade package from a server;
and operating the upgrade package, judging whether the application program is locally installed, if so, assigning the AppID value of the application program to the AppID parameter of the upgrade package so that the upgrade package identifies the corresponding application program according to the AppID parameter and completes the upgrade operation to realize the upgrade operation of the same upgrade package on different application programs, otherwise, quitting the upgrade operation, wherein the AppID value is specified by the command line parameter.
2. The upgrade method according to claim 1, wherein the upgrade operation includes the steps of:
exiting the application;
installing the upgrade package and finishing the updating of the registry information so as to update the version number of the application program in the registry;
and restarting the application program to finish upgrading operation.
3. The upgrade method according to claim 1, wherein the downloading of the upgrade package from the server side specifically comprises the steps of: and when the server side is checked to have the version updating information of the application program, downloading the upgrade package from the server side to a local temporary directory.
4. A terminal comprising a memory and a processor;
the memory to store program instructions;
the processor is configured to execute the program instructions to perform the following steps:
downloading an upgrade package from a server;
and operating the upgrade package, judging whether the application program is locally installed, if so, assigning the AppID value of the application program to the AppID parameter of the upgrade package, so that the upgrade package identifies the corresponding application program according to the AppID parameter and completes the upgrade operation to realize the upgrade operation of the same upgrade package on different application programs, otherwise, quitting the upgrade operation, wherein the AppID value is specified by the command line parameter.
5. The terminal of claim 4, wherein the upgrade operation comprises the steps of:
exiting the application;
installing the upgrade package and finishing the updating of the registry information so as to update the version number of the application program in the registry;
and restarting the application program to finish upgrading operation.
6. The terminal of claim 4, wherein the downloading of the upgrade package from the server specifically comprises the steps of: and when the server side is checked to have the version updating information of the application program, downloading the upgrade package from the server side to a local temporary directory.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710335760.1A CN107315602B (en) | 2017-05-12 | 2017-05-12 | Application program upgrading method and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710335760.1A CN107315602B (en) | 2017-05-12 | 2017-05-12 | Application program upgrading method and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107315602A CN107315602A (en) | 2017-11-03 |
CN107315602B true CN107315602B (en) | 2021-02-12 |
Family
ID=60181565
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710335760.1A Active CN107315602B (en) | 2017-05-12 | 2017-05-12 | Application program upgrading method and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107315602B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110502263B (en) * | 2019-08-14 | 2023-04-07 | 深圳市东微智能科技股份有限公司 | Upgrade package manufacturing method, system and computer readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103902299A (en) * | 2012-12-24 | 2014-07-02 | 航天信息股份有限公司 | Software version updating method and system |
CN106126290A (en) * | 2016-06-27 | 2016-11-16 | 微梦创科网络科技(中国)有限公司 | Application program optimization method, Apparatus and system |
CN106485153A (en) * | 2016-10-10 | 2017-03-08 | 聚好看科技股份有限公司 | Version upgrading method and terminal unit |
CN106648810A (en) * | 2017-01-24 | 2017-05-10 | 东软集团股份有限公司 | Application program resource obtaining method and device |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020138499A1 (en) * | 2001-01-05 | 2002-09-26 | Anderson Jay R. | Function/service based data export |
US6754895B1 (en) * | 2001-04-26 | 2004-06-22 | Palm Source, Inc. | Method and system for automatic firmware updates in a portable hand-held device |
CN102147723A (en) * | 2010-02-05 | 2011-08-10 | 北京金山数字娱乐科技有限公司 | Method and system for generating software packages |
CN102033771B (en) * | 2010-12-24 | 2013-09-25 | 北京握奇数据系统有限公司 | Method and device for applying patch program in Java Card |
CN102567078B (en) * | 2011-12-28 | 2014-12-24 | 华为数字技术(成都)有限公司 | Method and device for virtualizing registry |
CN103218242B (en) * | 2013-04-19 | 2016-04-06 | 飞天诚信科技股份有限公司 | A kind of method of automatic renewal |
CN104866341B (en) * | 2015-05-07 | 2018-10-09 | 北京金山安全软件有限公司 | Component upgrading method and device and terminal |
-
2017
- 2017-05-12 CN CN201710335760.1A patent/CN107315602B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103902299A (en) * | 2012-12-24 | 2014-07-02 | 航天信息股份有限公司 | Software version updating method and system |
CN106126290A (en) * | 2016-06-27 | 2016-11-16 | 微梦创科网络科技(中国)有限公司 | Application program optimization method, Apparatus and system |
CN106485153A (en) * | 2016-10-10 | 2017-03-08 | 聚好看科技股份有限公司 | Version upgrading method and terminal unit |
CN106648810A (en) * | 2017-01-24 | 2017-05-10 | 东软集团股份有限公司 | Application program resource obtaining method and device |
Also Published As
Publication number | Publication date |
---|---|
CN107315602A (en) | 2017-11-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108399083B (en) | System deployment method, device, electronic equipment and storage medium | |
CN107992308B (en) | Plug-in management method for android terminal application program | |
CN109451472B (en) | Dynamic management method for multiple Bluetooth chips on Android intelligent device | |
US20120210317A1 (en) | Method and apparatus for updating data card | |
CN108874437B (en) | Online cloud updating method for android application program | |
NO312269B1 (en) | Software Upgrade Automation Procedure | |
CN105389187B (en) | System updating method | |
CN105975298A (en) | Method and system for remotely controlling applications of Android terminal | |
CN104113430A (en) | Cloud computing data center automatic deployment software framework design | |
CN111427594B (en) | Application program running method and device | |
US20170262263A1 (en) | Process and system for the generation of an operating program in the form of a mobile application that is capable of operating on a mobile device | |
CN106775876B (en) | Method for quickly starting application by android system | |
CN112615747B (en) | Method and device for automatically deploying and configuring network equipment | |
CN113064630A (en) | Mobile terminal APP automatic packaging method and system, electronic device and storage medium | |
CN106502685B (en) | Method and system for upgrading database | |
CN112860251A (en) | Method and system for constructing website front end | |
CN107315602B (en) | Application program upgrading method and terminal | |
CN106681759A (en) | Software updating method and mobile terminal | |
US20170199733A1 (en) | Method for terminal to update operating system, terminal and system | |
CN113434164B (en) | Cloud configuration updating method and system for setting item of vehicle-mounted entertainment host | |
CN111338708A (en) | Application program processing method, client and system based on android plug-in | |
CN113656063A (en) | System version replacing method, device, equipment and computer readable medium | |
CN108874405B (en) | OpenStack environment upgrading method | |
JP2000035879A (en) | Version up system of client application | |
CN112667255A (en) | Updating method, updating device, electronic equipment and storage medium |
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 | ||
PP01 | Preservation of patent right | ||
PP01 | Preservation of patent right |
Effective date of registration: 20210922 Granted publication date: 20210212 |