CN107239295A - The method and software updating apparatus of a kind of software upgrading - Google Patents
The method and software updating apparatus of a kind of software upgrading Download PDFInfo
- Publication number
- CN107239295A CN107239295A CN201610185913.4A CN201610185913A CN107239295A CN 107239295 A CN107239295 A CN 107239295A CN 201610185913 A CN201610185913 A CN 201610185913A CN 107239295 A CN107239295 A CN 107239295A
- Authority
- CN
- China
- Prior art keywords
- executable program
- software
- packet
- subdirectory
- target software
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The embodiment of the invention discloses a kind of method of software upgrading, including:Obtain the packet to be installed of target software;When target software is in running status, packet to be installed is installed under the installation directory of target software, and generate corresponding first executable program of packet to be installed;Attribute modification is carried out to the second executable program under installation directory, and obtains file destination, file destination is non-executable program;After target software is closed, the enabled instruction of target software is received;According to enabled instruction, start the first executable program.The embodiment of the present invention also provides a kind of software updating apparatus.The embodiment of the present invention can be in the case of user's unaware, while continuing the task in original process, while carrying out the update of software on backstage, after upgrading successfully, when system reboot, the first executable program after upgrading can be directly performed, that is, completes target software upgrading, Consumer's Experience is lifted, also make it that installation process is more flexible.
Description
Technical field
The present invention relates to the method and software liter in software administrative skill field, more particularly to a kind of software installation
Stage arrangement.
Background technology
With developing rapidly for computer technology and network technology, daily life of the Internet technology in people
The effect played in living, study and work is also increasing.Various softwares emerge in an endless stream on network, also between
Ground connection has promoted the demand managed software.Wherein, management class software is a kind of collection software download and software
Manage in the instrument of one, its function is broadly divided into detection, downloads, installs and uninstalls this four portions of software
Point.
In the prior art, when needing to upgrade to software, it is necessary to first exit the software process, then transport
Row installation kit, or the automatic running installation kit again after software process is exited, or be soft in startup
Software process in software upgrading, renewal process is carried out before part process to be started.
Yet with the relation between software process of the prior art and erection schedule being mutual exclusion, both are not
Can exist simultaneously.When still there is task not complete in the software process that user is using, once the software
The requirement of upgrading is had, then needs user first to exit the current software process for also having task not have completion, so
Unfinished task is further continued for after upgrading successfully afterwards, so can not only delay the time of task completion, together
When, it is also possible to the quality for influenceing task to complete, it is unfavorable for Consumer's Experience.
The content of the invention
, can be in user the embodiments of the invention provide a kind of method of software upgrading and software updating apparatus
Target software upgrading is completed in the case of unaware, Consumer's Experience is lifted, also make it that installation process is more clever
It is living.
In view of this, first aspect present invention provides a kind of method of software upgrading, including:
Obtain the packet to be installed of target software;
When the target software is in running status, institute is installed under the installation directory of the target software
Packet to be installed is stated, and generates corresponding first executable program of the packet to be installed;
Attribute modification is carried out to the second executable program under the installation directory, and obtains file destination,
The file destination is non-executable program;
After the target software is closed, the enabled instruction of the target software is received;
According to the enabled instruction, start first executable program.
Second aspect, present aspect embodiment also provides a kind of software updating apparatus, including:
Acquisition module, the packet to be installed for obtaining target software;
Module is installed, for when the target software is in running status, in the peace of the target software
The packet to be installed that the acquisition module is obtained is installed under dress catalogue, and generates the number to be installed
According to corresponding first executable program of bag;
Modified module, for carrying out attribute modification to the second executable program under the installation directory, and
File destination is obtained, the file destination is non-executable program;
Receiving module, for after the target software is closed, the startup for receiving the target software to refer to
Order;
Starting module, for the enabled instruction received according to the receiving module, starts described install
First executable program that module is installed.
The third aspect, present aspect embodiment also provides a kind of software updating apparatus, including:Memory, receipts
Send out device, processor and bus system;
Wherein, the memory is used for storage program;
The processor is used to perform the program in the memory, step specific as follows:
Obtain the packet to be installed of target software;
When the target software is in running status, institute is installed under the installation directory of the target software
Packet to be installed is stated, and generates corresponding first executable program of the packet to be installed;
Attribute modification is carried out to the second executable program under the installation directory, and obtains file destination,
The file destination is non-executable program;
After the target software is closed, the startup for controlling the transceiver to receive the target software refers to
Order;
According to the enabled instruction, start first executable program.
As can be seen from the above technical solutions, the embodiment of the present invention has advantages below:
There is provided a kind of method of software upgrading in the embodiment of the present invention, software updating apparatus is obtained first
The packet to be installed of target software, when target software is in running status, in the installation of target software
Packet to be installed is installed under catalogue, and generates corresponding first executable program of packet to be installed, it is right
The second executable program under installation directory carries out attribute modification, and obtains file destination, and file destination is
Non- executable program, after target software is closed, receives the enabled instruction of target software, according to startup
Instruction, starts the first executable program.The update of target software is carried out through the above way, can be with
In the case of user's unaware, while continuing the task in original process, while carrying out software on backstage
Update, after upgrading successfully, when system reboot, can directly perform upgrading after first can perform
Program, and original second executable program will not be run because of the change of attribute, so as to complete target
Software upgrading, lifts Consumer's Experience, also make it that installation process is more flexible.
Brief description of the drawings
Fig. 1 is method one embodiment schematic diagram of software upgrading in the embodiment of the present invention;
Fig. 2 is another embodiment schematic diagram of the method for software upgrading in the embodiment of the present invention;
Fig. 3 is the schematic diagram of software upgrading flow in the embodiment of the present invention;
Fig. 4 is the schematic diagram of software installation flow in the embodiment of the present invention;
Fig. 5 is the display schematic diagram at software upgrading interface (1) in application scenarios of the present invention;
Fig. 6 is the display schematic diagram at software upgrading interface (2) in application scenarios of the present invention;
Fig. 7 is the display schematic diagram at software upgrading interface (3) in application scenarios of the present invention;
Fig. 8 is the display schematic diagram at software upgrading interface (4) in application scenarios of the present invention;
Fig. 9 is software updating apparatus one embodiment schematic diagram in the embodiment of the present invention;
Figure 10 is software updating apparatus one embodiment schematic diagram in the embodiment of the present invention;
Figure 11 is software updating apparatus one embodiment schematic diagram in the embodiment of the present invention;
Figure 12 is software updating apparatus one embodiment schematic diagram in the embodiment of the present invention;
Figure 13 is software updating apparatus one embodiment schematic diagram in the embodiment of the present invention;
Figure 14 is software updating apparatus one embodiment schematic diagram in the embodiment of the present invention;
Figure 15 is software updating apparatus one embodiment schematic diagram in the embodiment of the present invention;
Figure 16 is software updating apparatus one embodiment schematic diagram in the embodiment of the present invention;
Figure 17 is software updating apparatus one embodiment schematic diagram in the embodiment of the present invention;
Figure 18 is one structural representation of software updating apparatus in the embodiment of the present invention.
Embodiment
, can be in user the embodiments of the invention provide a kind of method of software upgrading and software updating apparatus
Target software upgrading is completed in the case of unaware, Consumer's Experience is lifted, also make it that installation process is more clever
It is living.
Term " first ", " second " in description and claims of this specification and above-mentioned accompanying drawing, "
Three ", the (if present) such as " 4th " is for distinguishing similar object, without specific for describing
Order or precedence.It should be appreciated that the data so used can be exchanged in the appropriate case, so as to this
In the embodiments of the invention that describe for example can be with suitable in addition to those for illustrating or describing herein
Sequence is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that covering is not
Exclusive includes, for example, contain the process of series of steps or unit, method, system, product or
Equipment is not necessarily limited to those steps clearly listed or unit, but may include what is do not listed clearly
Or for the intrinsic other steps of these processes, method, product or equipment or unit.
It should be understood that the embodiment of the present invention can apply to different user equipment (English full name:User
Equipment, english abbreviation:UE), such as mobile phone, tablet personal computer or PC (English full name:
Personal Computer, english abbreviation:The equipment such as PC), therefore be not construed as limiting herein.
For PC, the present invention program can also be realized under different operating environments, for example regarding
(the English full name of window operating system 2000:Windows 2000) in the environment of, or window-operating system
System experience version (English full name:Windows Experience, english abbreviation:Windows XP) environment
Under, in the environment of can also be Windows 7 or Windows 8, therefore it is not construed as limiting herein.
In addition, if the program is applied to mobile phone, then it can be applied not only to Google's exploitation
Operating system (English full name:Android), the Mobile operating system (English of Apple Inc. can also be applied to
Literary full name:Apple Operating System, english abbreviation:IOS), or it is other kinds of operation system
System, therefore be not construed as limiting herein.
Referring to Fig. 1, method one embodiment of software upgrading includes in the embodiment of the present invention:
101st, the packet to be installed of target software is obtained;
In the present embodiment, software updating apparatus can obtain the packet to be installed of target software, and target is soft
Part is the software that can currently upgrade, such as browser software, chat software or social software, its
It is the software installation bag of target software in packet to be installed, is that can voluntarily decompress the set of file, its
Include the All Files of software installation, run this packet to be installed, can be by all of this software
File be discharged on hard disk, complete edit the registry, modification system and set and create the work such as shortcut
Make.
102nd, when target software is in running status, installed under the installation directory of target software and wait to pacify
Packet is filled, and generates corresponding first executable program of packet to be installed;
In the present embodiment, when target software is in running status, software updating apparatus is in the mesh
Packet to be installed is installed under the installation directory for marking software, now, target software is risen on backstage
Level processing, but this when of user can still be continuing with the target software do not upgraded, and user does not feel
Know that the target software of redaction is promoted to finish.
Software updating apparatus can generate packet to be installed corresponding after the completion of upgrading to target software
One executable program.
103rd, attribute modification is carried out to the second executable program under installation directory, and obtains target text
Part, file destination is non-executable program;
In the present embodiment, after the completion of the upgrading of target software, the corresponding legacy version operation journey of target software
Sequence can be carried out delete processing, in order to avoid take Installed System Memory.Concrete mode is, software updating apparatus pair
Target software former operation program, i.e. the second executable program under installation directory, carry out attribute modification, repair
File destination is obtained after changing, wherein, the file destination is nonexecutable program, that is, lose it is original
The function of operational objective software.
104th, after target software is closed, the enabled instruction of target software is received;
In the present embodiment, after target software is closed, when user needs to reuse the target software,
Can be by input equipment to software updating apparatus transmission enabled instruction, it is soft that software updating apparatus receives target
The corresponding enabled instruction of part.
105th, according to enabled instruction, the first executable program is started.
In the present embodiment, software updating apparatus is according to enabled instruction is received, and starting corresponding first can hold
Line program, the first executable program is the corresponding operation program of target software after upgrading, is completed with regard to this
In the case that user does not perceive, the process upgraded on backstage to target software.
There is provided a kind of method of software upgrading in the embodiment of the present invention, software updating apparatus is obtained first
The packet to be installed of target software, when target software is in running status, in the installation of target software
Packet to be installed is installed under catalogue, and generates corresponding first executable program of packet to be installed, it is right
The second executable program under installation directory carries out attribute modification, and obtains file destination, and file destination is
Non- executable program, after target software is closed, receives the enabled instruction of target software, according to startup
Instruction, starts the first executable program.The update of target software is carried out through the above way, can be with
In the case of user's unaware, while continuing the task in original process, while carrying out software on backstage
Update, after upgrading successfully, when system reboot, can directly perform upgrading after first can perform
Program, and original second executable program will not be run because of the change of attribute, so as to complete target
Software upgrading, lifts Consumer's Experience, also make it that installation process is more flexible.
Referring to Fig. 2, another embodiment of the method for software upgrading includes in the embodiment of the present invention:
201st, detection target software whether there is packet to be installed;
In the present embodiment, software updating apparatus starts whether detection currently deposits after target software process initiation
In packet to be installed.Wherein, process is both the basis of operating system configuration, is holding for a secondary program again
OK, or the activity that occurs when order is performed on a processor of a program and its data, it is also one
The process run on individual data acquisition system.It is the individual that system carries out Resource Distribution and Schedule.
If the 202, target software has packet to be installed, packet to be installed is downloaded;
In the present embodiment, if target software has packet to be installed, this can be downloaded on backstage and treated
Installation data bag.
The detailed process of step 201 and step 202 see Fig. 3, and Fig. 3 is software in the embodiment of the present invention
The schematic diagram for flow of upgrading, as shown in the figure:
Step 301:Process open command is initiated by user, starts the process of target software;
Step 302:As step 201 detection target software is with the presence or absence of packet to be installed this operation,
I.e. on-line checking whether there is redaction, and the process of on-line checking can be the detection of continuation, though so
Redaction so can be quickly found, but more Internet resources can be taken, therefore between could be arranged to
Having a rest property is detected, such as the detection of a redaction is carried out every 15 minutes, if redaction has been detected
Into step 303, if without redaction, jumping to step 305;
Step 303:If as step 202 target software has packet to be installed, downloading number to be installed
It is described according to bag, if current target software has the packet to be installed of redaction, directly download this
Packet to be installed;
Step 304:The packet to be installed of redaction is installed, and is installed under default path;
If the packet to be installed of redaction is not present in the current target software of step 305, exit soft
The upgrading of part, or no longer carry out in some preset time the operation of software upgrading.
203rd, the packet to be installed of target software is obtained;
In the present embodiment, in step 304, when the packet to be installed of installation redaction, and it is installed to
Under default path, also imply that software updating apparatus gets the installation data bag for having completed to download.
204th, when target software is in running status, installed under the installation directory of target software and wait to pacify
Packet is filled, and generates corresponding first executable program of packet to be installed;
In the present embodiment, step 204 step 102 corresponding with Fig. 1 in above-described embodiment is similar, so
Place is not repeated.
205th, attribute modification is carried out to the second executable program under installation directory, and obtains target text
Part, file destination is non-executable program;
In the present embodiment, step 205 step 103 corresponding with Fig. 1 in above-described embodiment is similar, so
Place is not repeated.
206th, after target software is closed, the enabled instruction of target software is received;
In the present embodiment, step 206 step 104 corresponding with Fig. 1 in above-described embodiment is similar, so
Place is not repeated.
207th, according to enabled instruction, the first executable program is started.
In the present embodiment, step 207 step 105 corresponding with Fig. 1 in above-described embodiment is similar, so
Place is not repeated.
Secondly, in the embodiment of the present invention, also specifically illustrate software updating apparatus and obtain treating for target software
Before installation data bag, detection target software whether there is packet to be installed, if target software is present
Packet to be installed, then download packet to be installed and carry out follow-up unaware upgrading.So that this
The operability of scheme of the invention in actual applications is stronger, and can also embody the present invention do not need user couple
It carries out the associative operations such as update, conveniently completes software upgrading, the practicality of lifting scheme
And strengthen Consumer's Experience.
Alternatively, on the basis of the corresponding embodiments of above-mentioned Fig. 1 or Fig. 2, the embodiment of the present invention is provided
Software upgrading first alternative embodiment of method in, obtain target software packet to be installed after,
It can also include:
The first subdirectory is created under installation directory;
Packet to be installed is installed under the installation directory of target software, can be included:
The first subdirectory under installation directory installs packet to be installed.
In the present embodiment, software updating apparatus is got after the packet to be installed of target software, is first existed
The first subdirectory is created under installation directory, it is to be understood that we can using installation directory as parent directory,
So subdirectory is exactly a catalogue in parent directory, and can also have subdirectory in subdirectory, therefore son
Catalogue be do not have it is conditional.For example in PC, C:Be parent directory, then C:Windows be exactly C:\
Subdirectory, and C:Windows System32 be exactly C:Windows subdirectory.
Set up and completed after the first subdirectory under installation directory, pacified in the first subdirectory under installation directory
Fill packet to be installed.
Secondly, in the embodiment of the present invention, the first subdirectory is first created under installation directory, then can be with the
Packet to be installed is installed under one subdirectory.On the one hand the All Files in packet to be installed is attributed to the
One subdirectory, be easy to it is disposable handled, such as can directly be deleted by deleting subdirectory and wait to pacify
Packet is filled, packet to be installed is on the other hand positioned in subdirectory into convenient and alternative document carries out area
Point, the feasibility of lifting scheme.
Alternatively, on the basis of the corresponding one embodiment of above-mentioned Fig. 1 or Fig. 2, the present invention is implemented
In second alternative embodiment of method for the software upgrading that example is provided, the first son can be included in installation directory
Catalogue and the second subdirectory, wherein, the first subdirectory corresponds to the first executable program, the second specific item
Record corresponds to the second executable program, and the second subdirectory is used for the former data for storing target software.
In the present embodiment, in installation directory in addition to the first subdirectory, the second subdirectory is further comprises,
Be used to storing the content of packet to be installed in first subdirectory, and the first subdirectory it is corresponding be first can
Configuration processor, when running the first executable program, its data source is in the first subdirectory.Second specific item
It is used to store the former data before target software is not upgraded in record, and the second subdirectory corresponds to second and can perform
Program, the target software being being currently used is run by the second executable program.
It is understood that the first executable program can both be preserved in the first subdirectory, can also be certainly
It is dynamic to copy installation directory to from the first subdirectory, as shortcut, it is not construed as limiting herein.
Again, in the embodiment of the present invention, being set up under installation directory has the first subdirectory and the second subdirectory,
And the first subdirectory and the second subdirectory store different data respectively, it is easy to before difference upgrading and upgrading
File afterwards, then be conducive to during subsequent treatment the efficiency of raising system work, increase the feasible of scheme
Property and operability.
Alternatively, on the basis of the corresponding one embodiment of above-mentioned Fig. 1 or Fig. 2, the present invention is implemented
In the 3rd alternative embodiment of method for the software upgrading that example is provided, it can also include:
When the attribute modification failure of the second executable program, then the first subdirectory is deleted, and terminate flow.
In the present embodiment, software updating apparatus automatic can carry out attribute to the second executable program on backstage and repair
Change, if occurring operation disruption or operational error during attribute modification, illustrate that second can hold
The attribute modification failure of line program, this when will delete the first subdirectory, according to institute in above-described embodiment
The content of introduction is understood, packet to be installed is contained in the first subdirectory, therefore deletion is to wait to pacify
Fill packet.
Again, in the embodiment of the present invention, a kind of situation, the i.e. attribute when the second executable program are set
During modification failure, the first subdirectory is deleted, and terminate flow.Software upgrading is carried out by such mode,
It can effectively prevent from causing to conflict between the second executable program and the first executable program, can second
When row program is also effective procedure, if the first executable program is also effective, operation will be clashed
Situation.Thus the practicality of enhanced scheme and flexibility, lifts Consumer's Experience.
Alternatively, on the basis of the corresponding one embodiment of above-mentioned Fig. 1 or Fig. 2, the present invention is implemented
In the 4th alternative embodiment of method for the software upgrading that example is provided, the first specific item is created under installation directory
After record, it can also include:
Packet to be installed is decompressed under the first subdirectory;
When packet de-compression failure to be installed, then the first subdirectory is deleted, and terminate flow.
In the present embodiment, software updating apparatus is created under installation directory after the first subdirectory, first
Need to decompress packet to be installed under the first subdirectory, and when the packet de-compression failure to be installed
When, the first subdirectory can be automatically deleted, and terminate related procedure.
Wherein, decompression is exactly to return to one by various things such as the documents and file of Software Compression
Appearance before compression, this form is in favor of transmitting or store.Its principle is exactly to utilize compressed software handle
Identical character string reaches the mesh of compression with spcial character mark in binary message.
Again, in the embodiment of the present invention, when packet to be installed de-compression failure under the first subdirectory,
The first subdirectory can be deleted, and terminates flow.It can overcome through the above way because decompression unsuccessfully causes
Inactive file is remained in disk space, and the situation of occupying system resources, according to actual conditions to decompression
The packet to be installed of failure, which delete in time, can effectively avoid above mentioned problem, so that side
The practicality of case is stronger, lifts the performance of user equipment.
Alternatively, on the basis of the corresponding embodiments of above-mentioned Fig. 1 or Fig. 2, the embodiment of the present invention is provided
Software upgrading the 5th alternative embodiment of method in, the second executable program under installation directory is entered
Row attribute modification, can include:
Corresponding first suffix name of the second executable program under installation directory is changed to the second suffix name.
In the present embodiment, software updating apparatus carries out attribute to the second executable program under installation directory and repaiied
The specific practice changed can be, by corresponding first suffix name of the second executable program under installation directory more
It is changed to the second suffix name.
Wherein, the second executable program is exactly executable program (the English full name corresponding to legacy version:
Executable program, english abbreviation:Exe), the first suffix name is referred to as file extension, i.e.,
For .exe, the second suffix name is the file extension after change, for example .exe can be changed into .exe.old,
It is signified file destination in the present invention so that the file after change is not executable file.
It is understood that the suffix name of file is also referred to as file extension, it is that operating system is used for indicating
A kind of mechanism of file type.As a rule, an extension name is followed behind root name, by one
Individual separators.In a picture, " in the filename for reading my .txt ", it is root name to read me, and .txt is expansion
Open up name (text or foreign language full name:Text), it is considered as a text-only file to represent this file.Expand
Exhibition name is considered the metadata of a type,
The length of some file system limitation extension, such as personal computer disc operating system and microfloppies
File configuration table (English full name in operating system:File Allocation Table, english abbreviation:FAT)
File system does not allow more than three characters, International Business Machine Corporation (IBM)) or International Business Machines Corporation (English
Literary full name:International Business Machines Corporation, english abbreviation:IBM void)
Plan machine (English full name:Virtual Manufacturing, english abbreviation:VM)/Content Management System (English
Literary full name:Content Management System, english abbreviation:CMS eight words) are not allowed more than
Symbol, and other such as New Technology File System (English full name:New Technology File System,
English abbreviation:NTFS) do not limit then.
Secondly, in the embodiment of the present invention, specifically propose how one kind changes the second executable program attribute
Mode, the function can be realized by changing the suffix name of the second executable program.And change suffix
Name is not only able to change the attribute of the second executable program, and it can also be carried out flexibly according to actual needs
Attribute configuration, at the same time, change suffix mode it is easy and effective, it is not necessary to take excessive calculating
Resource realizes the effect, improves the practicality of scheme.
Alternatively, in any of corresponding first to the 5th embodiment of above-mentioned Fig. 1 or Fig. 2 embodiment
On the basis of, in the 6th alternative embodiment of method of software upgrading provided in an embodiment of the present invention, according to
Enabled instruction, starts after the first executable program, can also include:
Delete target file and the second subdirectory.
In the present embodiment, when user restarts the process of target software, then the startup triggered according to user refers to
Order starts the first executable program, and the target software of system operation redaction.So this when, right
For the file for answering legacy version, then delete processing, delete target file and the second subdirectory can be carried out.
Wherein, file destination is exactly the process suffix name referred in corresponding 5th alternative embodiment of above-mentioned Fig. 1
Amended not executable file, the second subdirectory is then to store the former data before target software is not upgraded.
Because can successfully use the target software of redaction, then the content of these legacy versions can be deleted
Remove, so as to discharge system space.
Further, in the embodiment of the present invention, enabled instruction and execution first are received in software updating apparatus
After executable program, file destination and the second subdirectory are automatically deleted.It is possible thereby to be to be in time
Unite " weight reducing ", increase power system capacity, be not take up excessive space, lift resource utilization, strengthen this hair
The flexibility of bright scheme and practicality.
Alternatively, on the basis of corresponding second embodiment of above-mentioned Fig. 1 or Fig. 2, the present invention is implemented
In the 7th alternative embodiment of method for the software upgrading that example is provided, after the first executable program of startup,
It can also include:
If the operation failure of the first executable program, the second executable program is reduced to by file destination, and
Perform the second executable program.
In the present embodiment, after the first executable program is started, in the event of the first executable program fortune
Row failure, then reduced file destination, obtain the second executable program.In other words, that is, when
Redaction target software operation failure when, then can run the target software of legacy version, without because
Upgrading unsuccessfully leads to not the situation using the target software.
Wherein, the second executable program is exactly the executable program corresponding to legacy version, by file destination also
Originally it was the second executable program, and can was specifically, the second suffix name is changed to the first suffix name, example again
Such as the entitled .exe.old of the second suffix, it indicates a not executable program, it is therefore desirable to by .exe.old.,
.exe is changed to, so as to perform the second executable file.
Further, in the embodiment of the present invention there is provided one kind when the first executable program run failure when
Alternative, if the first executable program is not normally functioning, software updating apparatus is automatic by mesh
Mark file is reduced to the second executable program again, and user is opened by opening the second executable program
The target software of legacy version.Carry out software upgrading through the above way, it is to avoid because special circumstances cause
The situation that target software can not be run, even if install failure, can also automatically restore to legacy version, not influence
The normal of legacy version is used, so that the flexibility of increased scheme.
Alternatively, on the basis of corresponding 7th embodiment of above-mentioned Fig. 1 or Fig. 2, the present invention is implemented
In the 8th alternative embodiment of method for the software upgrading that example is provided, after the second executable program of execution,
It can also include:
Delete the first executable program and the first subdirectory.
In the present embodiment, on the basis of corresponding 7th embodiment of Fig. 1 or Fig. 2, it is known that such as
Really the first executable program operation failure, then be reduced to the second executable program, and perform by file destination
Second executable program, will finally delete the first executable program and the first subdirectory.
When the operation of the first executable program unsuccessfully also implies that the upgrading of this target software does not have into
Work(, the first executable program and corresponding first subdirectory can be automatically deleted during this time, retracted
To legacy version.The process that whole target software is installed will be specifically introduced below, referring to Fig. 4, Fig. 4 is this
The schematic diagram of software installation flow in inventive embodiments, as illustrated, we will be introduced in detail:
Step 401:Target software is opened, if this when of backstage detects the target software and has new edition
Originally it can download, then start to download the corresponding redaction packet to be installed of target software, this is also opened
Erection schedule is opened;
Step 402:After the packet to be installed of redaction is downloaded successfully, software updating apparatus is in installation directory
Lower establishment 9.*.*.* subdirectory;
Step 403:Packet to be installed is decompressed in 9.*.*.* subdirectory again;
Step 404:It is possible that decompressing the mistake of exception or other forms, then during decompression
Need whether successfully to detect decompression in this step, if decompressed successfully, continue to walk
Rapid 405, if conversely, de-compression failure, jumps to step 410;
Step 405:If step 404 is decompressed successfully, the corresponding executable file of legacy version is carried out
Renaming processing, for example can be by .exe RNTOs .exe.old;
Step 406:Certainly, the equally possible renaming that runs into is abnormal during the renaming of step 405,
Or the problem of other forms, then need whether successfully to detect renaming in the step for,
If renaming success, continues step 407, whereas if de-compression failure, then jump to step
410;
Step 407:If the executable program renaming success to legacy version, by under 9.*.*.* subdirectories
Executable program, i.e., the file using .exe as suffix is copied under installation directory, is located at subdirectory same
One layer, user is facilitated to select;
Step 408:Carry out that related operation is installed on backstage, for example, fire wall, registration table and quick are set
Mode etc., fire wall is the network safety system between a kind of internally positioned network and external network.One
The guard system of information security, according to specific rule, it is allowed to or the data of limitation transmission pass through, and note
Volume table is used for the configuration information of storage system and application program;
Step 409:With regard to this, the update of target software is fully completed, and is upgraded successfully;
Step 410:Either in decompression de-compression failure occurs for step 404, or step 406 exists
The renaming failure of legacy version executable program, will all carry out this step, that is, delete 9.*.*.* subdirectories;
Step 411:After step 410 deletes 9.*.*.* subdirectories, it is meant that update fails, this
The target software of legacy version can be returned to when individual, is still old until opening target software next time
The content of version, but the backstage upgrading for target software still may be referred to step 401 to 411 institutes
The process stated is realized.
Further, in the embodiment of the present invention, when the first executable program is not normally functioning, from
It is dynamic that file destination is reduced to the second executable program again, and open old by the second executable program
After the target software of version, the first executable program and the first subdirectory can also be deleted, so as to reach
To the effect for saving system resource, computational efficiency is lifted, strengthens Consumer's Experience.
For ease of understanding, below with a concrete application scene to a kind of method of software upgrading in the present invention
It is described in detail, is specially:
User's first has been downloaded Tengxun's browser on the PC of oneself and used, and user's first is habitually being risen daily
Financial and economic news is searched in news browser.It is noninductive at him when current user's first is again turned on Tengxun's browser
In the case of knowing, browser backstage, which is detected, has occurred in that redaction content can be downloaded, its version number
For 9.3.6438.400.Referring to Fig. 5, Fig. 5 is software upgrading interface (1) in application scenarios of the present invention
Display schematic diagram, as illustrated, starting packet process to be installed in software updating apparatus, is obtained
The version of the packet to be installed, and it is being currently installed on catalogue C:\Program Files(×
86) subdirectory is created under/Tencent/QQBrower, it is understood that to be sub-folder, title is
New version number 9.3.6438.400.
Now, then by the file in packet to be installed unzip in new sub-folder 9.3.6438.400,
Specifically referring to Fig. 6, Fig. 6 is the display schematic diagram at software upgrading interface (2) in application scenarios of the present invention,
If decompression failure, can delete newly-generated sub-folder 9.3.6438.400, and directly exit certainly
The flow of upgrading, if on the contrary, decompressing successfully, then just contained in sub-folder 9.3.6438.400
All complete installation procedures, certainly, also include executable program.
Because legacy version 9.3.6400.400 one executable program of correspondence, and redaction 9.3.6438.400
One executable program of correspondence, this is accomplished by the executable program of legacy version to be processed as not executable program
It just can guarantee that the normal operation of redaction.Changing the executable program specific practice of legacy version can be, will
According to the exe files progress renaming of principle under catalogue, the exe.old after being named, as shown in fig. 7,
Fig. 7 is the display schematic diagram at software upgrading interface (3) in application scenarios of the present invention, is not difficult to find out, icon
QQBrower.exe.old has been the file after change, and now it can not normally be run.It can manage
Solution, still can be with renaming success in the case where legacy version is run, and need not exit installation
Process.
In the case of unavoidable, it is possible that the executable file renaming to legacy version fails, this
Still the sub-folder 9.3.6438.400 newly created can be deleted when individual, and explanation is installed and lost
Lose.If renaming success, then 9.3.6400.400 pairs of legacy version can be automatically deleted after system reboot
The QQBrower.exe.old files answered and other related data.
Exe programs in sub-folder are copied under installation directory, referring to Fig. 8, Fig. 8 is the present invention
The display schematic diagram of software upgrading interface (4) in application scenarios, user's first reopens Tengxun's browser and entered
Cheng Shi, can only be opened, and load the file under new directory 9.3.6438.400 by the exe after renewal.And
The QQBrower.exe.old files of legacy version can not be opened, or, directly delete
QQBrower.exe.old files.
The software updating apparatus in the present invention is described in detail below, referring to Fig. 9, the present invention is real
The software updating apparatus in example is applied, including:
Acquisition module 501, the packet to be installed for obtaining target software;
Module 502 is installed, for when the target software is in running status, in the target software
The packet to be installed that the acquisition module 501 is obtained is installed under installation directory, and treated described in generation
Corresponding first executable program of installation data bag;
Modified module 503, the packet to be installed corresponding first is generated for the installation module 502
After executable program, attribute modification is carried out to the second executable program under the installation directory, and obtain
To file destination, the file destination is non-executable program;
Receiving module 504, enters for the second executable program under 503 pairs of installation directories of modified module
After row attribute modification, after the target software is closed, the enabled instruction of the target software is received;
Starting module 505, for the enabled instruction received according to the receiving module 504, starts institute
State and first executable program that module is installed is installed.
In the present embodiment, acquisition module 501 obtains the packet to be installed of target software, works as target software
During in running status, module 502 is installed acquisition module 501 is installed under the installation directory of target software
The packet to be installed obtained, and corresponding first executable program of packet to be installed is generated, mould is installed
Block 502 is generated after corresponding first executable program of packet to be installed, 503 pairs of installations of modified module
The second executable program under catalogue carries out attribute modification, and obtains file destination, file destination for it is non-can
Configuration processor, modified module 503 under installation directory the second executable program carry out attribute modification it
Afterwards, after target software is closed, receiving module 504 receives the enabled instruction of target software, starts mould
The enabled instruction that block 505 is received according to receiving module 504, start installation module installation first can perform
Program.
There is provided a kind of method of software upgrading in the embodiment of the present invention, software updating apparatus is obtained first
The packet to be installed of target software, when target software is in running status, in the installation of target software
Packet to be installed is installed under catalogue, and generates corresponding first executable program of packet to be installed, it is right
The second executable program under installation directory carries out attribute modification, and obtains file destination, and file destination is
Non- executable program, after target software is closed, receives the enabled instruction of target software, according to startup
Instruction, starts the first executable program.The update of target software is carried out through the above way, can be with
In the case of user's unaware, while continuing the task in original process, while carrying out software on backstage
Update, after upgrading successfully, when system reboot, can directly perform upgrading after first can perform
Program, and original second executable program will not be run because of the change of attribute, so as to complete target
Software upgrading, lifts Consumer's Experience, also make it that installation process is more flexible.
Alternatively, on the basis of the corresponding embodiments of above-mentioned Fig. 9, Figure 10 inventive embodiments is referred to and are carried
In another embodiment of the software updating apparatus 50 of confession, software updating apparatus 50 also includes:
Detection module 506, for the acquisition module 501 obtain target software packet to be installed it
Before, detect that the target software whether there is the packet to be installed;
Download module 507, is treated if detecting the target software for the detection module 506 in the presence of described in
Installation data bag, then download the packet to be installed.
Secondly, in the embodiment of the present invention, also specifically illustrate software updating apparatus and obtain treating for target software
Before installation data bag, detection target software whether there is packet to be installed, if target software is present
Packet to be installed, then download packet to be installed and carry out follow-up unaware upgrading.So that this
The operability of scheme of the invention in actual applications is stronger, and can also embody the present invention do not need user couple
It carries out the associative operations such as update, conveniently completes software upgrading, the practicality of lifting scheme
And strengthen Consumer's Experience.
Alternatively, on the basis of the corresponding embodiments of above-mentioned Fig. 9, Figure 11 inventive embodiments is referred to and are carried
In another embodiment of the software updating apparatus 50 of confession, software updating apparatus 50 also includes:
After creation module 508, the packet to be installed that target software is obtained for the acquisition module 501,
The first subdirectory is created under the installation directory;
The installation module 502 includes:
Installation unit 5021, for waiting to pacify described in first subdirectory installation under the installation directory
Fill packet.
Secondly, in the embodiment of the present invention, the first subdirectory is first created under installation directory, then can be with the
Packet to be installed is installed under one subdirectory.On the one hand the All Files in packet to be installed is attributed to the
One subdirectory, be easy to it is disposable handled, such as can directly be deleted by deleting subdirectory and wait to pacify
Packet is filled, packet to be installed is on the other hand positioned in subdirectory into convenient and alternative document carries out area
Point, the feasibility of lifting scheme.
Alternatively, on the basis of the corresponding embodiments of above-mentioned Fig. 9, in embodiments of the present invention, install
Catalogue includes first subdirectory and the second subdirectory, wherein, first subdirectory corresponds to
First executable program, second subdirectory corresponds to second executable program, described the
Two subdirectories are used for the former data for storing the target software.
Again, in the embodiment of the present invention, being set up under installation directory has the first subdirectory and the second subdirectory,
And the first subdirectory and the second subdirectory store different data respectively, it is easy to before difference upgrading and upgrading
File afterwards, then be conducive to during subsequent treatment the efficiency of raising system work, increase the feasible of scheme
Property and operability.
Alternatively, on the basis of the corresponding embodiments of above-mentioned Figure 11, Figure 12 inventive embodiments are referred to
In another embodiment of the software updating apparatus 50 of offer, software updating apparatus 50 also includes:
First removing module 509, for when the attribute modification failure of second executable program, then deleting
Except first subdirectory, and terminate flow.
Again, in the embodiment of the present invention, a kind of situation, the i.e. attribute when the second executable program are set
During modification failure, the first subdirectory is deleted, and terminate flow.Software upgrading is carried out by such mode,
It can effectively prevent from causing to conflict between the second executable program and the first executable program, can second
When row program is also effective procedure, if the first executable program is also effective, operation will be clashed
Situation.Thus the practicality of enhanced scheme and flexibility, lifts Consumer's Experience.
Alternatively, on the basis of the corresponding embodiments of above-mentioned Figure 11, Figure 13 inventive embodiments are referred to
In another embodiment of the software updating apparatus 50 of offer, software updating apparatus 50 also includes:
Decompression module 510, the first subdirectory is created for the creation module 508 under the installation directory
Afterwards, the packet to be installed is decompressed under first subdirectory;
Second removing module 511, for decompressing the packet decompression to be installed when the decompression module 510
During contracting failure, then first subdirectory is deleted, and terminate flow.
Again, in the embodiment of the present invention, when packet to be installed de-compression failure under the first subdirectory,
The first subdirectory can be deleted, and terminates flow.It can overcome through the above way because decompression unsuccessfully causes
Inactive file is remained in disk space, and the situation of occupying system resources, according to actual conditions to decompression
The packet to be installed of failure, which delete in time, can effectively avoid above mentioned problem, so that side
The practicality of case is stronger, lifts the performance of user equipment.
Alternatively, on the basis of the corresponding embodiments of above-mentioned Fig. 9, Figure 14 inventive embodiments is referred to and are carried
In another embodiment of the software updating apparatus 50 of confession,
The modified module 503 includes:
Updating block 5031, for by second executable program under the installation directory corresponding
One suffix name is changed to the second suffix name.
Secondly, in the embodiment of the present invention, specifically propose how one kind changes the second executable program attribute
Mode, the function can be realized by changing the suffix name of the second executable program.And change suffix
Name is not only able to change the attribute of the second executable program, and it can also be carried out flexibly according to actual needs
Attribute configuration, at the same time, change suffix mode it is easy and effective, it is not necessary to take excessive calculating
Resource realizes the effect, improves the practicality of scheme.
Alternatively, on the basis of the corresponding embodiment in above-mentioned Figure 11,12 or 13, Figure 15 hairs are referred to
In another embodiment for the software updating apparatus 50 that bright embodiment is provided, software updating apparatus 50 is also wrapped
Include:
3rd removing module 512, for the starting module 505 according to the enabled instruction, starts described
After first executable program, the file destination and second subdirectory are deleted.
Further, in the embodiment of the present invention, enabled instruction and execution first are received in software updating apparatus
After executable program, file destination and the second subdirectory are automatically deleted.It is possible thereby to be to be in time
Unite " weight reducing ", increase power system capacity, be not take up excessive space, lift resource utilization, strengthen this hair
The flexibility of bright scheme and practicality.
Alternatively, on the basis of the corresponding embodiments of above-mentioned Fig. 9, Figure 16 inventive embodiments is referred to and are carried
In another embodiment of the software updating apparatus 50 of confession,
Recovery module 513, after starting first executable program for the starting module 505, if
The first executable program operation failure, then be reduced to the described second executable journey by the file destination
Sequence, and perform second executable program.
Further, in the embodiment of the present invention there is provided one kind when the first executable program run failure when
Alternative, if the first executable program is not normally functioning, software updating apparatus is automatic by mesh
Mark file is reduced to the second executable program again, and user is opened by opening the second executable program
The target software of legacy version.Carry out software upgrading through the above way, it is to avoid because special circumstances cause
The situation that target software can not be run, even if install failure, can also automatically restore to legacy version, not influence
The normal of legacy version is used, so that the flexibility of increased scheme.
Alternatively, on the basis of the corresponding embodiments of above-mentioned Figure 16, Figure 17 inventive embodiments are referred to
In another embodiment of the software updating apparatus 50 of offer,
4th removing module 514, after performing second executable program for the recovery module 513,
Delete first executable program and first subdirectory.
Further, in the embodiment of the present invention, when the first executable program is not normally functioning, from
It is dynamic that file destination is reduced to the second executable program again, and open old by the second executable program
After the target software of version, the first executable program and the first subdirectory can also be deleted, so as to reach
To the effect for saving system resource, computational efficiency is lifted, strengthens Consumer's Experience.
The embodiment of the present invention additionally provides another image display control apparatus, as shown in figure 18, in order to just
In explanation, the part related to the embodiment of the present invention is illustrate only, particular technique details is not disclosed, please
With reference to present invention method part.The terminal can be to include mobile phone, tablet personal computer, individual digital
Assistant's (English full name:Personal Digital Assistant, english abbreviation:PDA), point-of-sale terminal (English
Literary full name:Point of Sales, english abbreviation:POS), any terminal device such as vehicle-mounted computer, with terminal
Exemplified by mobile phone:
Figure 18 is illustrated that the frame of the part-structure of the mobile phone related to terminal provided in an embodiment of the present invention
Figure.With reference to Figure 18, mobile phone includes:Radio frequency (English full name:Radio Frequency, english abbreviation:
RF) circuit 610, memory 620, input block 630, display unit 640, sensor 650, sound
Frequency circuit 660, Wireless Fidelity (English full name:Wireless fidelity, english abbreviation:WiFi) module
670th, the part such as processor 680 and power supply 690.It will be understood by those skilled in the art that in Figure 18
The handset structure shown does not constitute the restriction to mobile phone, can include than illustrating more or less parts,
Either combine some parts or different parts arrangement.
Each component parts of mobile phone is specifically introduced with reference to Figure 18:
RF circuits 610 can be used for receive and send messages or communication process in, the reception and transmission of signal, especially,
After the downlink information of base station is received, handled to processor 680;In addition, being sent out up data are designed
Give base station.Generally, RF circuits 610 include but is not limited to antenna, at least one amplifier, transmitting-receiving letter
Machine, coupler, low-noise amplifier (English full name:Low Noise Amplifier, english abbreviation:LNA)、
Duplexer etc..In addition, RF circuits 610 can also be communicated by radio communication with network and other equipment.
Above-mentioned radio communication can use any communication standard or agreement, including but not limited to global system for mobile telecommunications system
System (English full name:Global System of Mobile communication, english abbreviation:GSM)、
General packet radio service (English full name:General Packet Radio Service, english abbreviation:
GPRS), CDMA (English full name:Code Division Multiple Access, english abbreviation:
CDMA), WCDMA (English full name:Wideband Code Division Multiple Access,
English abbreviation:WCDMA), Long Term Evolution (English full name:Long Term Evolution, English contracting
Write:LTE), Email, Short Message Service (English full name:Short Messaging Service, English
Text abbreviation:SMS) etc..
Memory 620 can be used for storage software program and module, and processor 680 is stored in by operation
The software program and module of memory 620, so as to perform at the various function application and data of mobile phone
Reason.Memory 620 can mainly include storing program area and storage data field, wherein, storing program area can
Application program needed for storage program area, at least one function (broadcast by such as sound-playing function, image
Playing function etc.) etc.;Storage data field can be stored uses created data (such as audio according to mobile phone
Data, phone directory etc.) etc..In addition, memory 620 can include high-speed random access memory, also
Can include nonvolatile memory, for example, at least one disk memory, flush memory device or other
Volatile solid-state part.
Input block 630 can be used for the numeral or character information for receiving input, and produce the use with mobile phone
The key signals input that family is set and function control is relevant.Specifically, input block 630 may include touch-control
Panel 631 and other input equipments 632.Contact panel 631, also referred to as touch-screen, collect user
(such as user uses any suitable objects or attached such as finger, stylus for touch operation on or near it
Operation of the part on contact panel 631 or near contact panel 631), and according to formula set in advance
Drive corresponding attachment means.Optionally, contact panel 631 may include touch detecting apparatus and touch to control
Two parts of device processed.Wherein, touch detecting apparatus detects the touch orientation of user, and detects touch operation
The signal brought, transmits a signal to touch controller;Touch controller is received from touch detecting apparatus
Touch information, and contact coordinate is converted into, then processor 680 is given, and can reception processing device 680
The order sent simultaneously is performed.Furthermore, it is possible to using resistance-type, condenser type, infrared ray and surface
The polytypes such as sound wave realize contact panel 631.Except contact panel 631, input block 630 can be with
Including other input equipments 632.Specifically, other input equipments 632 can include but is not limited to secondary or physical bond
In disk, function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc.
One or more.
Display unit 640 can be used for the information and hand for showing the information inputted by user or being supplied to user
The various menus of machine.Display unit 640 may include display panel 641, optionally, can use liquid crystal
Show device (English full name:Liquid Crystal Display, english abbreviation:LCD), Organic Light Emitting Diode
(English full name:Organic Light-Emitting Diode, english abbreviation:) etc. OLED form is configured
Display panel 641.Further, contact panel 631 can cover display panel 641, when contact panel 631
Detect after the touch operation on or near it, send processor 680 to determine the class of touch event
Type, corresponding vision is provided with preprocessor 680 according to the type of touch event on display panel 641
Output.Although in figure 6, contact panel 631 and display panel 641 are as two independent parts
To realize input and the input function of mobile phone, but in some embodiments it is possible to by contact panel 631
With the input that is integrated and realizing mobile phone of display panel 641 and output function.
Mobile phone may also include at least one sensor 650, such as optical sensor, motion sensor and other
Sensor.Specifically, optical sensor may include ambient light sensor and proximity transducer, wherein, environment
Optical sensor can adjust the brightness of display panel 641 according to the light and shade of ambient light, and proximity transducer can
When mobile phone is moved in one's ear, display panel 641 and/or backlight are closed.As one kind of motion sensor,
Accelerometer sensor can detect in all directions the size of (generally three axles) acceleration, can be examined when static
Size and the direction of gravity are measured, application (such as horizontal/vertical screen switching, phase available for identification mobile phone posture
Close game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Extremely
Gyroscope, barometer, hygrometer, thermometer, infrared ray sensor for can also configure in mobile phone etc. other
Sensor, will not be repeated here.
Voicefrequency circuit 660, loudspeaker 661, the audio that microphone 662 can be provided between user and mobile phone connect
Mouthful.Electric signal after the voice data received conversion can be transferred to loudspeaker 661 by voicefrequency circuit 660,
Voice signal output is converted to by loudspeaker 661;On the other hand, microphone 662 believes the sound of collection
Number be converted to electric signal, by voicefrequency circuit 660 receive after be converted to voice data, it is then voice data is defeated
Go out after processor 680 handles, through RF circuits 610 to be sent to such as another mobile phone, or by audio number
According to output to memory 620 so as to further processing.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user to receive by WiFi module 670
Send e-mails, browse webpage and access streaming video etc., it has provided the user wireless broadband interconnection
Net is accessed.Although Fig. 6 shows WiFi module 670, but it is understood that, it is simultaneously not belonging to hand
Must be configured into for machine, can be omitted in the essential scope for do not change invention as needed completely.
Processor 680 is the control centre of mobile phone, utilizes each of various interfaces and connection whole mobile phone
Individual part, software program and/or module in memory 620 is stored in by operation or execution, and adjust
With the data being stored in memory 620, the various functions and processing data of mobile phone are performed, so that opponent
Machine carries out integral monitoring.Optionally, processor 680 may include one or more processing units;It is preferred that,
Processor 680 can integrated application processor and modem processor, wherein, application processor is mainly located
Operating system, user interface and application program etc. are managed, modem processor mainly handles radio communication.
It is understood that above-mentioned modem processor can not also be integrated into processor 680.
Mobile phone also includes the power supply 690 (such as battery) powered to all parts, it is preferred that power supply can be with
It is logically contiguous by power-supply management system and processor 680, managed so as to be realized by power-supply management system
The functions such as charging, electric discharge and power managed.
Although not shown, mobile phone can also include camera, bluetooth module etc., will not be repeated here.
In embodiments of the present invention, the processor 680 included by the terminal also has following functions:
Obtain the packet to be installed of target software;
When the target software is in running status, institute is installed under the installation directory of the target software
Packet to be installed is stated, and generates corresponding first executable program of the packet to be installed;
Attribute modification is carried out to the second executable program under the installation directory, and obtains file destination,
The file destination is non-executable program;
After the target software is closed, the input block 630 is controlled to receive the target software
Enabled instruction;
According to the enabled instruction, start first executable program.
It is apparent to those skilled in the art that, it is for convenience and simplicity of description, above-mentioned to retouch
The specific work process for the system, apparatus, and unit stated, may be referred to the correspondence in preceding method embodiment
Process, will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed system, device and
Method, can be realized by another way.For example, device embodiment described above is only to show
Meaning property, for example, the division of the unit, only a kind of division of logic function can when actually realizing
To there is other dividing mode, such as multiple units or component can combine or be desirably integrated into another
System, or some features can be ignored, or not perform.It is another, it is shown or discussed each other
Coupling or direct-coupling or communication connection can be the INDIRECT COUPLING of device or unit by some interfaces
Or communication connection, can be electrical, machinery or other forms.
The unit illustrated as separating component can be or may not be it is physically separate, make
It can be for the part that unit is shown or may not be physical location, you can with positioned at a place,
Or can also be distributed on multiple NEs.Can select according to the actual needs part therein or
Person's whole units realize the purpose of this embodiment scheme.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit
In or unit be individually physically present, can also two or more units be integrated in one
In individual unit.Above-mentioned integrated unit can both be realized in the form of hardware, it would however also be possible to employ software work(
The form of energy unit is realized.
If the integrated unit is realized using in the form of SFU software functional unit and is used as independent production marketing
Or in use, can be stored in a computer read/write memory medium.Understood based on such, this
Part that the technical scheme of invention substantially contributes to prior art in other words or the technical scheme
It can completely or partially be embodied in the form of software product, the computer software product is stored in one
In storage medium, including some instructions to cause a computer equipment (can be personal computer,
Server, or the network equipment etc.) perform all or part of step of each embodiment methods described of the invention
Suddenly.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 be with the medium of store program codes.
Described above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;
Although the present invention is described in detail with reference to the foregoing embodiments, one of ordinary skill in the art should
Work as understanding:It can still modify to the technical scheme described in foregoing embodiments, or to it
Middle some technical characteristics carry out equivalent substitution;And these modifications or replacement, do not make appropriate technical solution
Essence depart from various embodiments of the present invention technical scheme spirit and scope.
Claims (21)
1. a kind of method of software upgrading, it is characterised in that including:
Obtain the packet to be installed of target software;
When the target software is in running status, institute is installed under the installation directory of the target software
Packet to be installed is stated, and generates corresponding first executable program of the packet to be installed;
Attribute modification is carried out to the second executable program under the installation directory, and obtains file destination,
The file destination is non-executable program;
After the target software is closed, the enabled instruction of the target software is received;
According to the enabled instruction, start first executable program.
2. according to the method described in claim 1, it is characterised in that it is described obtain target software wait pacify
Fill before packet, methods described also includes:
Detect that the target software whether there is the packet to be installed;
If the target software has the packet to be installed, the packet to be installed is downloaded.
3. according to the method described in claim 1, it is characterised in that it is described obtain target software wait pacify
Fill after packet, methods described also includes:
The first subdirectory is created under the installation directory;
It is described that the packet to be installed is installed under the installation directory of the target software, including:
First subdirectory under the installation directory installs the packet to be installed.
4. method according to claim 3, it is characterised in that the installation directory includes described
First subdirectory and the second subdirectory, wherein, first subdirectory corresponds to described first and can perform
Program, second subdirectory corresponds to second executable program, and second subdirectory is used to deposit
Store up the former data of the target software.
5. method according to claim 3, it is characterised in that methods described also includes:
When the attribute modification failure of second executable program, then first subdirectory is deleted, and
Terminate flow.
6. method according to claim 3, it is characterised in that described to be created under the installation directory
Build after the first subdirectory, methods described also includes:
The packet to be installed is decompressed under first subdirectory;
When the packet de-compression failure to be installed, then first subdirectory is deleted, and terminate stream
Journey.
7. according to the method described in claim 1, it is characterised in that described under the installation directory
Second executable program carries out attribute modification, including:
Corresponding first suffix name of second executable program under the installation directory is changed to second
Suffix name.
8. the method according to any one of claim 3 to 7, it is characterised in that described according to institute
Enabled instruction is stated, is started after first executable program, methods described also includes:
Delete the file destination and second subdirectory.
9. after method according to claim 4, startup first executable program, institute
Stating method also includes:
If the first executable program operation failure, the file destination is reduced into described second can
Configuration processor, and perform second executable program.
10. method according to claim 9, it is characterised in that the execution described second can be held
After line program, methods described also includes:
Delete first executable program and first subdirectory.
11. a kind of software updating apparatus, it is characterised in that including:
Acquisition module, the packet to be installed for obtaining target software;
Module is installed, for when the target software is in running status, in the peace of the target software
The packet to be installed that the acquisition module is obtained is installed under dress catalogue, and generates the number to be installed
According to corresponding first executable program of bag;
Modified module, for carrying out attribute modification to the second executable program under the installation directory, and
File destination is obtained, the file destination is non-executable program;
Receiving module, for after the target software is closed, the startup for receiving the target software to refer to
Order;
Starting module, for the enabled instruction received according to the receiving module, starts described install
First executable program that module is installed.
12. software updating apparatus according to claim 11, it is characterised in that the software upgrading
Device also includes:
Before detection module, the packet to be installed that target software is obtained for the acquisition module, detection
The target software whether there is the packet to be installed;
Download module, if detecting the target software for the detection module has the number to be installed
According to bag, then the packet to be installed is downloaded.
13. software updating apparatus according to claim 11, it is characterised in that the software upgrading
Device also includes:
After creation module, the packet to be installed that target software is obtained for the acquisition module, in institute
State and the first subdirectory is created under installation directory;
The installation module includes:
Installation unit, the number to be installed is installed for first subdirectory under the installation directory
According to bag.
14. software updating apparatus according to claim 13, it is characterised in that the installation directory
Include first subdirectory and the second subdirectory, wherein, first subdirectory corresponds to described
First executable program, second subdirectory corresponds to second executable program, second son
Catalogue is used for the former data for storing the target software.
15. software updating apparatus according to claim 13, it is characterised in that the software upgrading
Device also includes:
First removing module, for when the attribute modification failure of second executable program, then deleting
First subdirectory, and terminate flow.
16. software updating apparatus according to claim 13, it is characterised in that the software upgrading
Device also includes:
Decompression module, after creating the first subdirectory under the installation directory for the creation module,
The packet to be installed is decompressed under first subdirectory;
Second removing module, for decompressing the packet de-compression failure to be installed when the decompression module
When, then first subdirectory is deleted, and terminate flow.
17. software updating apparatus according to claim 11, it is characterised in that the modified module
Including:
Updating block, for by after second executable program corresponding first under the installation directory
Sew name and be changed to the second suffix name.
18. the software updating apparatus according to any one of claim 13 to 17, it is characterised in that
The software updating apparatus also includes:
3rd removing module, for the starting module according to the enabled instruction, starting described first can
After configuration processor, the file destination and second subdirectory are deleted.
19. software updating apparatus according to claim 14, it is characterised in that the software upgrading
Device also includes:
Recovery module, after starting first executable program for the starting module, if described the
The operation failure of one executable program, then be reduced to second executable program by the file destination, and
Perform second executable program.
20. software updating apparatus according to claim 19, it is characterised in that the software upgrading
Device also includes:
4th removing module, after recovery module execution second executable program, is deleted
First executable program and first subdirectory.
21. a kind of software updating apparatus, it is characterised in that including:Memory, transceiver, processor
And bus system;
Wherein, the memory is used for storage program;
The processor is used to perform the program in the memory, step specific as follows:
Obtain the packet to be installed of target software;
When the target software is in running status, institute is installed under the installation directory of the target software
Packet to be installed is stated, and generates corresponding first executable program of the packet to be installed;
Attribute modification is carried out to the second executable program under the installation directory, and obtains file destination,
The file destination is non-executable program;
After the target software is closed, the startup for controlling the transceiver to receive the target software refers to
Order;
According to the enabled instruction, start first executable program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610185913.4A CN107239295B (en) | 2016-03-29 | 2016-03-29 | Software upgrading method and software upgrading device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610185913.4A CN107239295B (en) | 2016-03-29 | 2016-03-29 | Software upgrading method and software upgrading device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107239295A true CN107239295A (en) | 2017-10-10 |
CN107239295B CN107239295B (en) | 2020-12-25 |
Family
ID=59982940
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610185913.4A Active CN107239295B (en) | 2016-03-29 | 2016-03-29 | Software upgrading method and software upgrading device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107239295B (en) |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107832068A (en) * | 2017-10-27 | 2018-03-23 | 努比亚技术有限公司 | A kind of application upgrade method, mobile terminal and computer-readable recording medium |
CN108595195A (en) * | 2018-04-09 | 2018-09-28 | 江苏国泰新点软件有限公司 | A kind of application program update method, apparatus, terminal and storage medium |
CN109343885A (en) * | 2018-11-01 | 2019-02-15 | 百度在线网络技术(北京)有限公司 | Method for upgrading system and multi-system equipment |
CN109542677A (en) * | 2018-11-05 | 2019-03-29 | 北京炎黄盈动科技发展有限责任公司 | Applicating medium upgrade method, device and storage medium in a kind of highly reliable container |
CN110222009A (en) * | 2019-05-28 | 2019-09-10 | 咪咕文化科技有限公司 | Method and device for automatically processing Hive warehousing abnormal file |
CN110806888A (en) * | 2019-12-23 | 2020-02-18 | 北京奇艺世纪科技有限公司 | Application program upgrading method and device and electronic equipment |
CN111240729A (en) * | 2020-01-21 | 2020-06-05 | 维沃移动通信有限公司 | Software updating method, electronic device and medium |
CN111475220A (en) * | 2019-01-23 | 2020-07-31 | 阿里巴巴集团控股有限公司 | Cold start method and device, electronic equipment and computer storage medium |
CN112631627A (en) * | 2020-12-10 | 2021-04-09 | 武汉联影医疗科技有限公司 | Software upgrading method and device, computer equipment and storage medium |
CN112799600A (en) * | 2021-02-09 | 2021-05-14 | 珠海豹趣科技有限公司 | Software moving method, and moving software restoration method and device |
CN112988213A (en) * | 2021-04-13 | 2021-06-18 | 荣耀终端有限公司 | Program data updating method, electronic equipment and computer storage medium |
CN113064615A (en) * | 2021-03-26 | 2021-07-02 | 西安万像电子科技有限公司 | Software updating method and device, storage medium and electronic device |
CN116132971A (en) * | 2023-02-03 | 2023-05-16 | 深圳市卡思诺数码有限公司 | OTA upgrading method and system for Bluetooth sound equipment |
CN117725014A (en) * | 2024-02-04 | 2024-03-19 | 珠海星云智联科技有限公司 | PCIE equipment attribute modification method and related device in DPU scene |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050155031A1 (en) * | 2004-01-10 | 2005-07-14 | Microsoft Corporation | Changed file identification, software conflict resolution and unwanted file removal |
CN102955702A (en) * | 2011-08-23 | 2013-03-06 | 腾讯科技(深圳)有限公司 | Method and device for installing and upgrading software |
CN103488467A (en) * | 2012-06-12 | 2014-01-01 | 华为终端有限公司 | Processing method and device of JAVA application |
CN104731626A (en) * | 2015-03-31 | 2015-06-24 | 百度在线网络技术(北京)有限公司 | Application installation method and device |
CN105068819A (en) * | 2015-09-10 | 2015-11-18 | 北京金山安全软件有限公司 | Application calling method and device and terminal |
-
2016
- 2016-03-29 CN CN201610185913.4A patent/CN107239295B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050155031A1 (en) * | 2004-01-10 | 2005-07-14 | Microsoft Corporation | Changed file identification, software conflict resolution and unwanted file removal |
CN102955702A (en) * | 2011-08-23 | 2013-03-06 | 腾讯科技(深圳)有限公司 | Method and device for installing and upgrading software |
CN103488467A (en) * | 2012-06-12 | 2014-01-01 | 华为终端有限公司 | Processing method and device of JAVA application |
CN104731626A (en) * | 2015-03-31 | 2015-06-24 | 百度在线网络技术(北京)有限公司 | Application installation method and device |
CN105068819A (en) * | 2015-09-10 | 2015-11-18 | 北京金山安全软件有限公司 | Application calling method and device and terminal |
Non-Patent Citations (1)
Title |
---|
MIAO31: "[搜片神器]winform程序自己如何更新自己的方法代码", 《HTTPS://WWW.BBSMAX.COM/A/VGZLYKEOJB/》 * |
Cited By (20)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107832068A (en) * | 2017-10-27 | 2018-03-23 | 努比亚技术有限公司 | A kind of application upgrade method, mobile terminal and computer-readable recording medium |
CN108595195A (en) * | 2018-04-09 | 2018-09-28 | 江苏国泰新点软件有限公司 | A kind of application program update method, apparatus, terminal and storage medium |
CN109343885A (en) * | 2018-11-01 | 2019-02-15 | 百度在线网络技术(北京)有限公司 | Method for upgrading system and multi-system equipment |
CN109542677A (en) * | 2018-11-05 | 2019-03-29 | 北京炎黄盈动科技发展有限责任公司 | Applicating medium upgrade method, device and storage medium in a kind of highly reliable container |
CN109542677B (en) * | 2018-11-05 | 2021-08-13 | 北京炎黄盈动科技发展有限责任公司 | Method and device for upgrading application medium in high-reliability container and storage medium |
CN111475220B (en) * | 2019-01-23 | 2023-04-25 | 阿里巴巴集团控股有限公司 | Cold start method and device, electronic equipment and computer storage medium |
CN111475220A (en) * | 2019-01-23 | 2020-07-31 | 阿里巴巴集团控股有限公司 | Cold start method and device, electronic equipment and computer storage medium |
CN110222009A (en) * | 2019-05-28 | 2019-09-10 | 咪咕文化科技有限公司 | Method and device for automatically processing Hive warehousing abnormal file |
CN110222009B (en) * | 2019-05-28 | 2021-08-06 | 咪咕文化科技有限公司 | Method and device for automatically processing Hive warehousing abnormal file |
CN110806888A (en) * | 2019-12-23 | 2020-02-18 | 北京奇艺世纪科技有限公司 | Application program upgrading method and device and electronic equipment |
CN111240729A (en) * | 2020-01-21 | 2020-06-05 | 维沃移动通信有限公司 | Software updating method, electronic device and medium |
CN112631627A (en) * | 2020-12-10 | 2021-04-09 | 武汉联影医疗科技有限公司 | Software upgrading method and device, computer equipment and storage medium |
CN112799600A (en) * | 2021-02-09 | 2021-05-14 | 珠海豹趣科技有限公司 | Software moving method, and moving software restoration method and device |
CN113064615A (en) * | 2021-03-26 | 2021-07-02 | 西安万像电子科技有限公司 | Software updating method and device, storage medium and electronic device |
CN113064615B (en) * | 2021-03-26 | 2023-09-26 | 西安万像电子科技有限公司 | Software updating method and device, storage medium and electronic device |
CN112988213A (en) * | 2021-04-13 | 2021-06-18 | 荣耀终端有限公司 | Program data updating method, electronic equipment and computer storage medium |
CN112988213B (en) * | 2021-04-13 | 2023-11-14 | 荣耀终端有限公司 | Program data updating method, electronic equipment and computer storage medium |
CN116132971A (en) * | 2023-02-03 | 2023-05-16 | 深圳市卡思诺数码有限公司 | OTA upgrading method and system for Bluetooth sound equipment |
CN117725014A (en) * | 2024-02-04 | 2024-03-19 | 珠海星云智联科技有限公司 | PCIE equipment attribute modification method and related device in DPU scene |
CN117725014B (en) * | 2024-02-04 | 2024-05-28 | 珠海星云智联科技有限公司 | PCIE equipment attribute modification method and related device in DPU scene |
Also Published As
Publication number | Publication date |
---|---|
CN107239295B (en) | 2020-12-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107239295A (en) | The method and software updating apparatus of a kind of software upgrading | |
CN103544033B (en) | Method, device and associated equipment for rolling back application program | |
CN106095458A (en) | The management method of plug-in unit and device in a kind of application program | |
CN106066686B (en) | A kind of information processing method and terminal device | |
CN104572819B (en) | Clearing method and system for junk data | |
CN105490919A (en) | Message withdrawal method and device | |
CN104780164A (en) | Method and device for operating game client | |
CN103455348B (en) | Subarea adjustment, device, terminal, server and system | |
CN106502703B (en) | Function calling method and device | |
CN103677903A (en) | Mobile terminal intelligent upgrade method and device, and electronic equipment | |
CN106775827A (en) | A kind of application program update method and device, computer equipment | |
CN103473163A (en) | Application program detection method and device | |
CN105278937A (en) | Method and device for displaying pop-up box messages | |
CN104965716A (en) | Icon updating method, client apparatus, and terminal apparatus | |
CN108228230A (en) | Upgrade method, terminal and the computer readable storage medium of UFS firmwares | |
CN108804915B (en) | Virus program cleaning method, storage device and electronic terminal | |
CN106960155A (en) | The update method and device of a kind of basic input output system | |
CN103631625A (en) | Data acquisition method, user terminal, server and system | |
CN106528335A (en) | Data backup method and device and terminal | |
CN105530239A (en) | Multimedia data obtaining method and device | |
CN110609694A (en) | BUG repairing method and device, terminal equipment and storage medium | |
CN114205365A (en) | Application interface migration system and method and related equipment | |
CN106657254B (en) | A kind of synchronous method of contact information, apparatus and system | |
CN108572834B (en) | Method and device for upgrading browser | |
US9928134B2 (en) | Method and apparatus for repairing dynamic link library file |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |