CN102841899A - Method for installing template files - Google Patents

Method for installing template files Download PDF

Info

Publication number
CN102841899A
CN102841899A CN2011101710004A CN201110171000A CN102841899A CN 102841899 A CN102841899 A CN 102841899A CN 2011101710004 A CN2011101710004 A CN 2011101710004A CN 201110171000 A CN201110171000 A CN 201110171000A CN 102841899 A CN102841899 A CN 102841899A
Authority
CN
China
Prior art keywords
packet
file
template
index file
template file
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.)
Granted
Application number
CN2011101710004A
Other languages
Chinese (zh)
Other versions
CN102841899B (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

Images

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

The 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; In operating system or application software, all can utilize template file; So that in the process of the storage of being correlated with, management and renewal, the operation of being correlated with according to the template file of installing, thus improve the management and the updating efficiency of total system or software.
In the prior art, sorts of systems or software need utilize the installation path of third party software (Install Shield) testing product in the process of mounting template file, then according to the file structure release data bag of packet; And when carrying out SQL (Structured Query Language, the SQL) script file of database, need call ROMPaq or online upgrading program on the terminal clientsaconnect; In a large amount of template file data being copied to corresponding database, and upgrade template file to database the time, need be undertaken by the mode of the grand batch of Windows.
Therefore, adopt in the process of in the prior art template file being installed, must rely on the third party, promptly the ROMPaq on the terminal clientsaconnect when this ROMPaq is wrong, then can't be carried out the script file SQL of database, can't install template file.
Summary of the invention
In view of this; The invention provides a kind of template file installation method; Must rely on the ROMPaq on the third party to overcome in the prior art, when this ROMPaq is wrong, can cause the SQL script file that to carry out database, promptly can't accomplish the problem of template file being carried out normal mounting.
For realizing above-mentioned purpose, the present invention provides following technical scheme:
A kind of template file installation method comprises:
Obtain the packet that carries template file;
Various classifications according to comprising data in the said packet generate corresponding index file, store in order, and the recording indexes file size;
Load the packet that carries template file;
Read the said index file size that is positioned at the installation procedure rearmost position;
When said index file size greater than 0 the time, calculate corresponding said index file;
According to said index file the said packet category of correspondence is released into correspondence position;
Utilize the classification of said packet to carry out writing of said template file in batches.
Preferably, when said template file was tax template, said database was professional accounts.
Preferably, the interior various classifications that comprise data of said packet comprise: data supplementing position, size, title and the updating type of template file.
Preferably, comprising:
Utilize and comprise updating data type execution architecture query language SQL script file in the said packet.
Preferably, comprising:
Utilize and comprise the file registration that the updating data type is carried out template file in the said packet.
Preferably, comprising:
Utilize and comprise the template file data that the updating data type will upgrade in the said packet and write database.
Preferably, according to said index file the process that the said packet category of correspondence is released into correspondence position is specifically comprised:
Obtain said index file and be appended to the starting position of said installation procedure;
Obtain index file stream piece according to said starting position and said index file size;
Discharge said packet to correspondence position according to said index file stream piece by corresponding class.
Preferably, comprising:
When said index file size equals 0, finish to install.
Can know via above-mentioned technical scheme; Compared with prior art; The invention discloses a kind of template file installation method; Through according to the packet of storing template file data in being appended to the process of installation procedure, generate corresponding index file according to the various classifications that comprise data in the packet; With the index file that gets access in order, same orderly being appended in the installation procedure that institute will carry out, and it is big or small to write down each index file.The present invention is based on the storage principle of above-mentioned packet, generate the index file of arranging in order; In the process that realizes the mounting template file, for installation procedure search index file; According to the index file that gets access to, the executable program of depositing the template file packet is installed, make the process of SQL script executing needn't rely on ROMPaq or online upgrading program on the terminal clientsaconnect, realize carrying out the purpose of SQL script.The ROMPaq on the solution execution SQL script dependence terminal clientsaconnect or the problem of online upgrading program.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art; To do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below; Obviously, the accompanying drawing in describing below only is embodiments of the invention, for those of ordinary skills; Under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to the accompanying drawing that provides.
Fig. 1 is the process flow diagram of the embodiment of the invention one disclosed a kind of template file installation method;
Fig. 2 is the structural representation of the embodiment of the invention one disclosed packet storage;
Fig. 3 is the process flow diagram of the embodiment of the invention one disclosed another kind of template file installation method;
Fig. 4 is the process flow diagram of the embodiment of the invention two disclosed a kind of template file installation methods.
Embodiment
For quote and know for the purpose of, the explanation of the technical term that hereinafter uses, write a Chinese character in simplified form or abridge and sum up as follows:
SQL:Structured Query Language, SQL;
XML:Extensible Markup Language, extend markup language is a kind of form of document.
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
Can know that by background technology current sorts of systems need be utilized the installation path of third party software testing product in the process of mounting template file, then according to the file structure release data bag of packet; And when carrying out the SQL script file of database, need call ROMPaq or online upgrading program on the terminal clientsaconnect.But; When the ROMPaq on the terminal clientsaconnect that is adopted or the online upgrading program is wrong or when being deleted by the user; The ROMPaq or the online upgrading program that rely on the terminal clientsaconnect are carried out the process that template file is installed, and can't carry out, and promptly can't carry out the SQL script.
Therefore, need rely on ROMPaq or the problem of online upgrading program on the terminal clientsaconnect, the invention provides a kind of template file installation method to carrying out the SQL script in the prior art.The present invention is based on the storage principle of packet, generate the index file of arranging in order; In the process that realizes the mounting template file, for installation procedure search index file; According to the index file that gets access to, the executable program deposit the template file packet is installed, the process that realizes carrying out the SQL script needn't rely on ROMPaq or the purpose of online upgrading program on the terminal clientsaconnect.Detailed process describes through following examples.
Embodiment one
See also accompanying drawing 1, the process flow diagram for the present invention discloses a kind of template file installation method mainly may further comprise the steps:
Step S101 obtains the packet that carries template file.
Packet in step S101 is the carrier of template file, is mainly used in the related data of depositing template file, can carry out corresponding depositing to template file different classes of.
Step S102 generates corresponding index file according to the various classifications that comprise data in the said packet, stores in order, and the recording indexes file size.
Execution in step S102 mainly carries out based on the packet storage principle, is mainly: will carry one or more packets of template file orderly be appended in the installation procedure that will carry out.Simultaneously, in the process of appending, generate corresponding index file, and the index file that gets access to is appended in the installation procedure that institute will carry out in order, and it is big or small to write down each index file according to the various classifications that comprise data in the packet.The structure of concrete storage is as shown in Figure 2, comprises among the figure: executive routine A, packet 1~packet n, index file B and index file size C.
Need to prove, but the interior various classifications that comprise data of above-mentioned packet are meant the identification marking or the attribute of module file, include but not limited to data supplementing position, size, title and the updating type of template file.According to the index file that the data supplementing position of template file in the packet, size, title and updating type generate, be used for retrieving in the process of installing, help carrying out the release of corresponding data bag.In an embodiment of the present invention, the index file with the xml form is that example describes.Those skilled in the art need know that the present invention is adapted to the index file of other form equally.
Step S103 loads the packet that carries template file.
Step S104 reads the said index file size of the rearmost position that is positioned at installation procedure.
Whether step S105 judges said index file size greater than 0, if, execution in step S106 then; If deny, then execution in step S109.
Step S106 calculates corresponding said index file.
To the process of step S106, the packet that at first will carry template file is loaded in the internal memory at execution in step S103, reads to be appended to packet index file size afterwards, promptly reads the index file size of whole erection data stream rearmost position; When judging that this index file size greater than 0 the time, continues to carry out installation procedure, calculate corresponding index file according to the index file size that reads, promptly calculate the starting position that index file is appended to installation procedure.
Step S107 is released into correspondence position according to said index file with the said packet category of correspondence.
Step S108 utilizes the classification of said packet to carry out writing of said template file in batches.
Step S109 finishes to install.
At execution in step S107 to the process of step S108; The packet that the index file that gets access to according to step S106 is corresponding with it is released into correspondence position according to classification; And utilize each classification that the template file in the packet is write corresponding installation site in batches; Promptly write in the database, this database is used to organize, store and manage the template file that carries data.
Need to prove, in execution in step S107, the process that the said packet category of correspondence is released into correspondence position is specifically comprised following process according to said index file:
At first, obtain the starting position that said index file is appended to said installation procedure; Then, obtain index file stream piece according to said starting position and said index file size; At last, by corresponding class the packet of correspondence is released into corresponding position, promptly corresponding installation site by said index file stream piece.
Through the disclosed template file installation method of the invention described above embodiment,, generate the index file of arranging in order according to certain way based on the storage principle of packet; In the process that realizes the mounting template file, for installation procedure search index file; According to the index file that gets access to the executable program that is used to deposit the template file packet is installed, the process that realizes carrying out the SQL script needn't rely on ROMPaq or the purpose of online upgrading program on the terminal clientsaconnect.
In addition, owing to need open the grand mechanism of Windows in the prior art, could being updated in the database the packet batch.But on the invention described above embodiment one disclosed basis, the present invention also provides the method for new renewal template file on the basis that judgement need to be upgraded.On the basis of above-mentioned Fig. 1 that illustrates, further comprising the steps of:
Step S110 utilizes to comprise updating data type execution SQL script file in the said packet.
Step S111 utilizes to comprise the file registration that the updating data type is carried out template file in the said packet.
Step S112 utilizes to comprise the template file data that the updating data type will upgrade in the said packet and write database.
Equally, based on the storage principle of above-mentioned packet, generate the index file of arranging in order according to certain way; In the process that realizes the mounting template file, the executable program that is used to deposit the template file packet is installed according to index file.In carrying out the operation of upgrading; Utilize and comprise the file registration that the updating data type is carried out the SQL script file, carried out template file in the packet; And the template file data that will upgrade write database, make template file to upgrade by the mode of the grand batch of Windows.In conjunction with the process of mounting template file in the foregoing description, not only can solve to carrying out the SQL script and rely on ROMPaq or online upgrading program on the terminal clientsaconnect, also further solve the batch data renewal and depended on the grand mechanism problem of Windows.
Need to prove that the disclosed a kind of template file installation method of the embodiment of the invention is applicable to the installation of the template file of each type operating system or application software.As in the system or software that handle to tax data, template file is a tax template; In the financial data disposal system, template file is financial template or the like.Specifically be illustrated through embodiment two disclosed by the invention.
Embodiment two
See also accompanying drawing 4,, mainly may further comprise the steps for the present invention discloses the process flow diagram that a kind of template file installation method is applied to tax system:
Step S401 obtains the packet that carries tax template.
Packet in step S401 is meant the carrier of tax policy rules, is mainly used in the related data of depositing tax template.
Step S402 generates corresponding index file according to the various classifications that comprise data in the said packet, stores in order, and the recording indexes file size.
Execution in step S102 mainly carries out based on the packet storage principle, and the structure of its concrete storage is as shown in Figure 2.
Step S403 loads the packet that carries tax template.
Step S404 reads the said index file size of the rearmost position that is positioned at installation procedure.
Whether step S405 judges said index file size greater than 0, if, execution in step S406 then; If deny, then execution in step S409.
Step S406 calculates corresponding said index file.
Step S407 is released into correspondence position according to said index file with the said packet category of correspondence.
Step S408 utilizes the classification of said packet to carry out writing of said tax template in batches.
Step S409 finishes to install.
Carrying out above-mentioned steps S407 to the process of step S408; The packet that the index file that gets access to according to step S406 is corresponding with it is released into correspondence position according to classification; And utilize each classification that the tax template in the packet is write corresponding installation site in batches, promptly write in the professional accounts.These business accounts are database, are about to tax template and write in batches in the corresponding database.
In execution in step S407, according to said index file the said packet category of correspondence is released into the process of correspondence position, identical with corresponding process among the embodiment one, no longer give unnecessary details here.
Step S410 utilizes to comprise updating data type execution SQL script file in the said packet.
Step S411 utilizes to comprise the registration of updating data type execution tax template file in the said packet.
Step S412 utilizes to comprise the tax template data that the updating data type will upgrade in the said packet and write professional accounts.
Equally, when the packet batch updating is to the professional accounts, execution in step S410 is to step S412, and is disclosed consistent among detailed process and the embodiment one, also repeats no more here.
In sum.
Through the disclosed a kind of template file installation method of the above embodiment of the present invention,, generate the index file of arranging in order based on the storage principle of packet; In the process that realizes the mounting template file, according to index file the executable program that is used to deposit the template file packet is installed, the process that realizes carrying out the SQL script needn't rely on ROMPaq or the purpose of online upgrading program on the terminal clientsaconnect.
Each embodiment adopts the mode of going forward one by one to describe in this instructions, and what each embodiment stressed all is and the difference of other embodiment that identical similar part is mutually referring to getting final product between each embodiment.
The method of describing in conjunction with embodiment disclosed herein or the step of algorithm can be directly with the software modules of hardware, processor execution, and perhaps the combination of the two is implemented.Software module can place the storage medium of any other form 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 the technical field.
To the above-mentioned explanation of the disclosed embodiments, make this area professional and technical personnel can realize or use the present invention.Multiple modification to these embodiment will be conspicuous concerning those skilled in the art, and defined General Principle can realize under the situation that does not break away from the spirit or scope of the present invention in other embodiments among this paper.Therefore, the present invention will can not be restricted to these embodiment shown in this paper, but will meet and principle disclosed herein and features of novelty the wideest corresponding to scope.

Claims (8)

1. a template file installation method is characterized in that, comprising:
Obtain the packet that carries template file;
Various classifications according to comprising data in the said packet generate corresponding index file, store in order, and the recording indexes file size;
Load the packet that carries template file;
Read the said index file size that is positioned at the installation procedure rearmost position;
When said index file size greater than 0 the time, calculate corresponding said index file;
According to said index file the said packet category of correspondence is released into correspondence position;
Utilize the classification of said packet to carry out writing of said template file in batches.
2. method according to claim 1 is characterized in that, when said template file was tax template, said database was professional accounts.
3. method according to claim 1 is characterized in that, the various classifications that comprise data in the said packet comprise: data supplementing position, size, title and the updating type of template file.
4. according to any described method in the claim 1~3, it is characterized in that, comprising:
Utilize and comprise updating data type execution architecture query language SQL script file in the said packet.
5. according to any described method in the claim 1~3, it is characterized in that, comprising:
Utilize and comprise the file registration that the updating data type is carried out template file in the said packet.
6. according to any described method in the claim 1~3, it is characterized in that, comprising:
Utilize and comprise the template file data that the updating data type will upgrade in the said packet and write database.
7. according to any described method in the claim 1~3, it is characterized in that, the process that the said packet category of correspondence is released into correspondence position specifically comprised according to said index file:
Obtain said index file and be appended to the starting position of said installation procedure;
Obtain index file stream piece according to said starting position and said index file size;
Discharge said packet to correspondence position according to said index file stream piece by corresponding class.
8. according to any described method in the claim 1~3, it is characterized in that, comprising:
When said index file size equals 0, finish 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 true CN102841899A (en) 2012-12-26
CN102841899B 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
CN102841899B (en) 2015-02-18

Similar Documents

Publication Publication Date Title
US8849876B2 (en) Methods and apparatuses to optimize updates in a file system based on birth time
JP2863805B2 (en) Version management method
KR101738647B1 (en) Data maintenance system
US20090019139A1 (en) Repository-Independent System and Method for Asset Management and Reconciliation
CN105808633A (en) Data archiving method and system
EP0996907A1 (en) Object to relational database mapping infrastructure in a customer care and billing system
CN1975772B (en) Method and device for integrating information in multi-system
CN106648638B (en) A kind of optimization method and optimization system of the R.java file based on python
US7454436B2 (en) Generational global name table
CN103020753A (en) Document state display system and document state display method
CN103946794A (en) Cross-reference and priority claim to related applications
CN107704573A (en) A kind of intelligent buffer method coupled with business
CN110245149A (en) The method for edition management and device of metadata
CN106599167A (en) System and method capable of supporting incremental upgrading of database
EP2187318A1 (en) Performance optimized retrieve transformation nodes
Schulz et al. On the relevance of reports—Integrating an automated archiving component into a business intelligence system
US7974969B1 (en) Apparatus, method and computer-code for quantifying index overhead
CN101272279B (en) Method and device for implementing local maintenance terminal management multi-version network element
CN106777285A (en) The method and apparatus of label clustering
CN102841899A (en) Method for installing template files
US9009731B2 (en) Conversion of lightweight object to a heavyweight object
CN108958770A (en) A kind of virtualization system upgrade method and device
US7987210B1 (en) System for lightweight objects
US9477821B2 (en) Generic feature-licensing framework
CN106598687A (en) Script preheating method and device

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.