CN107992313A - On-line software updating method and device - Google Patents

On-line software updating method and device Download PDF

Info

Publication number
CN107992313A
CN107992313A CN201610948447.0A CN201610948447A CN107992313A CN 107992313 A CN107992313 A CN 107992313A CN 201610948447 A CN201610948447 A CN 201610948447A CN 107992313 A CN107992313 A CN 107992313A
Authority
CN
China
Prior art keywords
dllreg
tools
component
software
configuration information
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.)
Pending
Application number
CN201610948447.0A
Other languages
Chinese (zh)
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.)
Aisino Corp
Original Assignee
Aisino Corp
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 Aisino Corp filed Critical Aisino Corp
Priority to CN201610948447.0A priority Critical patent/CN107992313A/en
Publication of CN107992313A publication Critical patent/CN107992313A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/73Program documentation

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Library & Information Science (AREA)
  • Stored Programmes (AREA)

Abstract

The present invention relates to field of computer technology, discloses a kind of on-line software updating method, apparatus and system, and wherein this method includes:Obtain the upgrade installation package for including component software;When performing installation to the upgrade installation package, parse to determine the module configuration information of the component software;Corresponding DllReg Tools is called according to identified module configuration information, registration is performed to the component software.Thus, it is possible to realize while software upgrading, the backstage registration of corresponding software component is just completed, the success rate of component software registration is also improved while enhancing user experience, while also contributes to software operation business and promotes new component software.

Description

