CN110007944A - A kind of application program updating packet and upgrade method - Google Patents
A kind of application program updating packet and upgrade method Download PDFInfo
- Publication number
- CN110007944A CN110007944A CN201910278384.6A CN201910278384A CN110007944A CN 110007944 A CN110007944 A CN 110007944A CN 201910278384 A CN201910278384 A CN 201910278384A CN 110007944 A CN110007944 A CN 110007944A
- Authority
- CN
- China
- Prior art keywords
- upgrading
- attribute
- file
- upgrade
- upgrade package
- 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.)
- Withdrawn
Links
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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
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)
Abstract
The invention discloses a kind of application program updating packet and upgrade methods, can support application program updating.The upgrade package includes XML file and upgrading inventory file, in which: the XML file, for instructing the application program updating;The XML file includes: array root element UpdateConfig, array daughter element SupportVersion and the sub- attribute List of array;The root element UpdateConfig, for recording upgrading mode and the version number of the upgrade package;The daughter element SupportVersion, for recording the version number of the upgrade package adaptation;The sub- attribute List, for recording the inventory of upgrade file;The upgrading inventory file includes the upgrade file needed for upgrading.Using the embodiment of the present invention, the upgrading of several operation systems, miscellaneous editions application program can be realized, it is easy to use, compatible strong.
Description
Technical field
The present invention relates to computer technology, espespecially a kind of application program updating packet and upgrade method.
Background technique
Existing application program updating packet, root is also different in applicable different operating system application program updating packet, works as liter
When the initial version of grade is with target version difference, the setting that when upgrading carries out is also different, uses the upgrading of existing application program
Cumbersome setting is needed when packet upgrading, and is needed by being manually accordingly arranged, and operation is also easy error.
Summary of the invention
In order to solve the above-mentioned technical problems, the present invention provides a kind of application program updating packet and upgrade method, Neng Goushi
Existing application program updating.
In order to reach the object of the invention, the present invention provides a kind of application program updating packets, which is characterized in that the upgrading
Packet includes XML file and upgrading inventory file, in which:
The XML file, for instructing the application program updating;The XML file includes: array root element
UpdateConfig, array daughter element SupportVersion and the sub- attribute List of array;The root element UpdateConfig,
For recording upgrading mode and the version number of the upgrade package;The daughter element SupportVersion, for recording the liter
The version number of grade packet adaptation;The sub- attribute List, for recording the inventory of upgrade file;
The upgrading inventory file includes the upgrade file needed for upgrading.
In a kind of exemplary embodiment, the XML file further includes array daughter element SupportOn;
The daughter element SupportOn, for identifying the information of the upgrade package adapting operation system.
In a kind of exemplary embodiment, the daughter element SupportOn includes: attribute key, attribute OSName, attribute
Version and attribute LongBit;The daughter element SupportOn, for identifying the letter of the upgrade package adapting operation system
Breath, comprising:;
The attribute key, for identifying the corresponding number of adapting operation system;
The attribute OSName, for identifying the title of adapting operation system;
The attribute Version, for identifying the version number of adapting operation system;
The attribute LongBit, for identifying the digit of adapting operation system.
In a kind of exemplary embodiment, the XML file further includes array daughter element Files;The daughter element
Files, for verifying whether the upgrade package is tampered.
In a kind of exemplary embodiment, the sub- attribute List includes one or more array element Item, the number
Group element Item includes attribute Type, attribute Operation, attribute Source, attribute Target, in which:
The attribute Type, for identifying attribute Type described in the type of upgrade file, for identifying the class of upgrade file
Type;
The attribute Operation, the type of the operation for identifying upgrade file;
The attribute Source, for identifying position of the upgrade file in the upgrade package;
The attribute Target, for identifying upgrading destination path;
The sub- attribute Support, for identifying the operating system of upgrade file adaptation.
In a kind of exemplary embodiment, the upgrading inventory file includes multiple upgrade files, the operating system
Data width includes one or more;
The XML file and upgrading inventory file are located at the first class catalogue of the upgrade package;
The data width is located at the second-level directory of the upgrade package.
In a kind of exemplary embodiment, the upgrading mode includes heat upgrading, restarts upgrading and complete upgrading.
In order to reach the object of the invention, the present invention also provides a kind of application program updating method, the method is based on upper
The upgrade package stated is realized, which comprises
Judge whether the upgrade package meets upgrading and require according to the XML file;
When demanded, the upgrading inventory file is obtained to be upgraded.
It is described to judge whether the upgrade package meets upgrading and want according to the XML file in a kind of exemplary embodiment
It asks and includes:
Judge whether upgrade package meets the version of pre-upgrade according to the version number recorded in the root element UpdateConfig
This;
Judge whether the version of pre-upgrade operating system is adapted to according to the daughter element SupportVersion;
When the version number is the version adaptation of the version number of pre-upgrade and the pre-upgrade operating system, meets and rise
Grade requires.
In a kind of exemplary embodiment, when the upgrade package includes daughter element SupportOn, according to the acquisition institute
It states upgrading inventory file and upgrade and include:
The corresponding number of OS Type is obtained in daughter element SupportOn;
According to the number, the sub- attribute List is traversed, corresponding upgrading inventory file is obtained;
Upgraded according to the acquisition upgrading inventory file.
Compared with prior art, it includes XML file and upgrading inventory file that the present invention, which includes the upgrade package, in which: institute
XML file is stated, for instructing the application program updating;The XML file includes: array root element UpdateConfig, number
The group daughter element SupportVersion and sub- attribute List of array;The root element UpdateConfig, for recording the liter
The upgrading mode of grade packet and version number;The daughter element SupportVersion, for recording the version of the upgrade package adaptation
Number;The sub- attribute List, for recording the inventory of upgrade file;The upgrading inventory file includes the upgrading needed for upgrading
File.By the application application program updating packet, it can be realized the upgrading of several operation systems, miscellaneous editions application program, make
With convenient, compatibility is strong.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification
It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention can be by specification, right
Specifically noted structure is achieved and obtained in claim and attached drawing.
Detailed description of the invention
Attached drawing is used to provide to further understand technical solution of the present invention, and constitutes part of specification, with this
The embodiment of application technical solution for explaining the present invention together, does not constitute the limitation to technical solution of the present invention.
Fig. 1 is the structural schematic diagram of the application program updating packet of the embodiment of the present invention one;
Fig. 2 is the application program updating packet bibliographic structure schematic diagram of the embodiment of the present invention two;
Fig. 3 is the flow chart of the application program updating method of the embodiment of the present invention three.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention
Embodiment be described in detail.It should be noted that in the absence of conflict, in the embodiment and embodiment in the application
Feature can mutual any combination.
Step shown in the flowchart of the accompanying drawings can be in a computer system such as a set of computer executable instructions
It executes.Also, although logical order is shown in flow charts, and it in some cases, can be to be different from herein suitable
Sequence executes shown or described step.
Embodiment one
A kind of application program updating packet is present embodiments provided, as described in Figure 1, the upgrade package includes 11 He of XML file
Upgrade inventory file 12, in which:
The XML file 11, for instructing the application program updating;Wherein, the XML file 11 includes: array root
Element UpdateConfig (updating configuration), array daughter element SupportVersion (adaptation version) and the sub- attribute List of array
(inventory);The root element UpdateConfig, for recording upgrading mode and the version number of the upgrade package;The daughter element
SupportVersion, for recording the version number of the upgrade package adaptation;The sub- attribute List, for recording upgrade file
Inventory;
The upgrading inventory file 12 includes the upgrade file needed for upgrading.
In the embodiment of the present invention, by the setting to XML file 11, it can be realized several operation systems, miscellaneous editions are answered
It is easy to use, compatible strong with the upgrading of program.
In a kind of exemplary embodiment, the XML file refers to the XML for instructing the application program updating
File describes upgrading and needs to carry out which verification, acquisition is needed to upgrade which file in inventory file, to upgrading inventory text
Part carries out which operation etc.;The required upgrade file is multiple.
In a kind of exemplary embodiment, upgrading mode includes heat upgrading, restarts upgrading and complete upgrading.The version number
For the version number Version after upgrading successfully;The preposition version that the version number of the adaptation is supported by application program updating packet.
In a kind of exemplary embodiment, the XML file further includes array daughter element SupportOn;
The daughter element SupportOn, for identifying the information of the upgrade package adapting operation system.
In a kind of exemplary embodiment, the daughter element SupportOn includes: attribute key (i.e. corresponding coding), belongs to
Property OSName (OS name), attribute Version (version number of operating system) and (the operating system position attribute LongBit
Number);The daughter element SupportOn, for identifying the information of the upgrade package adapting operation system, comprising:;
The attribute key, for identifying the corresponding number of adapting operation system;
The attribute OSName, for identifying the title of adapting operation system;
The attribute Version, for identifying the version number of adapting operation system;
The attribute LongBit, for identifying the digit of adapting operation system.
In a kind of exemplary embodiment, attribute (Version), attribute (LongBit) can be All, illustrate to be adapted to institute
There are minor release/point release, all operating system digits.
In a kind of exemplary embodiment, the XML file further includes array daughter element Files (verification file);It is described
Daughter element Files, for verifying whether the upgrade package is tampered.
In a kind of exemplary embodiment, the daughter element Files include: attribute Source (file to be verified),
Hash and Type, wherein Source describes the address of vital document, and when inputting correct hash value and Type value, verification is logical
It crosses.Wherein, Hash and Type can be pre-set, be also possible to what root was generated in preset rules, without limitation.
In a kind of exemplary embodiment, the sub- attribute List includes one or more array element Item (project),
The array element Item includes attribute Type, attribute Operation, attribute Source, attribute Target, in which:
The attribute Type (type), for identifying file type, that is, the type for the file for wanting progressive to upgrade;
The attribute Operation (operation), the type of the operation for identifying upgrade file want progressive to upgrade
The type of file;
The attribute Source (source address), for identifying position of the upgrade file in the upgrade package;
The attribute Target (destination address), for identifying upgrading destination path;
The sub- attribute Support, for identifying the operating system of upgrade file adaptation.
In a kind of exemplary embodiment, dynamic link library, executable program, ordinary file etc., different file types
For different upgrading processes.The type of updating operation includes: to increase (Add), delete, replace (change), different updating operations.
The operating system of support is such as:<Platform Key=" 1 "/>is to indicate that the operating system of attribute key=1 needs to be implemented the upgrading
Clearly, attribute key is consistent with the attribute key in array daughter element SupportOn;The destination path that upgrades is to pre-upgrade file
The path of position.
In a kind of exemplary embodiment, the upgrading inventory file 12 includes that the upgrading of one or more operating systems is clear
Monofile 12, the data width of the operating system include one or more;
The XML file 11 and upgrading inventory file 12 are located at the first class catalogue of the upgrade package;
The data width is located at the second-level directory of the upgrade package.
In a kind of exemplary embodiment, the upgrading mode includes heat upgrading, restarts upgrading and complete upgrading.
In a kind of exemplary embodiment, the XML file refers to extensible markup language Extensible Markup
Language is a kind of for marking electronic document to make it have structural markup language;
Compared with prior art, the present invention include the upgrade package include XML file 11 and upgrading inventory file 12,
In: the XML file 11, for instructing the application program updating;Wherein, the XML file 11 includes: array root element
UpdateConfig, array daughter element SupportVersion and the sub- attribute List of array;The root element UpdateConfig,
For recording upgrading mode and the version number of the upgrade package;The daughter element SupportVersion, for recording the liter
The version number of grade packet adaptation;The sub- attribute List, for recording the inventory of upgrade file;The upgrading inventory file 12, packet
Containing upgrade file needed for upgrading.By the application application program updating packet, it can be realized several operation systems, miscellaneous editions are answered
It is easy to use, compatible strong with the upgrading of program.
Embodiment two
Application program updating packet in this implementation is a * .zip (* .7z*.tar) compressed package, and upgrade package filename is (non-
File type name) without limitation.Upgrade package includes the necessary file of upgrading, the XML file including guidance upgrading
(config.xml) and upgrading inventory file.Upgrade package can be encrypted, and guarantee the integrality and confidentiality of upgrade package.
Upgrading mode, the version number, the operation system for being adapted to version number, adaptation that the upgrade package is applicable in are identified in XML file
System enumerates the details of upgrading inventory file, including the path relative to upgrade package, upgrading destination path, verification mode, school
It tests code, upgrade method, which kind of operating system is adapted to.
The upgrading mode identified in XML file includes: that upgrading mode includes heat upgrading, restarts upgrading, complete upgrading;
So-called heat upgrading is exactly, by soft closing, to cut off part industry under the premise of guaranteeing that application program operates normally
Business is replaced corresponding module (dynamic link library), and module is reloaded, and completes upgrade function
It is so-called to restart upgrading, exactly suspend application program, by increase, modification, removing module (dynamic link library), lays equal stress on
Application program is opened, achievees the purpose that function upgrading.
So-called complete upgrading is exactly a kind of legacy version unloading of automation, installs the escalation process of new version.
Heat upgrading restarts upgrading using file as upgrade unit, and when difference is heat upgrading, application program will not be by end
Only, application program is restarted when restarting upgrading.Using application program as upgrade unit, when upgrading, resets application program for complete upgrading.
The version number identified in XML file: the version number after version number identifier upgrading;It is adapted to version number identifier upgrade package institute
The preposition version supported can configure multiple versions and realize multi version, cross-version upgrading.
The operating system of the adaptation identified in XML file: supporting cross-platform, multiple operating system upgrade package to merge, and guarantees
The availability of upgrade package, the operating system and the adapting operation system matches in inventory file details of support, identifies the liter
Whether grade inventory file is used for the upgrading of the operating system, is discussed in detail hereinafter.
For the same version, different upgrading modes, different operating system, although upgrading inventory file is not identical,
But upgrade package multiplexing is same.The upgrade package of the i.e. same version, upgrading inventory file cover all upgrading modes, various behaviour
Make the sum of file necessary to system.Various operating system update inventory file differences are readily appreciated that (such as dynamic link library
Windows is dll file, and Linux is so file), but different upgrading modes, inventory file is different, as shown in table 1:
Table 1
Upgrading mode | Required upgrading inventory file |
Heat upgrading | Dynamic link library, configuration file, executable file, alternative document |
Restart upgrading | Dynamic link library, configuration file, executable file, alternative document |
Refitting upgrading | Installation kit |
Configuration file sample is as follows:
Above-mentioned configuration file sample is explained below:
(1) root element (UpdateConfig), attribute (Mode) identify upgrading mode and are heat upgrading, restart upgrading or comprehensive
Upgrading, attribute (Version) recognition purpose version number, that is, the version number after upgrading successfully.In this example, < UpdateConfig
Mode=" Reboot " Version=" 5.0.0.4 " >, mark upgrading mode is to restart upgrading, and the version number after upgrading is
5.0.0.4;
(2) daughter element (SupportVersion) is an array, each array element identifies upgrade package adaptation
Version number, i.e. which kind of version can be upgraded with the upgrade package.In this example < Version VersionNumber=" 5.0.1.0 "/
>,<Version VersionNumber=" 5.0.1.1 "/>,<Version VersionNumber=" 5.0.1.2 "/>,<
Version VersionNumber=" 5.0.1.3 "/> mark adaptation version number be 5.0.1.0,5.0.1.1,5.0.1.2,
5.0.1.3;
(3) daughter element (SupportOn) is an array, identifies the operating system list of upgrade package support, can save
Slightly.It omits default and does not verify this installation kit to the availability of operating system, unconditionally use all inventory files.Each array
Element is all a kind of operation system information, is gathered around there are four attribute, any one attribute can not omit, comprising: attribute (key),
Attribute (OSName), attribute (Version) and attribute (LongBit);
Wherein, attribute (key) is operating system number, corresponding with hereinafter inventory file adaption system number, to mark
Know whether inventory file is adapted to the type operating system.Attribute (OSName), attribute (Version), attribute (LongBit)
Mark behaviour's system type, illustrates OS name, operating system minor release/point release, operating system digit, wherein attribute respectively
(Version), attribute (LongBit) can be All, illustrate to be adapted to all minor release/point releases, all operating system digits.
For example, Platform Key=" 1 " OSName=" Windows " Version=" Windows XP "
LongBit=" All "/mark, when System Number is equal to 2, systematic name is Windows ", the small version of operating system
It number is Windows XP, operating system digit is all to be applicable in.
(4) daughter element (Files) is an array, identifies the lists of documents that verification is needed in the upgrade package, it is convenient to omit.Often
One array element is the file in lists of documents, and not All Files require to verify, and the default of omission does not verify.Attribute
It (Source) is inventory file mark, corresponding with the attribute Source of hereinafter inventory file, actually inventory file is opposite
In the path of upgrade package;Attribute (Hash) is check code;Attribute (Type) is checking algorithm.Inventory i.e. in attribute (Source)
The specified checking algorithm of file attribute (Type) calculates the check code that check code must be specified with attribute (Hash) and matches, otherwise
Inventory file is illegal, if the inventory file participates in upgrading, upgrading failure.
(5) sub- attribute (List) is an array, describes the inventory of the All Files for upgrading, can not omit.Often
One array element (Item) is all an inventory file, and attribute (Type) identifies file type, for example, dynamic link library, can
Program, ordinary file etc. are executed, different file types is for different upgrading processes;Attribute (Operation) is upgrading behaviour
Make, such as increases, deletes, replaces, different updating operations.Attribute (Source) is inventory file mark, actually inventory file
Relative to the path of upgrade package, matched with the attribute (Source) in daughter element above (Files), to file verification and liter
Grade.Attribute (Target) is upgrading destination path, is a relative path, the current path relative to application program.Such as belong to
Property (Operation) be Add, i.e., this document (original route be attribute (Source)) is increased under installation path (destination path
For attribute (Target)).Sub- attribute (Support) is an array, identifies the upgrade file and executes in which kind of operating system
Upgrading, each array element (Platform) are the operating system of a support, attribute (Key) and above daughter element
(Support) attribute (Key) matching in, such as the upgrading inventory file, attribute is 1 or 2, i.e., when in middle daughter element
(Support) when upgrading in the operating system that attribute (key) is 1 or 2 in, this upgrade file is used.
In addition, application program updating packet bibliographic structure is as shown in Figure 2.First class catalogue UpdatePackage is general act folder,
Folder name can not be modified.The shared upgrade file of Windows, Linux and XML file are stored under first class catalogue
(config.xml, config.xml filename can not be modified).First class catalogue is subdivided into two second level mesh of Windows, Linux
Record;The file for not segmenting 32,64 is stored under second-level directory.Second-level directory is subdivided into 32,64 two three-level mesh simultaneously
Record;Under three-level catalogue storage i.e. subdivision Windows, Linux and again subdivision 32,64 file;It can also segment if needed
Level Four catalogue.
Application program updating packet necessity project: first class catalogue name UpdatePackage can not be changed, config.xml file
Name and catalogue can not be changed.Remaining second level and following catalogue are not important, are used only to distinguish file of the same name.Therefore, it rises
Grade packet catalogue very flexibly only can need the content matching in the storing directory and XML file of upgrade file.Catalogue explanation:
Table 2
Embodiment three
A kind of application program updating method is present embodiments provided, as shown in figure 3, this method is based on embodiment one or two institutes
The upgrade package stated realizes that the method includes S31-S32:
S31, judge whether the upgrade package meets upgrading and require according to the XML file;
S32, when demanded obtains the upgrading inventory file and is upgraded.
It is described to judge whether the upgrade package meets upgrading and want according to the XML file in a kind of exemplary embodiment
It asks and includes:
Judge whether upgrade package meets the version of pre-upgrade according to the version number recorded in the root element UpdateConfig
This;
Judge whether the version of pre-upgrade operating system is adapted to according to the daughter element SupportVersion;
When the version number is the version adaptation of the version number of pre-upgrade and the pre-upgrade operating system, meets and rise
Grade requires.
In a kind of exemplary embodiment, when the upgrade package includes daughter element SupportOn, according to the acquisition institute
It states upgrading inventory file and upgrade and include:
The corresponding number of OS Type is obtained in daughter element SupportOn;
According to the number, the sub- attribute List is traversed, corresponding upgrading inventory file is obtained;
Upgraded according to the acquisition upgrading inventory file.
In a kind of exemplary embodiment, the daughter element SupportOn checks that the type of the pre-upgrade operating system is
It is no to apply the upgrade package.The liter for obtaining corresponding upgrading inventory file and referring to reference numeral in acquisition upgrading inventory file
Grade file.
It will appreciated by the skilled person that whole or certain steps, system, dress in method disclosed hereinabove
Functional module/unit in setting may be implemented as software, firmware, hardware and its combination appropriate.In hardware embodiment,
Division between the functional module/unit referred in the above description not necessarily corresponds to the division of physical assemblies;For example, one
Physical assemblies can have multiple functions or a function or step and can be executed by several physical assemblies cooperations.Certain groups
Part or all components may be implemented as by processor, such as the software that digital signal processor or microprocessor execute, or by
It is embodied as hardware, or is implemented as integrated circuit, such as specific integrated circuit.Such software can be distributed in computer-readable
On medium, computer-readable medium may include computer storage medium (or non-transitory medium) and communication media (or temporarily
Property medium).As known to a person of ordinary skill in the art, term computer storage medium is included in for storing information (such as
Computer readable instructions, data structure, program module or other data) any method or technique in the volatibility implemented and non-
Volatibility, removable and nonremovable medium.Computer storage medium include but is not limited to RAM, ROM, EEPROM, flash memory or its
His memory technology, CD-ROM, digital versatile disc (DVD) or other optical disc storages, magnetic holder, tape, disk storage or other
Magnetic memory apparatus or any other medium that can be used for storing desired information and can be accessed by a computer.This
Outside, known to a person of ordinary skill in the art to be, communication media generally comprises computer readable instructions, data structure, program mould
Other data in the modulated data signal of block or such as carrier wave or other transmission mechanisms etc, and may include any information
Delivery media.
Claims (10)
1. a kind of application program updating packet, which is characterized in that the upgrade package includes XML file and upgrading inventory file, in which:
The XML file, for instructing the application program updating;The XML file includes: array root element
UpdateConfig, array daughter element SupportVersion and the sub- attribute List of array;The root element UpdateConfig,
For recording upgrading mode and the version number of the upgrade package;The daughter element SupportVersion, for recording the liter
The version number of grade packet adaptation;The sub- attribute List, for recording the inventory of upgrade file;
The upgrading inventory file includes the upgrade file needed for upgrading.
2. upgrade package according to claim 1, which is characterized in that the XML file further includes array daughter element
SupportOn;
The daughter element SupportOn, for identifying the information of the upgrade package adapting operation system.
3. upgrade package according to claim 2, which is characterized in that the daughter element SupportOn includes: attribute key, belongs to
Property OSName, attribute Version and attribute LongBit;The daughter element SupportOn, for identifying the upgrade package adaptation
The information of operating system, comprising:
The attribute key, for identifying the corresponding number of adapting operation system type;
The attribute OSName, for identifying adapting operation systematic name;
The attribute Version, for identifying the version number of adapting operation system;
The attribute LongBit, for identifying adapting operation system digit.
4. upgrade package according to claim 1, which is characterized in that the XML file further includes array daughter element Files;
The daughter element Files, for verifying whether the upgrade package is tampered.
5. upgrade package according to claim 1, which is characterized in that the sub- attribute List includes one or more array members
Plain Item, the array element Item include attribute Type, attribute Operation, attribute Source, attribute Target, in which:
The attribute Type, for identifying the type of upgrade file;
The attribute Operation, the type of the operation for identifying upgrade file;
The attribute Source, for identifying position of the upgrade file in the upgrade package;
The attribute Target, for identifying upgrading destination path;
The sub- attribute Support, for identifying the operating system of upgrade file adaptation.
6. upgrade package according to claim 1, which is characterized in that the upgrading inventory file includes multiple upgrade files,
The data width of operating system includes one or more;
The XML file and upgrading inventory file are located at the first class catalogue of the upgrade package;
The data width is located at the second-level directory of the upgrade package.
7. upgrade package according to claim 1, which is characterized in that the upgrading mode include heat upgrading, restart upgrading and
Complete upgrading.
8. a kind of application program updating method, which is characterized in that the method is based on liter of any of claims 1-7
Grade Bao Shixian, which comprises
Judge whether the upgrade package meets upgrading and require according to the XML file;
When demanded, the upgrading inventory file is obtained to be upgraded.
9. according to the method described in claim 8, it is characterized in that, described judge that the upgrade package is according to the XML file
No satisfaction upgrading requires to include:
Judge whether upgrade package meets the version of pre-upgrade according to the version number recorded in the root element UpdateConfig;
Judge whether the version of pre-upgrade operating system is adapted to according to the daughter element SupportVersion;
When the version number is the version adaptation of the version number of pre-upgrade and the pre-upgrade operating system, meets upgrading and want
It asks.
10. according to the method described in claim 8, it is characterized in that, when the upgrade package include daughter element SupportOn when,
Carrying out upgrading according to the acquisition upgrading inventory file includes:
The corresponding number of OS Type is obtained in daughter element SupportOn;
According to the number, the sub- attribute List is traversed, corresponding upgrading inventory file is obtained;
Upgraded according to the acquisition upgrading inventory file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910278384.6A CN110007944A (en) | 2019-04-09 | 2019-04-09 | A kind of application program updating packet and upgrade method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910278384.6A CN110007944A (en) | 2019-04-09 | 2019-04-09 | A kind of application program updating packet and upgrade method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110007944A true CN110007944A (en) | 2019-07-12 |
Family
ID=67170367
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910278384.6A Withdrawn CN110007944A (en) | 2019-04-09 | 2019-04-09 | A kind of application program updating packet and upgrade method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110007944A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110471689A (en) * | 2019-08-22 | 2019-11-19 | 北京元安物联技术有限公司 | A kind of application program updating method and device |
CN111367546A (en) * | 2020-02-26 | 2020-07-03 | 东风电子科技股份有限公司 | Method for realizing upgrading processing of xml configuration file in software upgrading process |
-
2019
- 2019-04-09 CN CN201910278384.6A patent/CN110007944A/en not_active Withdrawn
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110471689A (en) * | 2019-08-22 | 2019-11-19 | 北京元安物联技术有限公司 | A kind of application program updating method and device |
CN111367546A (en) * | 2020-02-26 | 2020-07-03 | 东风电子科技股份有限公司 | Method for realizing upgrading processing of xml configuration file in software upgrading process |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7313792B2 (en) | Method and system for servicing software | |
US7599970B2 (en) | Method and apparatus for updating a stored version of content stored in a storage device | |
US10621212B2 (en) | Language tag management on international data storage | |
KR101075388B1 (en) | Peripheral device driver maintenance scheme for networked peripheral device clients | |
US10489591B2 (en) | Detection system and method thereof | |
EP2210183B1 (en) | Managing updates to create a virtual machine facsimile | |
US20070061800A1 (en) | System and method for updating software in a network device | |
US8255361B2 (en) | Method and system for validating differential computer system update | |
CN102150136A (en) | Firmware update system and update image generation/distribution server apparatus | |
US20150088815A1 (en) | Method and system for effecting incremental changes to a repository | |
CN110007944A (en) | A kind of application program updating packet and upgrade method | |
CN107368513B (en) | Method and device for updating client database | |
US7181739B1 (en) | Installation relationship database | |
CN111104151A (en) | Shell script-based Git code simplification management method | |
AU2019371545B9 (en) | Management system, acquisition device and management method | |
CN104932887A (en) | Plug-in management method of platform system and platform system | |
CN117492803B (en) | Intelligent door lock PCBA software upgrading method and system | |
CN107391507A (en) | The update method and device of the mobile terminal page | |
CN113805965B (en) | Method, device, equipment and readable medium for installing external plug-in | |
CN107015831A (en) | A kind of client updating management method upgraded based on server end and system | |
CN111949287B (en) | Software upgrading method and device | |
CN110096285A (en) | Dispositions method, device, computer equipment and the storage medium of software systems | |
JP2004252719A (en) | Data management device, method and program | |
CN102479093A (en) | Software installing system for providing verification and updating original file and register table and method thereof | |
CN112269599B (en) | Disk operation control method, system 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 | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20190712 |
|
WW01 | Invention patent application withdrawn after publication |