CN102945182B - Application program update method and apparatus - Google Patents

Application program update method and apparatus Download PDF

Info

Publication number
CN102945182B
CN102945182B CN201210521181.3A CN201210521181A CN102945182B CN 102945182 B CN102945182 B CN 102945182B CN 201210521181 A CN201210521181 A CN 201210521181A CN 102945182 B CN102945182 B CN 102945182B
Authority
CN
China
Prior art keywords
data file
redaction
application program
information
version
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
CN201210521181.3A
Other languages
Chinese (zh)
Other versions
CN102945182A (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.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing 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 Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201610115046.7A priority Critical patent/CN105740027B/en
Priority to CN201210521181.3A priority patent/CN102945182B/en
Publication of CN102945182A publication Critical patent/CN102945182A/en
Application granted granted Critical
Publication of CN102945182B publication Critical patent/CN102945182B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention relates to network data communication field, it discloses a kind of application program update method and apparatus.This device comprises: application outer cover unit and storage unit; Wherein, described application outer cover unit comprises further: the first shell subelement and second housing subelement; When the first shell subelement data file be suitable in described storage unit is executable file, by starting this data file and giving the function that this data file right of execution realizes application program; When second housing subelement is suitable for data file in the memory unit for not executable file, realize the function of application program according to the user interface information be encapsulated in this data file and service logic information.What technical scheme of the present invention made application program does not more carefully need user to participate in, namely user does not need the application program carrying out unloading legacy version as prior art and the operation of installing redaction application program, solves the problem that in the process of application program update, user operation is loaded down with trivial details thus.

Description

Application program update method and apparatus
Technical field
The present invention relates to network data communication technical field, be specifically related to a kind of application program update method and apparatus.
Background technology
Application program refers to the user program based on operating system on terminal device.Described terminal device comprises PC, handheld device, mobile phone, panel computer etc., but is not limited to these classifications.
The renewal of application program refers to that the application program by redaction replaces the process of the application program of legacy version, and general step is: 1. the application program unloading legacy version; 2. the application program of redaction is installed.
The main cause of application program update (or also can be called upgrading) is: increase New function, patching bugs, improves properties of product etc.
Application program update process of the prior art comprises prompting user has new version to need to upgrade, and user downloads redaction application package, unloading legacy version, and then installs redaction.This renewal rewards theory is more loaded down with trivial details, and each user of renewal needs the action performing unloading and install, if frequent updating, more increases the fussy degree of operation.
Summary of the invention
In view of the above problems, the present invention is proposed to provide a kind of overcoming the problems referred to above or a kind of application program update method solved the problem at least in part and corresponding a kind of application program update device.
According to one aspect of the present invention, provide a kind of application program update method, the method comprises:
Described application program is made up of shell and data file; Wherein, user interface and the service logic of described application program is packaged with in described data file;
Described shell realizes the function of described application program by described data file;
When described application program needs to upgrade, described shell obtains the data file of redaction, is realized the function of described application program afterwards by the data file of described redaction;
Wherein, described data file is executable file or not executable file;
When described data file is executable file, described shell is by starting described data file and giving the function that described data file right of execution realizes described application program; Described data file be not executable file time, described shell realizes the function of described application program according to the user interface information be encapsulated in described data file and service logic information.
Alternatively, described data file is the executable file of dynamic link library form; Or described data file is the not executable file of text or graphic form.
Alternatively, when described data file is executable file, in described data file, definition has for starting the startup interface of notebook data file and the down interface for closing notebook data file.
Alternatively, when described data file is executable file, in described data file, also definition has version to obtain interface;
Described shell obtains the data file of redaction, and is comprised by the function that the data file of described redaction realizes described application program:
Described shell obtains by the version in former data file the version information that interface obtains former data file, is carried in version querying request message by this version information and sends to server;
The version querying response message that described shell reception server returns, if comprise redaction information in this version querying response message, then downloads redaction data file according to this redaction information;
Described shell closes former data file by the down interface in former data file, is started redaction data file by the startup interface of redaction data file and is given redaction data file right of execution.
Alternatively, data file is not executable file, and also comprises version information in data file;
Described shell obtains the data file of redaction, and is comprised by the function that the data file of described redaction realizes described application program:
Described shell obtains version information from former data file;
This version information is carried in version querying request message and sends to server by described shell;
The version querying response message that described shell reception server returns, if comprise redaction information in this version querying response message, then downloads redaction data file according to this redaction information;
Described shell realizes the function of described application program according to the user interface information be encapsulated in redaction data file and service logic information.
Alternatively, before downloading redaction data file according to this redaction information, the method comprises further:
Whether described shell prompting user upgrades, and performs the described step downloading redaction data file according to this redaction information when receiving the confirmation update instruction of user.
According to another aspect of the present invention, provide a kind of application program update device, this device comprises: application outer cover unit and storage unit;
Described storage unit, is suitable for preserving and is packaged with the user interface of described application program and the data file of service logic;
Described application outer cover unit, is suitable for the function being realized described application program by the data file in described storage unit; And when described application program needs to upgrade, the data file being suitable for obtaining redaction is saved in described storage unit, is realized the function of described application program afterwards by the data file of the described redaction in described storage unit;
Wherein, described application outer cover unit comprises further: the first shell subelement and second housing subelement;
Described first shell subelement, when the data file be suitable in described storage unit is executable file, by starting this data file and giving the function that this data file right of execution realizes described application program;
Described second housing subelement, when being suitable for data file in described storage unit for not executable file, realizes the function of described application program according to the user interface information be encapsulated in this data file and service logic information.
Alternatively, described storage unit, is suitable for the data file of preserving dynamic link library form, or is suitable for the data file of preserving text or graphic form.
Alternatively, described storage unit, is further adapted for the data file that preservation wherein defines startup interface for starting notebook data file and the executable file form for the down interface of closing notebook data file.
Alternatively, described storage unit, is further adapted for preservation and wherein defines startup interface for starting notebook data file, obtaining the data file of the executable file form of interface for the down interface and version of closing notebook data file;
Described application outer cover unit comprises further: the first down loading updating subelement;
Described first down loading updating subelement, be suitable for obtaining by the version of the data file of the executable file form in described storage unit the version information that interface obtains this data file, this version information is carried in version querying request message and sends to server, the version querying response message that reception server returns, if comprise redaction information in this version querying response message, then download the data file of the executable file form of redaction according to this redaction information and be saved in storage unit;
Described first shell subelement, be further adapted for and close this former data file by the down interface in the former data file of the executable file form in storage unit, start this redaction data file by the startup interface of the redaction data file of the executable file form in storage unit and give this redaction data file right of execution.
Alternatively, described storage unit, is further adapted for the data file of preserving and comprising the not executable file form of version information;
Described application outer cover unit comprises further: the second down loading updating subelement;
Described second down loading updating subelement, be suitable for obtaining version information from the data file of the not executable file form storage unit, this version information is carried in version querying request message and sends to server, the version querying response message that reception server returns, if comprise redaction information in this version querying response message, then download the data file of the not executable file form of redaction according to this redaction information and be saved in storage unit;
Described second housing subelement, is further adapted for the function that the user interface information that encapsulates in the redaction data file according to the not executable file form in storage unit and service logic information realize described application program.
Alternatively, described application outer cover unit comprises further: prompting subelement;
Described prompting subelement, be suitable for before described first down loading updating subelement or described second down loading updating subelement download redaction data file according to redaction information, whether prompting user upgrades, and when receiving the confirmation update instruction of user, notify that described first down loading updating subelement or described second down loading updating subelement download redaction data file according to described redaction information.
This application program according to the present invention is made up of shell and data file, and be wherein packaged with user interface and the service logic of application program in data file, shell realizes the function of described application program by described data file, when described application program needs to upgrade, described shell obtains the data file of redaction, realized by the data file of described redaction afterwards in the technical scheme of function of described application program, because the user interface of application program and service logic all encapsulate in the data file, therefore only need during application program update to upgrade data file, shell does not need to upgrade, and the process upgrading data file has been come by shell, user does not need to participate in, namely user does not need the application program carrying out unloading legacy version as prior art and the operation of installing redaction application program, solve the problem that in the process of application program update, user operation is loaded down with trivial details thus.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to technological means of the present invention can be better understood, and can be implemented according to the content of instructions, and can become apparent, below especially exemplified by the specific embodiment of the present invention to allow above and other objects of the present invention, feature and advantage.
Accompanying drawing explanation
By reading hereafter detailed description of the preferred embodiment, various other advantage and benefit will become cheer and bright for those of ordinary skill in the art.Accompanying drawing only for illustrating the object of preferred implementation, and does not think limitation of the present invention.And in whole accompanying drawing, represent identical parts by identical reference symbol.In the accompanying drawings:
Fig. 1 shows a kind of according to an embodiment of the invention process flow diagram of application program update method;
Fig. 2 shows the process flow diagram of application program update process in scene one according to an embodiment of the invention;
Fig. 3 shows the process flow diagram of application program update process in scene two according to an embodiment of the invention;
Fig. 4 shows the process flow diagram of application program update process in scene two according to an embodiment of the invention;
Fig. 5 shows a kind of according to an embodiment of the invention structural drawing of application program update device;
Fig. 6 shows the structural drawing of a kind of application program update device according to another embodiment of the present invention.
Embodiment
Below with reference to accompanying drawings exemplary embodiment of the present disclosure is described in more detail.Although show exemplary embodiment of the present disclosure in accompanying drawing, however should be appreciated that can realize the disclosure in a variety of manners and not should limit by the embodiment set forth here.On the contrary, provide these embodiments to be in order to more thoroughly the disclosure can be understood, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
Fig. 1 shows a kind of according to an embodiment of the invention process flow diagram of application program update method.In the present embodiment, application program is made up of shell and data file, and as shown in Figure 1, this application program update method comprises:
S110, shell realizes the function of application program by data file, wherein, is packaged with user interface and the service logic of this application program in this data file.
In an embodiment of the present invention, data file can be executable file, or also can be can not execute file.
In one embodiment of the invention, data file can be DLL(DynamicLinkLibrary, dynamic link library) executable file of form.Or in another embodiment of the present invention, data file also can be the not executable file of text or graphic form.
S120, when this application program needs to upgrade, described shell obtains the data file of redaction, is realized the function of this application program afterwards by the data file of this redaction.
In one embodiment of the invention, when data file is executable file, shell is by starting this data file and giving the function that this data file right of execution realizes this application program.In another embodiment of the present invention, when data file be not executable file time, shell realizes the function of this application program according to the user interface information be encapsulated in this data file and service logic information.
In an embodiment of the present invention, in the face of the client of user is exactly shell, how concrete interface represents, and how service logic is walked, and is all decided by data file, instead of code.So when application program needs upgrading, shell, without the need to upgrading, only needs to download up-to-date data file.Because shell does not need to upgrade, and the process upgrading data file has been come by shell, therefore user does not need to participate in, namely user does not need the application program carrying out unloading legacy version as prior art and the operation of installing redaction application program, solves the problem that in the process of application program update, user operation is loaded down with trivial details thus.
Here for the application program in Windows operating system, the solution of the present invention is described: the application program in Windows operating system is based on MSI(microsoftinstaller, Microsoft's installation kit) bag, the interface staying some to start and upgrade only is needed when making MSI bag, actual user interface and service logic all encapsulate in the data file, and data file can be DLL but be not limited to DLL.Made MSI bag is the shell described in the application.Shell finds corresponding entrance in the data file and then loads and give right of execution to complete the startup of application program.When application program needs to upgrade, shell only needs to download up-to-date data file, gives new data file right of execution after having downloaded.User does not need go unloading application program again and install new installation kit, concerning user, do not need the operation upgraded to get final product the function of experience application latest edition.
Aforementionedly mention, when application program needs to upgrade, shell needs the new data file after obtaining upgrading.In general the new data file after upgrading is downloaded from the server of the service provider of application program.Here by the server of the service provider of application program referred to as server.Therefore shell needs to carry out alternately in server.In one embodiment of the invention, shell communicates based on http protocol with server.
In one embodiment of the invention, when data file is executable file, in data file, definition has the startup interface for starting notebook data file, for closing the down interface of notebook data file.In addition the convenience in order to upgrade, in data file, also definition has version to obtain interface.
Below by way of three scenes of carrying out application program update, technical scheme of the present invention is described.
Scene one
Fig. 2 shows the process flow diagram of application program update process in scene one according to an embodiment of the invention.As shown in Figure 2, comprise the steps:
Step S201, shell sends the version querying request of carrying the version information of current data file to server.
Version information is comprised in current data file.When current data file is executable file, shell obtains its version information by calling its version acquisition interface.Current data file be text or picture etc. not executable file time, shell directly obtains its version information from current data file.Such as, the version of current data file is 1.0.
Step S202, after server receives the version querying request of shell, finding the local data file having renewal version by contrasting local data file version information, returning the version querying response comprising redaction information to shell.
Such as, in this step, up-to-date the version of discovering server this locality is 1.1, and newer than 1.0, the information of redaction data file is carried in version querying response message and returns to shell.Here redaction information comprises: the version value of redaction data file and the download address of redaction data file.In one embodiment of the invention, if there is the data file of redaction, version head field is then set in query response message, the value of this field is the version value of redaction data, as 1.1, and in the setting data file header field of query response message, the value of this field is the address of redaction data file.If do not have the data file of redaction, then version head field and data file head field are not set in query response message.
Step S203, shell finds to comprise redaction information in version querying response message, and whether prompting user upgrades.
In one embodiment of the invention, can WINAPIMessageBox be used, have above and determine to select for user with cancel button.
Step S204, user confirms to upgrade.
Such as, for clicking confirming button to confirm to upgrade.
Step S205, after receiving the confirmation lastest imformation of user, shell, according to the redaction information in version querying response, downloads redaction data file to server request.
Particularly, shell, according to the address of the redaction data file in version querying response, downloads redaction data file to server request.
Step S206, server is downloaded, and shell obtains redaction data file by downloading.
If when data file is executable file, shell performs following steps S207-S209.If data file is not executable file, then shell directly realizes the function of described application program according to the user interface information be encapsulated in redaction data file and service logic information, and does not recycle current former data file.
Step S207, shell closes current data file.
When current data file is for performing data file, shell closes current data file by the down interface calling current data file.
Step S208, shell loads redaction data file.
Step S209, shell starts redaction data file.
When current data file is for performing data file, shell starts redaction data file by the startup interface calling redaction data file.
Step S210, user sees new user interface.
In the process, user only needs to select confirmation to complete renewal according to prompting, does not need user to do other operation bidirectional.
Scene two
Fig. 3 shows the process flow diagram of application program update process in scene two according to an embodiment of the invention.As shown in Figure 3, comprise the steps:
Step S301, shell sends the version querying request of carrying the version information of current data file to server.
Such as, the version of current data file is 1.0.
Step S302, after server receives the version querying request of shell, finding the local data file not upgrading version by contrasting local data file version information, returning the version querying response not comprising redaction information to shell.
Such as, in this step, up-to-date the version of discovering server this locality is also 1.0, then inform in query response message that shell current version 1.0 is latest edition, without the need to upgrading.Due to without the need to upgrading, therefore shell does not need to carry out renewal rewards theory.
Scene three
Fig. 4 shows the process flow diagram of application program update process in scene two according to an embodiment of the invention.As shown in Figure 4, comprise the steps:
Step S401, shell sends the version querying request of carrying the version information of current data file to server.
Such as, the version of current data file is 1.0.
Step S402, after server receives the version querying request of shell, finding the local data file having renewal version by contrasting local data file version information, returning the version querying response comprising redaction information to shell.
Such as, in this step, up-to-date the version of discovering server this locality is 1.1, and newer than 1.0, the information of redaction data file is carried in version querying response message and returns to shell.Here redaction information comprises: the version value of redaction data file and the download address of redaction data file.
Step S403, shell finds to comprise redaction information in version querying response message, and whether prompting user upgrades.
In one embodiment of the invention, can WINAPIMessageBox be used, have above and determine to select for user with cancel button.
Step S404, user refuses to upgrade.Such as, for clicking cancel button to refuse to upgrade, now shell does not need to carry out renewal rewards theory.
Such as, to develop a windows notepad program, the main interface of this organizer program is Windows forms, there is a text box above, when designing here, need the service logic of forms and this organizer program to be encapsulated in a DLL, and need to indicate version, namely this DLL is the data file of this organizer program.The interface realizing a set of definition is also needed in the DLL of then organizer program:
INTWINAPIStart (void*args); // shell starts DLL by this interface;
INTWINAPIExit (void*args); // shell closes this DLL by this interface, needs to use during renewal;
VERSIONWINAPIGetVersion (); // shell uses when obtaining the version of this DLL.
The shell of this organizer program is when performing, and by calling INTWINAPIStart to load and starting this DLL, and give this DLL right of execution, because there is right of execution, DLL can do a lot of thing, as the journey that bursts at the seams, windowing and access back-end data etc.Shell obtains the version information of this dll file by calling VERSIONWINAPIGetVersion, and shell closes this dll file by calling INTWINAPIExit.
By the forms of CreateWindowEx function creation notepad, carry message pump, the pattern of forms, size, the data volume of control and function etc. all unload in DLL.And and to indicate its version in DLL be 1.0.0.0.
Suppose that this version is there is leak in the DLL of 1.0.0.0, the text that UNICODE encodes cannot be supported.Develop a new DLL for solving this problem, should repair this leak in new DLL, identifying its version in this new DLL is 1.0.0.1.New DLL is submitted on server.
The shell of organizer program finds that the version of the DLL on server compares the new of this locality when starting or by active inquiry, so the DLL of redaction is first downloaded to this locality by shell, then the INTWINAPIExit interface calling former DLL is to unload former DLL, and the INTWINAPIStart interface then calling new DLL loads and starts new DLL.The version that such user sees is the version not had described leak, reaches the object of renewal.User does not need to unload whole program and then reinstalls MSI, and user, except being confirmed whether to need renewal, does not need to do other any operation.
The renewal of application program is except patching bugs, and the improvement of other any aspect all right, as amendment user interface, increases function etc.
Technical scheme of the present invention eliminate user's down loading updating, unloading and install worry, user can experience seamless renewal.
Fig. 5 shows a kind of according to an embodiment of the invention structural drawing of application program update device.As shown in Figure 5, this application program update device comprises: application outer cover unit 501 and storage unit 502.
Storage unit 502, is suitable for preserving and is packaged with the user interface of application program and the data file of service logic.
Application outer cover unit 501, is suitable for the function being realized application program by the data file in storage unit 502; And when this application program needs to upgrade, the data file being suitable for obtaining redaction is saved in storage unit 502, is realized the function of this application program afterwards by the data file of the redaction in storage unit 502.
Device shown in Fig. 5, eliminate user's down loading updating, unloading and install process, make user can experience seamless renewal.
Fig. 6 shows the structural drawing of a kind of application program update device according to another embodiment of the present invention.As shown in Figure 6, this application program update device comprises: application outer cover unit 601 and storage unit 602.
Storage unit 602, is suitable for preserving and is packaged with the user interface of application program and the data file of service logic.
Application outer cover unit 601, is suitable for the function being realized application program by the data file in storage unit 602; And when this application program needs to upgrade, the data file being suitable for obtaining redaction is saved in storage unit 602, is realized the function of this application program afterwards by the data file of the redaction in storage unit 602.
See Fig. 6, application outer cover unit 610 comprises: the first shell subelement 601, second housing subelement 602, first down loading updating subelement 603, second down loading updating subelement 604 and prompting subelement 605.
In one embodiment of the invention, application outer cover unit 610 can comprise the first shell subelement 601 and second housing subelement 602, also can only include the first shell subelement 601, or also can only include second housing subelement 602.
First shell subelement 601, when the data file be suitable in storage unit 620 is executable file, by starting this data file and giving the function that this data file right of execution realizes this application program.
Second housing subelement 602, when being suitable for data file in storage unit 620 for not executable file, realizes the function of described application program according to the user interface information be encapsulated in this data file and service logic information.
In one embodiment of the invention, storage unit 620, is suitable for the data file of preserving dynamic link library form, or is suitable for the data file of preserving text or graphic form.
In one embodiment of the invention, storage unit 620, being suitable for preserving wherein definition has the data file of the startup interface for starting notebook data file and the executable file form for the down interface of closing notebook data file.
In one embodiment of the invention, storage unit 620, being also suitable for preserving wherein definition having the startup interface for starting notebook data file, obtaining the data file of the executable file form of interface for the down interface and version of closing notebook data file.Application outer cover unit 610 at least comprises: the first shell subelement 601 and the first down loading updating subelement 603.First down loading updating subelement 603, be suitable for obtaining by the version of the data file of the executable file form in storage unit 620 version information that interface obtains this data file, this version information is carried in version querying request message and sends to server, the version querying response message that reception server returns, if comprise redaction information in this version querying response message, then download the data file of the executable file form of redaction according to this redaction information and be saved in storage unit 620.First shell subelement 601, be suitable for closing this former data file by the down interface in the former data file of the executable file form in storage unit 620, start this redaction data file by the startup interface of the redaction data file of the executable file form in storage unit 620 and give this redaction data file right of execution, realizing the function of this application program.
In yet another embodiment of the present invention, storage unit 620, is suitable for preserving the data file of the not executable file form comprising version information.Application outer cover unit 610 at least comprises: second housing subelement 602 and the second down loading updating subelement 604.Second down loading updating subelement 604, be suitable for obtaining version information from the data file of the not executable file form storage unit 620, this version information is carried in version querying request message and sends to server, the version querying response message that reception server returns, if comprise redaction information in this version querying response message, then download the data file of the not executable file form of redaction according to this redaction information and be saved in storage unit 620.Second housing subelement 602, is suitable for the function that the user interface information that encapsulates in the redaction data file according to the not executable file form in storage unit 620 and service logic information realize this application program.
Prompting subelement 605, be suitable for before the first down loading updating subelement 603 or the second down loading updating subelement 604 download redaction data file according to redaction information, whether prompting user upgrades, and when receiving the confirmation update instruction of user, notify that the first down loading updating subelement 603 or the second down loading updating subelement 604 download redaction data file according to this redaction information.
In the device shown in Fig. 6, how the concrete interface of application program represents, and how service logic is walked, and is all decided by the data file in storage unit.So when application program needs upgrading, downloaded up-to-date data file by application outer cover unit and be saved in storage unit, apply outer cover unit realizes application program function according to new data file afterwards.Therefore user does not need to participate in, and solves the problem that in the process of application program update, user operation is loaded down with trivial details.
In sum, this application program according to the present invention is made up of shell and data file, and be wherein packaged with user interface and the service logic of application program in data file, shell realizes the function of described application program by described data file, when described application program needs to upgrade, described shell obtains the data file of redaction, realized by the data file of described redaction afterwards in the technical scheme of function of described application program, because the user interface of application program and service logic all encapsulate in the data file, therefore only need during application program update to upgrade data file, shell does not need to upgrade, and the process upgrading data file has been come by shell, user does not need to participate in, namely user does not need the application program carrying out unloading legacy version as prior art and the operation of installing redaction application program, solve the problem that in the process of application program update, user operation is loaded down with trivial details thus.
It should be noted that:
Intrinsic not relevant to any certain computer, virtual system or miscellaneous equipment with display at this algorithm provided.Various general-purpose system also can with use based on together with this teaching.According to description above, the structure constructed required by this type systematic is apparent.In addition, the present invention is not also for any certain programmed language.It should be understood that and various programming language can be utilized to realize content of the present invention described here, and the description done language-specific is above to disclose preferred forms of the present invention.
In instructions provided herein, describe a large amount of detail.But can understand, embodiments of the invention can be put into practice when not having these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand in each inventive aspect one or more, in the description above to exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes.But, the method for the disclosure should be construed to the following intention of reflection: namely the present invention for required protection requires feature more more than the feature clearly recorded in each claim.Or rather, as claims below reflect, all features of disclosed single embodiment before inventive aspect is to be less than.Therefore, the claims following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and adaptively can change the module in the equipment in embodiment and they are arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and multiple submodule or subelement or sub-component can be put them in addition.Except at least some in such feature and/or process or unit be mutually repel except, any combination can be adopted to combine all processes of all features disclosed in this instructions (comprising adjoint claim, summary and accompanying drawing) and so disclosed any method or equipment or unit.Unless expressly stated otherwise, each feature disclosed in this instructions (comprising adjoint claim, summary and accompanying drawing) can by providing identical, alternative features that is equivalent or similar object replaces.
In addition, those skilled in the art can understand, although embodiments more described herein to comprise in other embodiment some included feature instead of further feature, the combination of the feature of different embodiment means and to be within scope of the present invention and to form different embodiments.Such as, in the following claims, the one of any of embodiment required for protection can use with arbitrary array mode.
All parts embodiment of the present invention with hardware implementing, or can realize with the software module run on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that the some or all functions that microprocessor or digital signal processor (DSP) can be used in practice to realize according to the some or all parts in a kind of application program update device of the embodiment of the present invention.The present invention can also be embodied as part or all equipment for performing method as described herein or device program (such as, computer program and computer program).Realizing program of the present invention and can store on a computer-readable medium like this, or the form of one or more signal can be had.Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or provides with any other form.
The present invention will be described instead of limit the invention to it should be noted above-described embodiment, and those skilled in the art can design alternative embodiment when not departing from the scope of claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and does not arrange element in the claims or step.Word "a" or "an" before being positioned at element is not got rid of and be there is multiple such element.The present invention can by means of including the hardware of some different elements and realizing by means of the computing machine of suitably programming.In the unit claim listing some devices, several in these devices can be carry out imbody by same hardware branch.Word first, second and third-class use do not represent any order.Can be title by these word explanations.

Claims (11)

1. an application program update method, the method comprises:
Described application program is made up of shell and data file; Wherein, user interface information and the service logic information of described application program is packaged with in described data file;
Described shell realizes the function of described application program by described data file;
When described application program needs to upgrade, described shell obtains the data file of redaction, is realized the function of described application program afterwards by the data file of described redaction;
Wherein, described data file is executable file or not executable file;
When described data file is executable file, described shell is by starting described data file and giving the function that described data file right of execution realizes described application program; Described data file be not executable file time, described shell realizes the function of described application program according to the user interface information be encapsulated in described data file and service logic information.
2., when the method for claim 1, wherein described data file is executable file, in described data file, definition has for starting the startup interface of notebook data file and the down interface for closing notebook data file.
3. method as claimed in claim 2, wherein, when described data file is executable file, in described data file, also definition has version to obtain interface;
Described shell obtains the data file of redaction, and is comprised by the function that the data file of described redaction realizes described application program:
Described shell obtains by the version in former data file the version information that interface obtains former data file, is carried in version querying request message by this version information and sends to server;
The version querying response message that described shell reception server returns, if comprise redaction information in this version querying response message, then downloads redaction data file according to this redaction information;
Described shell closes former data file by the down interface in former data file, is started redaction data file by the startup interface of redaction data file and is given redaction data file right of execution.
4. the method for claim 1, wherein data file is not executable file, and also comprises version information in data file;
Described shell obtains the data file of redaction, and is comprised by the function that the data file of described redaction realizes described application program:
Described shell obtains version information from former data file;
This version information is carried in version querying request message and sends to server by described shell;
The version querying response message that described shell reception server returns, if comprise redaction information in this version querying response message, then downloads redaction data file according to this redaction information;
Described shell realizes the function of described application program according to the user interface information be encapsulated in redaction data file and service logic information.
5. the method according to claim 3 or 4, wherein, before downloading redaction data file according to this redaction information, the method comprises further:
Whether described shell prompting user upgrades, and performs the described step downloading redaction data file according to this redaction information when receiving the confirmation update instruction of user.
6. an application program update device, this device comprises: application outer cover unit and storage unit;
Described storage unit, is suitable for preserving and is packaged with the user interface information of described application program and the data file of service logic information;
Described application outer cover unit, is suitable for the function being realized described application program by the data file in described storage unit; And when described application program needs to upgrade, the data file being suitable for obtaining redaction is saved in described storage unit, is realized the function of described application program afterwards by the data file of the described redaction in described storage unit;
Wherein, described application outer cover unit comprises further: the first shell subelement and second housing subelement;
Described first shell subelement, when the data file be suitable in described storage unit is executable file, by starting this data file and giving the function that this data file right of execution realizes described application program;
Described second housing subelement, when being suitable for data file in described storage unit for not executable file, realizes the function of described application program according to the user interface information be encapsulated in this data file and service logic information.
7. device as claimed in claim 6, wherein,
Described storage unit, is further adapted for the data file that preservation wherein defines startup interface for starting notebook data file and the executable file form for the down interface of closing notebook data file.
8. device as claimed in claim 6, wherein,
Described storage unit, is further adapted for preservation and wherein defines startup interface for starting notebook data file, obtaining the data file of the executable file form of interface for the down interface and version of closing notebook data file;
Described application outer cover unit comprises further: the first down loading updating subelement;
Described first down loading updating subelement, be suitable for obtaining by the version of the data file of the executable file form in described storage unit the version information that interface obtains this data file, this version information is carried in version querying request message and sends to server, the version querying response message that reception server returns, if comprise redaction information in this version querying response message, then download the data file of the executable file form of redaction according to this redaction information and be saved in storage unit;
Described first shell subelement, be further adapted for and close this former data file by the down interface in the former data file of the executable file form in storage unit, start this redaction data file by the startup interface of the redaction data file of the executable file form in storage unit and give this redaction data file right of execution.
9. device as claimed in claim 6, wherein,
Described storage unit, is further adapted for the data file of preserving and comprising the not executable file form of version information;
Described application outer cover unit comprises further: the second down loading updating subelement;
Described second down loading updating subelement, be suitable for obtaining version information from the data file of the not executable file form storage unit, this version information is carried in version querying request message and sends to server, the version querying response message that reception server returns, if comprise redaction information in this version querying response message, then download the data file of the not executable file form of redaction according to this redaction information and be saved in storage unit;
Described second housing subelement, is further adapted for the function that the user interface information that encapsulates in the redaction data file according to the not executable file form in storage unit and service logic information realize described application program.
10. device according to claim 8, wherein, described application outer cover unit comprises further: prompting subelement;
Described prompting subelement, be suitable for before described first down loading updating subelement downloads redaction data file according to redaction information, whether prompting user upgrades, and when receiving the confirmation update instruction of user, notify that described first down loading updating subelement downloads redaction data file according to described redaction information.
11. devices according to claim 9, wherein, described application outer cover unit comprises further: prompting subelement;
Described prompting subelement, be suitable for before described second down loading updating subelement downloads redaction data file according to redaction information, whether prompting user upgrades, and when receiving the confirmation update instruction of user, notify that described second down loading updating subelement downloads redaction data file according to described redaction information.
CN201210521181.3A 2012-12-06 2012-12-06 Application program update method and apparatus Active CN102945182B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610115046.7A CN105740027B (en) 2012-12-06 2012-12-06 Application program update method and apparatus
CN201210521181.3A CN102945182B (en) 2012-12-06 2012-12-06 Application program update method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210521181.3A CN102945182B (en) 2012-12-06 2012-12-06 Application program update method and apparatus

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN201610115046.7A Division CN105740027B (en) 2012-12-06 2012-12-06 Application program update method and apparatus

Publications (2)

Publication Number Publication Date
CN102945182A CN102945182A (en) 2013-02-27
CN102945182B true CN102945182B (en) 2016-03-30

Family

ID=47728131

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210521181.3A Active CN102945182B (en) 2012-12-06 2012-12-06 Application program update method and apparatus

Country Status (1)

Country Link
CN (1) CN102945182B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102981880B (en) * 2012-12-06 2015-12-09 北京奇虎科技有限公司 A kind of method and apparatus realizing the renewal of application program
CN104123152A (en) * 2013-04-28 2014-10-29 百度在线网络技术(北京)有限公司 Updating method and device for application program in mobile terminal and mobile terminal
CN105404522A (en) * 2014-07-15 2016-03-16 阿里巴巴集团控股有限公司 Method for building intelligent terminal application program, device for building intelligent terminal application program and intelligent terminal
CN104516761A (en) * 2015-01-12 2015-04-15 北京恒华伟业科技股份有限公司 Desktop application updating method and device
CN104636172B (en) * 2015-03-09 2019-02-05 联想(北京)有限公司 A kind of application upgrade method and apparatus
CN105159732B (en) * 2015-10-13 2018-08-03 北京奇虎科技有限公司 In mobile terminal installation or the method and mobile terminal of more new application
CN105389182A (en) * 2015-11-02 2016-03-09 广州华多网络科技有限公司 Software upgrading method and apparatus
CN105511927A (en) * 2015-12-21 2016-04-20 上海华测导航技术股份有限公司 Method for upgrading radio firmware
CN105607935B (en) * 2015-12-24 2019-12-13 北京奇虎科技有限公司 Application program updating method, terminal and server
CN105677886A (en) * 2016-01-18 2016-06-15 浪潮通用软件有限公司 File updating method, device and system
CN108762821B (en) * 2017-04-18 2023-04-25 海马云(天津)信息技术有限公司 Device and method for running application of electronic equipment and electronic equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050039196A1 (en) * 2003-08-13 2005-02-17 Sasidharan Prasanth Nalini Method and system for using a library
CN100385855C (en) * 2006-03-31 2008-04-30 华为技术有限公司 System and its method for central remote automatic upgrading software
CN101848558B (en) * 2010-02-02 2013-04-17 美商威睿电通公司 Software and firmware updating method and applicable wireless internet access device thereof

Also Published As

Publication number Publication date
CN102945182A (en) 2013-02-27

Similar Documents

Publication Publication Date Title
CN102945182B (en) Application program update method and apparatus
CN102981880B (en) A kind of method and apparatus realizing the renewal of application program
CN105740027A (en) Application program updating method and device
US7542758B2 (en) Field downloading of wireless device software
CN104731625B (en) A kind of method, apparatus and mobile terminal loading plug-in unit
KR100940178B1 (en) System and method for organizing field upgradable wireless communication device software
US8607224B2 (en) System for packaging native program extensions together with virtual machine applications
CN107992308B (en) Plug-in management method for android terminal application program
CN105100191A (en) Method, device and system for realizing Java application installation via cloud compilation
CN106325847B (en) Method and device for acquiring application program function based on iOS platform
CN104750528B (en) A kind of assembly management method and apparatus in Android program
JP2009544095A (en) OTA-capable mobile terminal program update system and method
CN103530156A (en) Method and device for dynamically loading and calling program
CN105045643A (en) Starting method and device of Launchers in Android system
CN104375849A (en) Core loading method and device
CN105302563A (en) Plug-in method and system for mobile application service
CN104834541A (en) Function module mounting method, mounting system and mounting system updating method
CN104580267A (en) A resource downloading method, device, server and corresponding system
CN104239098A (en) Automatic software upgrading method and device and mobile terminal
CN104731622A (en) Application program loading method and device and mobile terminal
CN104793998A (en) Terminal system resource management method and device
CN104507158A (en) Wireless local area network connection building method, device and mobile terminal
CN103530155A (en) Method and device for installing application program
US20030022665A1 (en) System and method for organizing field upgradable wireless communication device software
CN106528219A (en) Upgrading method and apparatus for parasitic tool package in application

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220725

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.