On-line software updating method and device
Technical field
The present invention relates to field of computer technology, and in particular, to a kind of method for upgrading software and device.
Background technology
With the continuous development of computer technology, there is location transparency, software reusability, interface reliability, can expand The component software technology for filling the multiple advantage such as service, self descriptiveness and high security is just pushed greatly by numerous software operation business Extensively;Especially component software can be decomposed software by component technology, reduce the complexity of software so that component softwareization is Through a kind of popular trend for becoming software development.
But include the software of component in the case where component does not succeed in registration, the software be can not realize it is corresponding Assembly function, and due to the characteristic of independence possessed by component software, in the mistake of software installation bag software upgrade Cheng Zhong, can not realize the backstage registration to the component software in software installation bag at the same time.At present, user is typically necessary to grasp manually The registration of corresponding software component could be completed by making the operational order related with operating system and program to be upgraded, cumbersome, greatly The power of registering of component register is reduced greatly, and also have impact on the user experience of software;Simultaneously because user is needed to perform volume The situation that operating mistake often occurs of outer operational order, causes component software not to be promoted well, also one Determine to reduce the interests of software operation business in degree.
Found it should be noted that above technical problem is the present inventor during the present invention is put into practice.
The content of the invention
The present invention provides a kind of on-line software updating method and device, for solve to be illustrated in above-mentioned background technology to A few technical problem.
To achieve these goals, on the one hand the present invention, which provides, provides a kind of on-line software updating method, this method includes:
Obtain the upgrade installation package for including component software;
When performing installation to above-mentioned upgrade installation package, parse to determine the module configuration information of above-mentioned component software;
Corresponding DllReg Tools is called according to identified module configuration information, note is performed to above-mentioned component software Volume.
Preferably, after the above-mentioned execution registration to above-mentioned component software, further include:
When there are during unregistered successful component, determine above-mentioned unregistered successful component software in above-mentioned upgrade installation package Module configuration information;
According to the module configuration information of identified unregistered successfully component software, corresponding component register is re-called Instrument performs registration to above-mentioned unregistered success component software.
Preferably, module configuration information determined by above-mentioned basis calls corresponding DllReg Tools, to above-mentioned software Component, which performs registration, to be included:
Module configuration information and DllReg Tools characteristic information are included according to the inquiry of identified module configuration information The DllReg Tools of mapping relations is with reference to table, to determine and the corresponding DllReg Tools feature of said modules configuration information Information;
According to identified DllReg Tools characteristic information, based on the corresponding component register work of interface function command calls Tool performs registration to above-mentioned component software.
Preferably, said modules register instrument with reference to include in table DllReg Tools characteristic information as The characteristic information of regsvr32.exe and the first mapping of dll file of the module configuration information to be generated based on C++ codes are closed System, this method include:
When identified first component software module configuration information for generated based on C++ codes dll files when, look into Said modules registration instrument is ask with reference to table;
The first mapping relations in instrument table are registered based on said modules, determine to be generated based on C++ codes with above-mentioned The corresponding DllReg Tools characteristic information of dll files is the characteristic information of regsvr32.exe;
Based on the characteristic information of identified regsvr32.exe, invocation component registers instrument regsvr32.exe to above-mentioned First component software performs registration.
Preferably, said modules register instrument with reference to including DllReg Tools characteristic information in table as RegAsm.exe Characteristic information and module configuration information be the second mapping relations of the dll files generated based on C# codes, above method bag Include:
When identified second component software module configuration information for generated based on C# codes dll files when, look into Said modules registration instrument is ask with reference to table;
The second mapping relations in instrument table are registered based on said modules, determine to be generated based on C# codes with above-mentioned The corresponding DllReg Tools characteristic information of dll files is the characteristic information of RegAsm.exe;
Based on the characteristic information of identified RegAsm.exe, invocation component registers instrument RegAsm.exe to above-mentioned second Component software performs registration.
Preferably, said modules configuration information includes component file type, component Name and component source program type of coding In one or more.
Preferably, the calling of said modules registration instrument is held based on the interface function order comprising WinExec orders Capable.
Another aspect of the present invention provides a kind of on-line software updating device, which includes:
Acquiring unit, the upgrade installation package of component software is included for obtaining;
Resolution unit, for when performing installation to above-mentioned upgrade installation package, parsing to determine the group of above-mentioned component software Part configuration information;
Registering unit is performed, for calling corresponding DllReg Tools according to identified module configuration information, to upper State component software and perform registration.
Preferably, above device is further included re-registers unit with what above-mentioned execution registering unit was connected, re-registers list Member includes:
Failed registration detection module, for when there are during unregistered successful component, determine in above-mentioned upgrade installation package State the module configuration information of unregistered successfully component software;
Module is re-registered, for the module configuration information according to above-mentioned unregistered successfully component software, is re-called Corresponding DllReg Tools performs registration to above-mentioned unregistered success component software.
Preferably, above-mentioned execution registering unit includes:
Characteristic information determining module, for according to identified module configuration information inquiry include module configuration information with The DllReg Tools of DllReg Tools characteristic information mapping relations is opposite with said modules configuration information to determine with reference to table The DllReg Tools characteristic information answered;
DllReg Tools calling module, for according to identified DllReg Tools characteristic information, based on interface letter The number corresponding DllReg Tools of command calls performs registration to above-mentioned component software.
Preferably, said modules register instrument with reference to include in table DllReg Tools characteristic information as The characteristic information of regsvr32.exe and the first mapping of dll file of the module configuration information to be generated based on C++ codes are closed System, above device include:
Features described above information determination module, for being based on C+ when the module configuration information of identified first component software During the dll files that+code is generated, inquiry said modules registration instrument is registered in instrument table with reference to table based on said modules First mapping relations, are determined and the above-mentioned corresponding DllReg Tools characteristic information of dll files generated based on C++ codes For the characteristic information of regsvr32.exe;
Said modules register instrument calling module, for the characteristic information based on identified regsvr32.exe, call DllReg Tools regsvr32.exe performs registration to above-mentioned first assembly.
Preferably, said modules register instrument with reference to including DllReg Tools characteristic information in table as RegAsm.exe Characteristic information and module configuration information be the second mapping relations of the dll files generated based on C# codes, above device bag Include:
Features described above information determination module, for being based on C# when the module configuration information of identified second component software During the dll files that code is generated, inquiry said modules registration instrument registers the in instrument table based on said modules with reference to table Two mapping relations, it is definite to be with the above-mentioned corresponding DllReg Tools characteristic information of the dll files generated based on C# codes The characteristic information of RegAsm.exe;
Said modules register instrument calling module, for the characteristic information based on identified RegAsm.exe, calling group Part registration instrument RegAsm.exe performs registration to above-mentioned second component.
Preferably, said modules configuration information includes component file type, component Name and component source program type of coding In one or more.
Through the above technical solutions, during on-line software updating, by the configuration file in software installation bag Corresponding DllReg Tools is called in parsing, performs registration to the component software in installation kit, realizes component software in software Backstage registration during upgrading, it is not necessary to which user manually performs operational order and realizes software registration, optimizes component software The user experience of registration;Also, it is to be understood that be corresponding to component software can be an independent functional unit, pass through Above-mentioned technical proposal enables means of the software operation business based on on-line software updating, and preferably being released to software users has The software product of component software function;Moreover, through the above technical solutions, provide more one for the opportunity that component software is registered Secondary chance so that processing of the software operation business for component software more has flexibility, can help to software operation business and pushes away Wide new component software.
Other features and advantages of the present invention will be described in detail in subsequent specific embodiment part.
Brief description of the drawings
Attached drawing is for providing a further understanding of the present invention, and a part for constitution instruction, with following tool Body embodiment is used to explain the present invention together, but is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is illustrated that present invention could apply to exemplary system architecture figure therein;
Fig. 2 is illustrated that the flow chart of one embodiment of the invention on-line software updating method;
Detailed execution figure of the step 103 in Fig. 2 under a kind of preferred embodiment shown in Fig. 3;
Fig. 4 is illustrated that realizes group using one embodiment of the invention on-line software updating method during software upgrading The implementation result figure of part registration;
Fig. 5 is illustrated that the flow chart of another embodiment of the present invention on-line software updating method;
Fig. 6 is illustrated that the flow chart of one embodiment of the invention on-line software updating method;
Fig. 7 is illustrated that the structure diagram of one embodiment of the invention on-line software updating device;
Fig. 8 is illustrated that execution registering unit 503 in the device of on-line software updating of the embodiment of the present invention shown in Fig. 6 one Detailed construction schematic diagram under kind preferred embodiment;
Fig. 9 is illustrated that the structure diagram of another embodiment of the present invention on-line software updating device;
Description of reference numerals
101st, 102,103 terminal, 104 network
105 server, 501 acquiring unit
502 resolution units 503 perform registering unit
5031 characteristic information determining module, 5032 DllReg Tools calling module
601 re-register 6011 failed registration detection module of unit
6012 re-register module
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, the technical solution in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is Part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art All other embodiments obtained without creative efforts, belong to the scope of protection of the invention.
The implementation of the on-line software updating method or on-line software updating device of the present invention can be applied by being shown referring to Fig. 1 The exemplary system architecture 100 of example.
As shown in Figure 1, system architecture 100 can include terminal 101,102,103, network 104 and server 105.Network 104 between terminal 101,102,103 and server 105 provide communication link medium.Network 104 can include various Connection type, such as wired, wireless communication link or fiber optic cables etc..
Terminal 101,102,103 can be the various electronic equipments for having display screen and supporting information browse, including but It is not limited to computer, smart mobile phone, tablet computer, E-book reader and wearable smart machine etc..
User can be interacted with using terminal 101,102,103 by network 104 with server 105, be disappeared with receiving or sending Breath etc..Various client applications can be installed in terminal 101,102,103, such as application market class is applied, map class is applied, Web browser applications, the application of shopping class, searching class application, instant messaging tools, mailbox client, social platform software etc.. Meanwhile user terminal can realize the upgrading renewal of user terminal software based on software upgrade package is downloaded with interacting for server.
Server 105 can be to provide the server of various services, for example, it may be it is terminal to simulate relevant interface 101st, the server of 102,103 offer regression test environment.Server 105 can also be to provide for terminal 101,102,103 and answer The server of installation kit or renewal bag.For example, terminal 101,102,103 is sent to server 105 downloads software upgrade package Request, it is described request carried terminal 101,102,103 model identification.Server 105 should according to model identification matched and searched Installation kit or renewal bag are sent to terminal 101,102,103.
It is understood that the number of the terminal, network and server in Fig. 1 is only schematical.According to realizing need Will, can have any number of terminal, network and server.
The flow chart of one embodiment of the invention on-line software updating method is illustrated that with reference to Fig. 2, is comprised the following steps:
Step 201:User terminal obtains the upgrade installation package for including component software;
It should be noted that the present embodiment provided apply the on-line software updating method in user terminal generally by scheming Performed by terminal 101,102,103 in 1.The acquisition modes of upgrade installation package in this present embodiment are closed, can be based on Server active push or user terminal based on user ask download, should be not limited.
Step 202:When performing installation to above-mentioned upgrade installation package, user terminal parsing is with definite above-mentioned component software Module configuration information;
Module configuration information in the present embodiment, can be the attribute information or component software quilt of component software It is preconfigured, it should be not limited herein.
Step 203:Corresponding DllReg Tools is called according to identified module configuration information, user terminal is to above-mentioned Component software performs registration.
It should be noted that the DllReg Tools that different module configuration information is applicable in also should be different;By This realizes the module configuration information based on component software and calls corresponding component software to register instrument to soft through this embodiment Part component performs registration, improves the success rate that component software succeeds in registration;Also, the present embodiment by calling software group automatically Part registers registration of the instrument to software, realizes the backstage registration of component software, component software can be made in component software function Complete to register with preceding, enrich the opportunity of component software registration;In addition, present embodiments provide a kind of on the complete of software registration New solution so that a kind of software operation business selection more than the processing for software registration, enhances component processing Flexibility.
It is understood that the registration based on component, the environment that the software project of user terminal is run should be to clothes Be engaged in device close friend, and should allow to run Active controls, to ensure in escalation process to the successful registration of component;Also, this reality Apply example not limit for the operating system environment where software, the guarantor that using operating system as the limitation present invention should not be covered Protect the factor of scope
As a kind of preferred embodiment of on-line software updating method of the embodiment of the present invention, said modules configuration information includes One or more in component file type, component Name and component source program type of coding.Thereby, it is possible to realize to be based on software The attribute information of component is registered corresponding component software executive module and is operated.
As an example, in one case, when configuration information is file type.On the implementation of the present embodiment, Ke Yishi: The filename behind configuration item run in installation kit configuration file is read, to determine configuration item type.
Referring to a kind of detailed execution figure of the step 203 in Fig. 2 shown in Fig. 3 under preferred embodiment, on step 203 Specific perform can include following sub-step:
Step 2031:User terminal includes module configuration information and component according to the inquiry of identified module configuration information The DllReg Tools of tool characteristics information MAP relation is registered with reference to table, it is corresponding with said modules configuration information to determine DllReg Tools characteristic information;
As an example, said modules registration tool characteristics packet contains the metadata information of DllReg Tools.Thus, It can be based on DllReg Tools characteristic information and perform the corresponding DllReg Tools of calling.
Step 2032:User terminal calls corresponding component register according to identified DllReg Tools characteristic information Instrument performs registration to above-mentioned component software.
It should be noted that the calling for the DllReg Tools that the present embodiment collects can be held based on interface function instruction What row called.
Base in this present embodiment DllReg Tools with reference to the DllReg Tools and DllReg Tools recorded in table Between correspondence, it can be ensured that component software perform registration during, on component software registration instrument calling Be not in mistake, improve the success rate of component software tool registers.
On the further explanation of the specific implementation of the present embodiment, said modules register instrument with reference to including component in table Tool characteristics information is registered to be generated based on C++ codes with module configuration information by the characteristic information of regsvr32.exe First mapping relations of dll files, this method include:
When identified first component software module configuration information for generated based on C++ codes dll files when, use Family terminal inquiry said modules registration instrument is with reference to table;
The first mapping relations in instrument table are registered based on said modules, user terminal determines to be based on C++ codes with above-mentioned The corresponding DllReg Tools characteristic information of dll files generated is the characteristic information of regsvr32.exe;
Based on the characteristic information of identified regsvr32.exe, user terminal invocation component registration instrument Regsvr32.exe performs registration to above-mentioned first component software.
Explanation through this embodiment, realizes during software upgrading, completes to being generated based on C++ codes The registration of the component software of dll file formats.
On the further explanation of the specific implementation of the present embodiment, said modules register instrument with reference to including component in table The characteristic information and module configuration information that tool characteristics information is registered by RegAsm.exe are literary for the dll generated based on C# codes Second mapping relations of part, the above method include:
When identified second component software module configuration information for generated based on C# codes dll files when, use Family terminal inquiry said modules registration instrument is with reference to table;
The second mapping relations in instrument table are registered based on said modules, user terminal determines to be based on C# codes institute with above-mentioned The corresponding DllReg Tools characteristic information of dll files of generation is the characteristic information of RegAsm.exe;
Based on the characteristic information of identified RegAsm.exe, user terminal invocation component RegAsm.exe pairs of instrument of registration Above-mentioned second component software performs registration.
Explanation through this embodiment, realizes during software upgrading, completes to being generated based on C# codes The registration of the component software of dll file formats.
In some alternative embodiments of the embodiment of the present invention, said modules registration instrument calling be based on comprising Performed by the interface function order of WinExec orders.
It should be noted that the calling of components above registration instrument can be the metadata information institute based on component to be registered Realize, which can be preconfigured.Implemented as an example, being illustrated that referring to Fig. 4 using the present invention one Example on-line software updating method realizes the implementation result figure of component register during software upgrading, in the present embodiment, main If can be handled accordingly according to the different data file class of registration object to be installed, for msi type files, Msiexec.exe orders are called to register by WinExec command functions;For exe type files, directly pass through interface function Operation.The operation of installation and exe files for plug-in unit, received by user terminal is also being only to need basis Prompt message is installed.Further, due to the dll files that are generated based on c++ and the dll files based on c# generations this Log-in command needed for two kinds of files is different, if having arranged to have two kinds of different configuration items be respectively in configuration file Reg32Dll and regDll, during software upgrading, software can read corresponding file below two kinds of configuration items, and for File below reg32Dll, can call regsvr32.exe to perform registration by WinExec command functions, and for regDll Following file, can call RegAsm.exe to perform registration by WinExec command functions.
The flow chart of another embodiment of the present invention on-line software updating method is illustrated that with reference to Fig. 5, is comprised the following steps:
Step 301:User terminal obtains the upgrade installation package for including component software;
Step 302:User terminal is parsed to determine above-mentioned component software when performing installation to above-mentioned upgrade installation package Module configuration information;
Step 303:User terminal calls corresponding DllReg Tools according to identified module configuration information, to above-mentioned Component software performs registration.
Step 304:When there are during unregistered successful component, user terminal determines above-mentioned not note in above-mentioned upgrade installation package The module configuration information of the successful component software of volume;
On the implementation of the present embodiment, more specifically, can be periodic detection software upgrading after software upgrade success Whether the component software in bag succeeds in registration.
Step 305:According to the module configuration information of identified unregistered successfully component software, user terminal is adjusted again Registration is performed to above-mentioned unregistered success component software with corresponding DllReg Tools.
Through this embodiment, the detection to the installment state of component software to be installed in software installation bag is realized, with reality Now when component software is not installed, component software is reinstalled, it is ensured that component software to be installed can succeed in registration.
In the application of the one side of the present embodiment, which is financial management system class software.
It should be noted that the power based on software reusability specific to com technique, can be in very great Cheng The complexity of software development is reduced on degree, therefore component technology is widely used in financial management system class software;And Current including is beaten up in the financial management system class software of component, and the software project after upgrading needs user extra in system end The registration of executive module, can just realize corresponding function, therefore the Optimization Work of component register is just particularly important.This implementation Example is especially emphasized for the software performed by financial management system class software to exist using the method for upgrading software of the embodiment of the present invention The backstage of component software is registered during line upgrading, but it is understood that, the present embodiment is used for the purpose of emphasizing to protect Direction, but be not used as limiting the scope protected of the present invention.
The flow chart of one embodiment of the invention on-line software updating method is illustrated that with reference to Fig. 6, is comprised the following steps:
Step 401:Server configures the upgrade installation package for including component software;
Step 402:User terminal obtains the above-mentioned upgrade installation package for including component software;
Step 403:When user terminal, which performs the upgrade installation package, to be installed, user terminal parsing is with the definite software group The module configuration information of part;
Step 404:User terminal calls corresponding DllReg Tools according to identified module configuration information, soft to this Part component performs registration.
Through this embodiment, realize by server end configuration software component so that software operation business is in upgrading software It can realize the registration of component software in upgrade installation package by the way that component to be registered is packed at the same time, be conducive to software operation business Promote the application of function of component.
As a kind of preferred embodiment of the embodiment on-line software updating method shown in Fig. 6, the on-line software updating side Method may comprise steps of:
The pre-configured additional parsing mark of server selected as component software, and synthesize the update for including component software Bag;
User terminal obtains the above-mentioned upgrade installation package for including component software;
When user terminal, which performs above-mentioned upgrade installation package, to be installed, user terminal is parsed and determined only with additional parsing The module configuration information of the component software of mark;
User terminal calls corresponding DllReg Tools according to identified module configuration information, to above-mentioned component software Perform registration.
Through this embodiment, realize from server end can with needed in option and installment software installation bag the component promoted to User promotes, it is possible to achieve the distinctiveness installation of component software, provides a kind of brand-new functional unit for software operation business and push away Wide scheme.The present embodiment is to mark selection to perform the module configuration information of resolution component according to parsing, and thus user terminal is not Parsing can be performed to all component softwares, consumption of the component software registration to user terminal resource can be reduced to a certain extent with accounting for With.
As another preferred embodiment of the embodiment on-line software updating method shown in Fig. 6, the on-line software updating Method may comprise steps of:
The pre-configured additional execution flag of server selected as component software, and synthesize the update for including component software Bag;
User terminal obtains above-mentioned include:The upgrade installation package of component software;
When user terminal, which performs above-mentioned upgrade installation package, to be installed, user terminal parses and determines above-mentioned component software Module configuration information;
User terminal calls corresponding DllReg Tools according to identified module configuration information, and only to additional The component software of execution flag performs registration.
Through this embodiment, realize from server end can with needed in option and installment software installation bag the component promoted to User promotes, it is possible to achieve the distinctiveness installation of component software, another brand-new functional unit is provided for software operation business The scheme of popularization.The present embodiment is to be selected to perform mounting assembly registration according to execution flag, it is thus achieved that user terminal can be only To corresponding component software perform registration.
The structure diagram of one embodiment of the invention on-line software updating device is illustrated that referring to Fig. 7, which includes:
Acquiring unit 501, the upgrade installation package of component software is included for obtaining;
Resolution unit 502, for when performing installation to above-mentioned upgrade installation package, parsing to determine above-mentioned component software Module configuration information;
Registering unit 503 is performed, it is right for calling corresponding DllReg Tools according to identified module configuration information Above-mentioned component software performs registration.
More specifically, said modules configuration information includes component file type, component Name and component source program coding class One or more in type.
It should be noted that the present embodiment on-line software updating device be typically configured in terminal 101 in Fig. 1,102, In 103.
The execution registering unit 503 in the device of on-line software updating of the embodiment of the present invention shown in Fig. 7 is illustrated that referring to Fig. 8 A kind of detailed construction schematic diagram under preferred embodiment, including:
Characteristic information determining module 5031, for including component Configuration letter according to the inquiry of identified module configuration information Breath and the DllReg Tools reference table of DllReg Tools characteristic information mapping relations, to determine and said modules configuration information Corresponding DllReg Tools characteristic information, wherein being adapted for carrying out calling based on said modules registration tool characteristics information corresponding DllReg Tools;
DllReg Tools calling module 5032, for according to identified DllReg Tools characteristic information, calling phase The DllReg Tools answered performs registration to above-mentioned component software.
More specifically, said modules registration tool characteristics packet contains the metadata information of DllReg Tools.
As a kind of preferred embodiment of on-line software updating device of the embodiment of the present invention, said modules registration instrument reference It is based on C++ to include characteristic information that DllReg Tools characteristic information is regsvr32.exe in table with module configuration information First mapping relations of the dll files that code is generated, then characteristic information determining module 5031, for when identified first soft The module configuration information of part component for generated based on C++ codes dll files when, inquiry said modules registration instrument reference Table, the first mapping relations in instrument table are registered based on said modules, are determined and the above-mentioned dll texts generated based on C++ codes The corresponding DllReg Tools characteristic information of part is the characteristic information of regsvr32.exe;DllReg Tools calling module 5032, for the characteristic information based on identified regsvr32.exe, invocation component registers instrument regsvr32.exe to upper State first assembly and perform registration.
As a kind of preferred embodiment of on-line software updating device of the embodiment of the present invention, said modules registration instrument reference It is based on C# generations to include characteristic information that DllReg Tools characteristic information is RegAsm.exe in table with module configuration information Second mapping relations of the dll files that code is generated, characteristic information determining module 5031, for when identified second software group The module configuration information of part for generated based on C# codes dll files when, inquiry said modules registration instrument is based on reference to table The second mapping relations in said modules registration instrument table, are determined corresponding with the above-mentioned dll files generated based on C# codes DllReg Tools characteristic information be RegAsm.exe characteristic information;DllReg Tools calling module 5032, for base In the characteristic information of identified RegAsm.exe, invocation component registration instrument RegAsm.exe performs note to above-mentioned second component Volume.
In the one side of device of embodiment of the present invention application, this treats that the software of online upgrading is soft for financial management system class Part.
The structure diagram of another embodiment of the present invention on-line software updating device is illustrated that referring to Fig. 9, the device is also Including re-registering unit 601 with what above-mentioned execution registering unit 503 was connected, re-registering unit 601 includes:
Failed registration detection module 6011, for when in above-mentioned upgrade installation package there are during unregistered successful component, really The module configuration information of fixed above-mentioned unregistered successfully component software;
Re-register module 6012, for according to it is above-mentioned it is unregistered successfully component software module configuration information, again Corresponding DllReg Tools is called to perform registration to above-mentioned unregistered success component software.
One embodiment of the invention also provides a kind of on-line software updating system, which includes server and user terminal, Server includes:Upgrade package synthesis unit, the upgrade installation package of component software is included for configuring;User terminal includes:With The upgrade package acquiring unit that upgrade package synthesis unit is connected, for obtaining the above-mentioned upgrade installation package for including component software; Upgrade package resolution unit, for when performing installation to above-mentioned upgrade installation package, parsing to determine the component of above-mentioned component software Configuration information;Terminal assembly registering unit, for calling corresponding DllReg Tools according to identified module configuration information, Registration is performed to above-mentioned component software.
As a kind of preferred embodiment of on-line software updating system of the embodiment of the present invention, above-mentioned upgrade package synthesis unit, For the pre-configured additional parsing mark of selected as component software, to treat that user terminal parses and determines that only carrying additional parsing marks Component software module configuration information.
As a kind of preferred embodiment of on-line software updating system of the embodiment of the present invention, above-mentioned upgrade package synthesis unit, For the pre-configured additional execution flag of selected as component software, to treat user terminal only to the software group with additional execution flag Part performs registration.
It should be noted that term " comprising ", "comprising", not only including those key elements, but also including not arranging clearly The other element gone out, or further include as elements inherent to such a process, method, article, or device.Not more In the case of limitation, the key element that is limited by sentence " including ... ", it is not excluded that in the process including the key element, method, thing Also there are other identical element in product or equipment.
Related function module and unit in the embodiment of the present invention can be realized by corresponding electronic component.
The preferred embodiment of the present invention is described in detail above in association with attached drawing, still, the present invention is not limited to above-mentioned reality The detail in mode is applied, in the range of the technology design of the present invention, a variety of letters can be carried out to technical scheme Monotropic type, these simple variants belong to protection scope of the present invention.
It is further to note that each particular technique feature described in above-mentioned embodiment, in not lance In the case of shield, it can be combined by any suitable means.In order to avoid unnecessary repetition, the present invention to it is various can The combination of energy no longer separately illustrates.
It will be appreciated by those skilled in the art that realize that all or part of step in above-described embodiment method is to pass through Program instructs relevant hardware to complete, and the program storage is in a storage medium, including some instructions are used so that one A (can be microcontroller, chip etc.) or processor (processor) perform the whole of each embodiment the method for the application Or part steps.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey The medium of sequence code.
In addition, various embodiments of the present invention can be combined randomly, as long as it is without prejudice to originally The thought of invention, it should equally be considered as content disclosed in this invention.

