CN102841899B - Method for installing template files - Google Patents

Method for installing template files Download PDF

Info

Publication number
CN102841899B
CN102841899B CN201110171000.4A CN201110171000A CN102841899B CN 102841899 B CN102841899 B CN 102841899B CN 201110171000 A CN201110171000 A CN 201110171000A CN 102841899 B CN102841899 B CN 102841899B
Authority
CN
China
Prior art keywords
file
packet
template
index file
data
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
Application number
CN201110171000.4A
Other languages
Chinese (zh)
Other versions
CN102841899A (en
Inventor
李伟明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Kingdee fine fighting cloud Network Technology Co., Ltd.
Original Assignee
SHENZHEN JINDIE YOUSHANG E-BUSINESS SERVICE Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SHENZHEN JINDIE YOUSHANG E-BUSINESS SERVICE Co Ltd filed Critical SHENZHEN JINDIE YOUSHANG E-BUSINESS SERVICE Co Ltd
Priority to CN201110171000.4A priority Critical patent/CN102841899B/en
Publication of CN102841899A publication Critical patent/CN102841899A/en
Application granted granted Critical
Publication of CN102841899B publication Critical patent/CN102841899B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method for installing template files, wherein corresponding index files are generated during the process that a data packet which stores template file data is added to installer; the acquired index files are sequentially added to the installer which needs to be executed according to the sequence; and the sizes of all the index files are recorded. On the basis of data packet storage principles, the installer inquires the index files during the process that the template files are installed, the executable program of the data packet for storing the template data is installed according to the acquired index files, and the purpose that update or online update of a terminal client does not need to be depended during the process of executing SQL (structured query language) is realized. The problem that the SQL is executed through depending on the update or online update of the terminal client is solved.

Description

Template file installation method
Technical field
The present invention relates to database field, in particular, relate to a kind of template file installation method.
Background technology
Current, all template file can be utilized in operating system or application software, so that in the process of the storage carrying out being correlated with, management and renewal, carry out the operation of being correlated with according to the template file installed, thus improve whole system or the management of software and the efficiency of renewal.
In the prior art, sorts of systems or software, in the process of installation form file, need the installation path utilizing third party software (Install Shield) testing product, then according to the file structure release packet of packet; And when SQL (Structured Query Language, the Structured Query Language (SQL)) script file of performing database, the ROMPaq in terminal clientsaconnect or online upgrading program need be called; By a large amount of template file data Replica in the database of correspondence, and when upgrading in template file to database, need the mode by the grand batch of Windows to carry out.
Therefore, adopt in the process of template file being installed in prior art, must third party be relied on, the ROMPaq namely in terminal clientsaconnect, when this ROMPaq is wrong, then cannot the script file SQL of performing database, cannot install template file.
Summary of the invention
In view of this, the invention provides a kind of template file installation method, to overcome in prior art the ROMPaq that must rely on third party, can cause when this ROMPaq is wrong cannot the SQL script file of performing database, namely cannot complete the problem of template file being carried out to normal mounting.
For achieving the above object, the invention provides following technical scheme:
A kind of template file installation method, comprising:
Obtain the packet of carrying template file;
According in described packet comprise data various classifications generate corresponding index file, to store in order, and recording indexes file size;
Load the packet of carrying template file;
Read the described index file size being positioned at installation procedure rearmost position;
When described index file size is greater than 0, calculate corresponding described index file;
According to described index file, the described packet category of correspondence is released into correspondence position;
The classification of described packet batch is utilized to carry out the write of described template file.
Preferably, when described template file is tax template, described database is business accounts.
Preferably, in described packet comprise data various classifications comprise: the data supplementing position of template file, size, title and updating type.
Preferably, comprising:
To utilize in described packet comprise the updating type execution architecture query language SQL script file of data.
Preferably, comprising:
Institute in described packet is utilized to comprise the file registration of the updating type execution template file of data.
Preferably, comprising:
To utilize in described packet comprise data the updating type template file data write into Databasce that will carry out upgrading.
Preferably, according to described index file, the process that the described packet category of correspondence is released into correspondence position is specifically comprised:
Obtain the starting position that described index file is appended to described installation procedure;
According to described starting position and described index file acquiring size index file stream block;
Described packet is discharged to correspondence position by the classification of correspondence according to described index file stream block.
Preferably, comprising:
When described index file size equals 0, terminate to install.
Known via above-mentioned technical scheme, compared with prior art, the invention discloses a kind of template file installation method, by the packet according to storing template file data in the process being appended to installation procedure, according in packet comprise data various classifications generate corresponding index file; By the index file that gets in order, orderly is equally appended in the installation procedure that will perform, and records each index file size.The present invention is based on the storage principle of above-mentioned packet, generate the index file of ordered arrangement; In the process realizing installation form file, for installation procedure search index file; According to the index file got, install and deposit the executable program of template file packet, the process that SQL script is performed need not rely on ROMPaq in terminal clientsaconnect or online upgrading program, realizes the object of execution SQL script.ROMPaq in solution execution SQL script dependence terminal clientsaconnect or the problem of online upgrading program.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only embodiments of the invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to the accompanying drawing provided.
The process flow diagram of Fig. 1 a kind of template file installation method disclosed in the embodiment of the present invention one;
Fig. 2 structural representation that packet stores disclosed in the embodiment of the present invention one;
The process flow diagram of Fig. 3 another kind of template file installation method disclosed in the embodiment of the present invention one;
The process flow diagram of Fig. 4 a kind of template file installation method disclosed in the embodiment of the present invention two.
Embodiment
For the purpose of quoting and know, the explanation of the technical term hereinafter used, write a Chinese character in simplified form or abridge and be summarized as follows:
SQL:Structured Query Language, Structured Query Language (SQL);
XML:Extensible Markup Language, extend markup language is a kind of form of document.
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
From background technology, current sorts of systems, in the process of installation form file, needs the installation path utilizing third party software testing product, then according to the file structure release packet of packet; And when the SQL script file of performing database, the ROMPaq in terminal clientsaconnect or online upgrading program need be called.But, ROMPaq in adopted terminal clientsaconnect or online upgrading program is wrong or when being deleted by user, ROMPaq in dependence terminal clientsaconnect or online upgrading program carry out the process of template file installation, cannot perform, and namely cannot perform SQL script.
Therefore, needing to rely on the problem of ROMPaq in terminal clientsaconnect or online upgrading program for performing SQL script in prior art, the invention provides a kind of template file installation method.The present invention is based on the storage principle of packet, generate the index file of ordered arrangement; In the process realizing installation form file, for installation procedure search index file; According to the index file got, install and deposit the executable program of template file packet, the process realizing performing SQL script need not rely on the object of ROMPaq in terminal clientsaconnect or online upgrading program.Detailed process is described by following examples.
Embodiment one
Refer to accompanying drawing 1, be the process flow diagram that the present invention discloses a kind of template file installation method, mainly comprise the following steps:
Step S101, obtains the packet of carrying template file.
Packet in step S101 is the carrier of template file, is mainly used in the related data depositing template file, can carry out corresponding depositing for the different classes of of template file.
Step S102, according in described packet comprise data various classifications generate corresponding index file, to store in order, and recording indexes file size.
Perform step S102, mainly carry out based on packet storage principle, be mainly: by orderly being appended in the installation procedure that will perform of one or more packets of carrying template file.Meanwhile, in the process added, the various classifications comprising data according to institute in packet generate the index file of correspondences, and are appended in order by the index file got in the installation procedure that will perform, and record each index file size.As shown in Figure 2, figure comprises the structure of concrete storage: executive routine A, packet 1 ~ packet n, index file B and index file size C.
It should be noted that, the various classifications that institute comprises data in above-mentioned packet refer to that the identifiable design of module file identifies or attribute, include but not limited to the data supplementing position of template file, size, title and updating type.According to the index file that the data supplementing position of template file in packet, size, title and updating type generate, for retrieving in the process of installing, be conducive to the release performing corresponding data bag.In an embodiment of the present invention, be described for the index file of xml form.Those skilled in the art need know, the present invention is adapted to the index file of other form equally.
Step S103, loads the packet of carrying template file.
Step S104, reads the described index file size being positioned at the rearmost position of installation procedure.
Step S105, judges whether described index file size is greater than 0, if so, then performs step S106; If not, then step S109 is performed.
Step S106, calculates corresponding described index file.
In the process performing step S103 to step S106, first the packet of carrying template file is loaded in internal memory, reads the index file size after being appended to packet, namely read the index file size of whole installation data stream rearmost position; When judging that this index file size is greater than 0, continuing to perform installation procedure, calculating corresponding index file according to the index file size read, namely calculate the starting position that index file is appended to installation procedure.
Step S107, is released into correspondence position according to described index file by the described packet category of correspondence.
Step S108, utilizes the classification of described packet batch to carry out the write of described template file.
Step S109, terminates to install.
In the process performing step S107 to step S108, according to the index file that step S106 gets, the packet of its correspondence is released into correspondence position according to classification, and utilize each classification by installation site corresponding for the template file batch write in packet, namely in write into Databasce, this database for organizing, store and management carrying data template file.
It should be noted that, in execution step S107, according to described index file, the process that the described packet category of correspondence is released into correspondence position is specifically comprised following process:
First, the starting position that described index file is appended to described installation procedure is obtained; Then, according to described starting position and described index file acquiring size index file stream block; Finally, by the classification of correspondence, the packet of correspondence is released into corresponding position by described index file stream block, namely corresponding installation site.
By template file installation method disclosed in the invention described above embodiment, based on the storage principle of packet, generate the index file according to certain way ordered arrangement; In the process realizing installation form file, for installation procedure search index file; Install the executable program for depositing template file packet according to the index file that gets, the process realizing performing SQL script need not rely on the object of ROMPaq in terminal clientsaconnect or online upgrading program.
In addition, owing to needing to open the grand mechanism of Windows in the prior art, could being updated in database packet batch.But, on basis disclosed in the invention described above embodiment one, judging the method that the basis needing to upgrade present invention also offers new renewal template file.On the basis of above-mentioned Fig. 1 illustrated, further comprising the steps of:
Step S110, utilizes institute in described packet to comprise the updating type execution SQL script file of data.
Step S111, utilizes institute in described packet to comprise the file registration of the updating type execution template file of data.
Step S112, to utilize in described packet comprise data the updating type template file data write into Databasce that will carry out upgrading.
Equally, based on the storage principle of above-mentioned packet, generate the index file according to certain way ordered arrangement; In the process realizing installation form file, according to index file, the executable program for depositing template file packet is installed.Performing in the operation upgraded, the updating type utilizing institute in packet to comprise data performs the file registration of SQL script file, execution template file, and the template file data write into Databasce that will carry out upgrading, template file need not be upgraded by the mode of the grand batch of Windows.In conjunction with the process of installation form file in above-described embodiment, the ROMPaq for performing in SQL script dependence terminal clientsaconnect or online upgrading program can not only being solved, also solving batch data renewal further and depending on the grand mechanism problem of Windows.
It should be noted that, a kind of template file installation method disclosed in the embodiment of the present invention is applicable to the installation of the template file of each type operating system or application software.As in the system of tax data process or software, template file is tax template; In financial data system, template file is financial template etc.Be illustrated especially by embodiment two disclosed by the invention.
Embodiment two
Refer to accompanying drawing 4, for the present invention discloses the process flow diagram that a kind of template file installation method is applied to tax system, mainly comprise the following steps:
Step S401, obtains the packet of carrying tax template.
Packet in step S401 refers to the carrier of tax policy regulation, is mainly used in the related data depositing tax template.
Step S402, according in described packet comprise data various classifications generate corresponding index file, to store in order, and recording indexes file size.
Perform step S102, mainly carry out based on packet storage principle, its structure specifically stored as shown in Figure 2.
Step S403, loads the packet of carrying tax template.
Step S404, reads the described index file size being positioned at the rearmost position of installation procedure.
Step S405, judges whether described index file size is greater than 0, if so, then performs step S406; If not, then step S409 is performed.
Step S406, calculates corresponding described index file.
Step S407, is released into correspondence position according to described index file by the described packet category of correspondence.
Step S408, utilizes the classification of described packet batch to carry out the write of described tax template.
Step S409, terminates to install.
In the process performing above-mentioned steps S407 to step S408, according to the index file that step S406 gets, the packet of its correspondence is released into correspondence position according to classification, and utilize each classification by installation site corresponding for the tax template batch write in packet, namely write in business accounts.These business accounts are database, by the database that the write of tax template batch is corresponding.
In execution step S407, according to described index file, the described packet category of correspondence is released into the process of correspondence position, identical with the corresponding process in embodiment one, no longer repeat here.
Step S410, utilizes institute in described packet to comprise the updating type execution SQL script file of data.
Step S411, the updating type utilizing institute in described packet to comprise data performs tax template file and registers.
Step S412, the tax template data that the updating type utilizing institute in described packet to comprise data will carry out upgrading writes business accounts.
Equally, by packet batch updating to business accounts time, perform step S410 to step S412, detailed process with in embodiment one disclosed in consistent, also repeat no more here.
In sum.
By template file installation method a kind of disclosed in the above embodiment of the present invention, based on the storage principle of packet, generate the index file of ordered arrangement; In the process realizing installation form file, install executable program for depositing template file packet according to index file, the process realizing performing SQL script need not rely on the object of ROMPaq in terminal clientsaconnect or online upgrading program.
In this instructions, each embodiment adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar portion mutually see.
The software module that the method described in conjunction with embodiment disclosed herein or the step of algorithm can directly use hardware, processor to perform, or the combination of the two is implemented.Software module can be placed in the storage medium of other form any known in random access memory (RAM), internal memory, ROM (read-only memory) (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field.
To the above-mentioned explanation of the disclosed embodiments, professional and technical personnel in the field are realized or uses the present invention.To be apparent for those skilled in the art to the multiple amendment of these embodiments, General Principle as defined herein can without departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention can not be restricted to these embodiments shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.

Claims (7)

1. a template file installation method, is characterized in that, comprising:
Obtain the packet of carrying template file;
According in described packet comprise data various classifications generate corresponding index file, to store in order, and recording indexes file size;
Load the packet of carrying template file;
Read the described index file size being positioned at installation procedure rearmost position;
When described index file size is greater than 0, calculate corresponding described index file;
According to described index file, the described packet category of correspondence is released into correspondence position;
The classification of described packet batch is utilized to carry out the write of described template file;
Wherein, describedly according to described index file, the process that the described packet category of correspondence is released into correspondence position specifically to be comprised:
Obtain the starting position that described index file is appended to described installation procedure;
According to described starting position and described index file acquiring size index file stream block;
Described packet is discharged to correspondence position by the classification of correspondence according to described index file stream block.
2. method according to claim 1, is characterized in that, when described template file is tax template, the described write utilizing the classification of described packet batch to carry out described template file is specially:
Utilize the classification of described packet by the tax template batch write business accounts in packet, wherein, described business accounts are database.
3. method according to claim 1, is characterized in that, in described packet comprise data various classifications comprise: the data supplementing position of template file, size, title and updating type.
4. method according to claim 3, is characterized in that, comprising:
To utilize in described packet comprise the updating type execution architecture query language SQL script file of data.
5. method according to claim 3, is characterized in that, comprising:
Institute in described packet is utilized to comprise the file registration of the updating type execution template file of data.
6. method according to claim 3, is characterized in that, comprising:
To utilize in described packet comprise data the updating type template file data write into Databasce that will carry out upgrading.
7. according to the method in claims 1 to 3 described in any one, it is characterized in that, comprising:
When described index file size equals 0, terminate to install.
CN201110171000.4A 2011-06-23 2011-06-23 Method for installing template files Active CN102841899B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110171000.4A CN102841899B (en) 2011-06-23 2011-06-23 Method for installing template files

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110171000.4A CN102841899B (en) 2011-06-23 2011-06-23 Method for installing template files

Publications (2)

Publication Number Publication Date
CN102841899A CN102841899A (en) 2012-12-26
CN102841899B true CN102841899B (en) 2015-02-18

Family

ID=47369272

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110171000.4A Active CN102841899B (en) 2011-06-23 2011-06-23 Method for installing template files

Country Status (1)

Country Link
CN (1) CN102841899B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101452441A (en) * 2008-12-05 2009-06-10 山东浪潮齐鲁软件产业股份有限公司 Electronic table general-purpose data parsing and leading-in method
CN101546270A (en) * 2009-05-08 2009-09-30 阿里巴巴集团控股有限公司 Automatic installation method for Linux operation system, device and system
CN101901263A (en) * 2010-07-22 2010-12-01 华为终端有限公司 Access method and device of file system
CN102004655A (en) * 2010-11-25 2011-04-06 北京飞天诚信科技有限公司 Device and method for automatically installing drivers

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101452441A (en) * 2008-12-05 2009-06-10 山东浪潮齐鲁软件产业股份有限公司 Electronic table general-purpose data parsing and leading-in method
CN101546270A (en) * 2009-05-08 2009-09-30 阿里巴巴集团控股有限公司 Automatic installation method for Linux operation system, device and system
CN101901263A (en) * 2010-07-22 2010-12-01 华为终端有限公司 Access method and device of file system
CN102004655A (en) * 2010-11-25 2011-04-06 北京飞天诚信科技有限公司 Device and method for automatically installing drivers

Also Published As

Publication number Publication date
CN102841899A (en) 2012-12-26

Similar Documents

Publication Publication Date Title
US8849876B2 (en) Methods and apparatuses to optimize updates in a file system based on birth time
US8745012B2 (en) Log-structured store for streaming data
US8117358B2 (en) Revenue management system and method utilizing database backup
CN105930387A (en) Data operation system and method based on data routing and sharding
CN103617199B (en) A kind of method and system operating data
CN105074724A (en) Efficient query processing using histograms in a columnar database
US20090327377A1 (en) Copying entire subgraphs of objects without traversing individual objects
CN105069134A (en) Method for automatically collecting Oracle statistical information
CN110175163A (en) More library separation methods, system and medium based on business function intelligently parsing
CN103425663A (en) Method and device for creating tables, saving records and deleting records for embedded system database
CN107665255A (en) Method, apparatus, equipment and the storage medium of key value database data change
CN102043859A (en) Data updating method and device
CN107391112A (en) A kind of FileVersion detection method and its special purpose device
EP2622544A1 (en) Method and arrangement for processing data
CN109933338A (en) Block chain dispositions method, device, computer equipment and storage medium
US7454436B2 (en) Generational global name table
CN104484460A (en) Metadata heat degree statistical method of distributed file system
CN106649869A (en) Statistical method and statistical device for big data in database
CN110175206A (en) Intellectual analysis operational approach, system and medium for multiple database separation
US8600990B2 (en) Interacting methods of data extraction
CN114022148B (en) Transaction conflict detection method, device, equipment and storage medium based on block chain
CN106649530B (en) Cloud detail query management system and method
US20090248691A1 (en) Interacting methods of data summarization
CN109408539B (en) Data operation method, device, server and storage medium
CN114564500A (en) Method and system for implementing structured data storage and query in block chain system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address

Address after: 518057, Shenzhen, Guangdong science and Technology Park, Nanshan District science and technology twelve South Road 2 Kingdee Software Park, A, 3 South Zone

Patentee after: Shenzhen Kingdee fine fighting cloud Network Technology Co., Ltd.

Address before: 518000, W1 building, building 4, South high tech Industrial Village, South District, Nanshan District hi tech Zone, Guangdong, Shenzhen,

Patentee before: Shenzhen Jindie Youshang E-Business Service Co., Ltd.