Claims (13)

1. a kind of on-line software updating method, this method include:
Obtain the upgrade installation package for including component software;
When performing installation to the upgrade installation package, parse to determine the module configuration information of the component software;
Corresponding DllReg Tools is called according to identified module configuration information, registration is performed to the component software.
2. according to the method described in claim 1, it is characterized in that, after registration is performed to the component software, further include:
When there are the group for during unregistered successful component, determining the unregistered successfully component software in the upgrade installation package Part configuration information;
According to the module configuration information of identified unregistered successfully component software, corresponding DllReg Tools is re-called Registration is performed to the unregistered success component software.
3. method according to claim 1 or 2, it is characterised in that module configuration information determined by the basis calls Corresponding DllReg Tools, performing registration to the component software includes:
Include module configuration information according to the inquiry of identified module configuration information to map with DllReg Tools characteristic information The DllReg Tools of relation is with reference to table, to determine to believe with the corresponding DllReg Tools feature of the module configuration information Breath;
According to identified DllReg Tools characteristic information, and it is based on the corresponding DllReg Tools of interface function command calls Registration is performed to the component software.
4. according to the method described in claim 3, the DllReg Tools is with reference to including DllReg Tools feature in table Information is the first of the dll files generated based on C++ codes by the characteristic information and module configuration information of regsvr32.exe Mapping relations, it is characterised in that this method includes:
When identified first component software module configuration information for generated based on C++ codes dll files when, inquire about institute DllReg Tools is stated with reference to table;
Based on the first mapping relations in the DllReg Tools table, determine and the dll texts generated based on C++ codes The corresponding DllReg Tools characteristic information of part is the characteristic information of regsvr32.exe;
Based on the characteristic information of identified regsvr32.exe, invocation component registers instrument regsvr32.exe to described first Component software performs registration.
5. according to the method described in claim 3, the DllReg Tools is with reference to including DllReg Tools feature in table Information is the second mapping of the dll files generated based on C# codes by the characteristic information and module configuration information of RegAsm.exe Relation, it is characterised in that this method includes:
When identified second component software module configuration information for generated based on C# codes dll files when, inquire about institute DllReg Tools is stated with reference to table;
Based on the second mapping relations in the DllReg Tools table, determine and the dll texts generated based on C# codes The corresponding DllReg Tools characteristic information of part is the characteristic information of RegAsm.exe;
Based on the characteristic information of identified RegAsm.exe, invocation component registers instrument RegAsm.exe to second software Component performs registration.
6. according to the method described in claim 3, it is characterized in that, the module configuration information includes component file type, group One or more in part title and component source program type of coding.
7. method according to claim 4 or 5, it is characterised in that the calling of the DllReg Tools be based on comprising Performed by the interface function order of WinExec orders.
8. a kind of on-line software updating device, the device include:
Acquiring unit, the upgrade installation package of component software is included for obtaining;
Resolution unit, for when performing installation to the upgrade installation package, parsing and being matched somebody with somebody with the component for determining the component software Confidence ceases;
Registering unit is performed, for calling corresponding DllReg Tools according to identified module configuration information, to described soft Part component performs registration.
9. device according to claim 8, it is characterised in that the device further includes what is be connected with the execution registering unit Unit is re-registered, re-registering unit includes:
Failed registration detection module, for when there are during unregistered successful component, determined in the upgrade installation package it is described not The module configuration information of the component software to succeed in registration;
Module is re-registered, for the module configuration information according to the unregistered successfully component software, is re-called corresponding DllReg Tools to it is described it is unregistered success component software perform registration.
10. device according to claim 8 or claim 9, it is characterised in that the execution registering unit includes:
Characteristic information determining module, for including module configuration information and component according to the inquiry of identified module configuration information The DllReg Tools of tool characteristics information MAP relation is registered with reference to table, it is corresponding with the module configuration information to determine DllReg Tools characteristic information;
DllReg Tools calling module, for according to identified DllReg Tools characteristic information, and is based on interface function The corresponding DllReg Tools of command calls performs registration to the component software.
11. device according to claim 10, the DllReg Tools is special with reference to DllReg Tools is included in table Reference breath is the of the dll files that are generated based on C++ codes for characteristic information and the module configuration information of regsvr32.exe One mapping relations, it is characterised in that:
The characteristic information determining module, for being based on C++ generations when the module configuration information of identified first component software During the dll files that code is generated, the DllReg Tools is inquired about with reference to table, based on first in the DllReg Tools table Mapping relations, it is definite to be with the corresponding DllReg Tools characteristic information of the dll files generated based on C++ codes The characteristic information of regsvr32.exe;
The DllReg Tools calling module, for the characteristic information based on identified regsvr32.exe, invocation component Registration instrument regsvr32.exe performs registration to the first assembly.
12. device according to claim 10, the DllReg Tools is special with reference to DllReg Tools is included in table Reference breath the second of dll files is reflected for characteristic information and the module configuration information of RegAsm.exe for what is generated based on C# codes Penetrate relation, it is characterised in that:
The characteristic information determining module, for being based on C# codes when the module configuration information of identified second component software During the dll files generated, the DllReg Tools is inquired about with reference to table, is reflected based on second in the DllReg Tools table Relation is penetrated, it is definite to be with the corresponding DllReg Tools characteristic information of the dll files generated based on C# codes The characteristic information of RegAsm.exe;
The DllReg Tools calling module, for the characteristic information based on identified RegAsm.exe, invocation component note Volume instrument RegAsm.exe performs registration to second component.
13. device according to claim 10, it is characterised in that the module configuration information include component file type, One or more in component Name and component source program type of coding.
CN201610948447.0A 2016-10-25 2016-10-25 On-line software updating method and device Pending CN107992313A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610948447.0A CN107992313A (en) 2016-10-25 2016-10-25 On-line software updating method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610948447.0A CN107992313A (en) 2016-10-25 2016-10-25 On-line software updating method and device

Publications (1)

Publication Number Publication Date
CN107992313A true CN107992313A (en) 2018-05-04

Family

ID=62028292

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610948447.0A Pending CN107992313A (en) 2016-10-25 2016-10-25 On-line software updating method and device

Country Status (1)

Country Link
CN (1) CN107992313A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101571809A (en) * 2009-05-14 2009-11-04 阿里巴巴集团控股有限公司 Implementation method of plug-in registration and device thereof
US20110055810A1 (en) * 2009-08-31 2011-03-03 Dehaan Michael Paul Systems and methods for registering software management component types in a managed network
CN102523295A (en) * 2011-12-20 2012-06-27 深圳市茁壮网络股份有限公司 Plug-in registration method and system thereof
CN104267977A (en) * 2014-09-16 2015-01-07 小米科技有限责任公司 Application program running method and device
CN105094922A (en) * 2015-08-17 2015-11-25 北京奇虎科技有限公司 Application installation-free operation control method and device
CN105528209A (en) * 2015-12-03 2016-04-27 河北远东通信系统工程有限公司 Method for converting C# class library into similar ActiveX control and browser loading method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101571809A (en) * 2009-05-14 2009-11-04 阿里巴巴集团控股有限公司 Implementation method of plug-in registration and device thereof
US20110055810A1 (en) * 2009-08-31 2011-03-03 Dehaan Michael Paul Systems and methods for registering software management component types in a managed network
CN102523295A (en) * 2011-12-20 2012-06-27 深圳市茁壮网络股份有限公司 Plug-in registration method and system thereof
CN104267977A (en) * 2014-09-16 2015-01-07 小米科技有限责任公司 Application program running method and device
CN105094922A (en) * 2015-08-17 2015-11-25 北京奇虎科技有限公司 Application installation-free operation control method and device
CN105528209A (en) * 2015-12-03 2016-04-27 河北远东通信系统工程有限公司 Method for converting C# class library into similar ActiveX control and browser loading method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
齐志飞 等: "插件式GIS开发与原生代码模块在ArcMap和.NET中复用技术", 《电脑编程技巧与维护》 *

Similar Documents

Publication Publication Date Title
CN103155513B (en) Accelerate the method and apparatus of certification
US11120018B2 (en) Spark query method and system supporting trusted computing
CN102783121B (en) Communications device
CN102779151B (en) The searching method of application program, Apparatus and system
CN106406844B (en) Method and device for realizing public number menu of communication interaction platform
CN107395614A (en) Single-point logging method and system
CN111414407A (en) Data query method and device of database, computer equipment and storage medium
CN106649446B (en) Information pushing method and device
CN107729014B (en) Page jump method and structure based on Android
CN104796491A (en) Server and software downloading and registration method based on once code-scanning
CN110058864A (en) The dispositions method and device of micro services
CN108494762A (en) Web access method, device and computer readable storage medium, terminal
CN108416212A (en) Method for identifying application program and device
CA2557811A1 (en) Execution of unverified programs in a wireless device operating environment
CN113536185B (en) Application page loading method, storage medium and related equipment
CN105243407A (en) Method and device for reading and writing smart card
CN107203372A (en) Control shows method and device
US20090300049A1 (en) Verification of integrity of computing environments for safe computing
CN108519922A (en) Information-pushing method and device, terminal device and computer readable storage medium
CN109815423A (en) Two-dimensional code identification method, system, equipment and storage medium based on terminal classification
CN104468549A (en) Client side operating request responding method and device and server
CN104965720B (en) Using installation method and device
CN108052842B (en) Signature data storage and verification method and device
JP2007080006A (en) Registration update method for id information
CN109408098A (en) Dynamic updating method, system, electronic equipment and the storage medium of application

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180504

RJ01 Rejection of invention patent application after publication