CN104360880B - One kind applies installation method and electronic equipment - Google Patents
One kind applies installation method and electronic equipment Download PDFInfo
- Publication number
- CN104360880B CN104360880B CN201410608296.5A CN201410608296A CN104360880B CN 104360880 B CN104360880 B CN 104360880B CN 201410608296 A CN201410608296 A CN 201410608296A CN 104360880 B CN104360880 B CN 104360880B
- Authority
- CN
- China
- Prior art keywords
- electronic equipment
- application file
- application
- installation directory
- installation
- 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
Links
- 238000009434 installation Methods 0.000 title claims abstract description 205
- 238000000034 method Methods 0.000 title claims abstract description 83
- 238000012544 monitoring process Methods 0.000 claims description 16
- 238000005192 partition Methods 0.000 claims description 14
- 230000001960 triggered effect Effects 0.000 claims description 2
- 230000006870 function Effects 0.000 description 11
- 230000005611 electricity Effects 0.000 description 4
- 238000002360 preparation method Methods 0.000 description 3
- 238000010276 construction Methods 0.000 description 2
- 230000004913 activation Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000011900 installation process Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 238000012827 research and development Methods 0.000 description 1
Landscapes
- Stored Programmes (AREA)
Abstract
The invention provides one kind apply installation method, is given notice listening to electronic equipment after broadcast, obtains the installation directory of application to be installed, and the incidence relation of establishment installation directory and application file in installation directory.Because incidence relation can be indicated in the case where electronic equipment is started shooting and is scanned to installation directory, can be with automatic running application file, so when electronic equipment start shooting again and scan arrive installation directory when, electronic equipment can complete the installation of application with automatic running application file, so as to realize that the application in electronic equipment start process is installed automatically, solve the problems, such as that automatic installation applies that brings can not run application and occupying system resources during electronic device works.
Description
Technical field
It is more particularly to a kind of to apply installation method and electronic equipment the present invention relates to applied technical field.
Background technology
With widely using for Android operation system, the application for the research and development of this type operating system is also more and more, using can
To be illustrated in the application shop of developer website, installing the electronic equipment of this type operating system can download from application shop
Using, and in the case where electronic equipment connects network, whether the application that can also be monitored using shop in electronic equipment needs
Upgrade, and prompt it to be upgraded.
What some developers provided at present also has the function of starting application and install automatically using shop, i.e., exists using shop
After detecting that electronic equipment has downloaded some application, the installation in activation application installs application automatically.
But in application autoinstall procedure, electronic equipment can not run the application in installment state, and
In installation process, using meeting occupying system resources, so as to reduce the speed of service of electronic equipment.
The content of the invention
In view of this, the embodiment of the present invention provides one kind and applies installation method and electronic equipment, realizes and is opened in electronic equipment
Automatically installation application during machine, application can not be run using what is brought by solving the automatic installation during electronic device works
And the problem of occupying system resources, technical scheme are as follows:
One kind applies installation method, including:
Monitor whether electronic equipment gives notice broadcast, the notification broadcast is for indicating that the electronic equipment will close
Machine;
After listening to the electronic equipment and sending the notification broadcast, the installation directory of the electronic equipment is obtained;
The incidence relation of the installation directory and application file is created in the installation directory, wherein the application file
For the installation file of application to be installed, the incidence relation is used to indicate to start shooting and scan in the electronic equipment to arrive the installation
In the case of catalogue, the application file is run to install the application to be installed.
Above-mentioned method, it is preferred that methods described also includes:Creating the installation directory and the application file
After incidence relation, shutdown command is sent to indicate that the electronic equipment completes shutdown.
Above-mentioned method, it is preferred that before whether the monitoring electronic equipment gives notice broadcast, methods described is also wrapped
Include:
The storage location of the application file is set, wherein the storage location of the application file and the installation directory position
In same disk partition;
The application file is stored into the storage location.
Above-mentioned method, it is preferred that before whether the monitoring electronic equipment gives notice broadcast, methods described is also wrapped
Include:
Judge whether the memory space that the application file takes is more than or equal to preset value;
When the memory space that the application file takes is more than or equal to the preset value, whether the electronic equipment is monitored
Send the notification broadcast.
Above-mentioned method, it is preferred that the pass that the installation directory and application file are created in the installation directory
Connection relation, including:
The hard link for pointing to the application file is created in the installation directory, the hard link represents the installation mesh
Record and the incidence relation of the application file.
Above-mentioned method, it is preferred that methods described also includes:
While the hard link for pointing to the application file is created in the installation directory, the application file is searched
Original link, wherein before the original is linked as creating the hard link for pointing to the application file, point to the chain of the application file
Connect;
Delete the former link of the application file.
A kind of electronic equipment, including:
Module is monitored, whether is given notice broadcast for monitoring electronic equipment, the notification broadcast is for indicating the electricity
Sub- equipment will shut down;
Acquisition module, for after listening to the electronic equipment and sending the notification broadcast, obtaining the electronic equipment
Installation directory;
Relating module, for creating the incidence relation of the installation directory and application file in the installation directory, its
Described in application file be application to be installed installation file, the incidence relation be used for indicate the electronic equipment start and
In the case of scanning the installation directory, the application file is run to install the application to be installed.
Above-mentioned electronic equipment, it is preferred that also include:
Shut down indicating module, for after incidence relation of the installation directory with the application file has been created, sending
Shutdown command is to indicate that the electronic equipment completes shutdown.
Above-mentioned electronic equipment, it is preferred that also include:
Memory module, for setting the storage location of the application file, and the application file is stored to described and deposited
During storage space is put;Wherein, the storage location of the application file and the installation directory are located in same disk partition.
Above-mentioned electronic equipment, it is preferred that also include:
Judge module, for judging whether the memory space that the application file takes is more than or equal to preset value, when described
When the memory space that application file takes is more than or equal to the preset value, the monitoring module is triggered.
Above-mentioned electronic equipment, it is preferred that the relating module is specifically used for:
The hard link for pointing to the application file is created in the installation directory, the hard link represents the installation mesh
Record and the incidence relation of the application file.
Above-mentioned electronic equipment, it is preferred that also include:
Searching modul, for while the hard link of the application file is pointed in establishment in the installation directory, searching
The former link of the application file, wherein before the original is linked as creating the hard link for pointing to the application file, point to institute
State the link of application file;
Removing module, for deleting the former link of the application file.
Using above-mentioned technical proposal, given notice listening to electronic equipment after broadcast, obtain the installation of application to be installed
Catalogue, and the incidence relation of establishment installation directory and application file in installation directory.Because incidence relation can be indicated in electricity
Sub- device power-up and scanning, can be with automatic running application files, so when electronic equipment is opened again in the case of installation directory
Machine and scanning is when arrive installation directory, electronic equipment can complete the installation that apply with automatic running application file, so as to realize in electricity
Application during sub- device power-up is installed automatically, solves the nothing that automatic installation application is brought during electronic device works
The problem of method operation application and occupying system resources.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, make required in being described below to embodiment
Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for
For those of ordinary skill in the art, without having to pay creative labor, it can also be obtained according to these accompanying drawings
His accompanying drawing.
Fig. 1 is a kind of flow chart using installation method embodiment 1 that the application provides;
Fig. 2 is a kind of flow chart using installation method embodiment 2 that the application provides;
Fig. 3 is a kind of flow chart using installation method embodiment 3 that the application provides;
Fig. 4 is a kind of flow chart using installation method embodiment 4 that the application provides;
Fig. 5 is a kind of flow chart using installation method embodiment 5 that the application provides;
Fig. 6 is the structural representation for a kind of electronic equipment embodiment 1 that the application provides;
Fig. 7 is the structural representation for a kind of electronic equipment embodiment 2 that the application provides;
Fig. 8 is the structural representation for a kind of electronic equipment embodiment 3 that the application provides;
Fig. 9 is the structural representation for a kind of electronic equipment embodiment 4 that the application provides;
Figure 10 is a structural representation of a kind of electronic equipment embodiment 5 that the application provides;
Figure 11 is another structural representation for a kind of electronic equipment embodiment 5 that the application provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made
Embodiment, belong to the scope of protection of the invention.
As shown in Figure 1 is applied to for a kind of flow chart using installation method embodiment 1 provided by the invention, this method
Electronic equipment, the electronic equipment are specifically as follows desktop computer, notebook, tablet personal computer, mobile phone, intelligent television, intelligent watch, worn
The electronic equipments such as formula equipment are worn, the electronic equipment can download application from application shop, and install the application, in the present invention
The type of application to be installed in electronic equipment and quantity are not limited.
This method can be realized by following steps:
Step S101:Monitor whether electronic equipment gives notice broadcast;
Wherein, the notification broadcast is used to indicate that the electronic equipment will shut down.
Specifically, when electronic equipment receives shutdown command, the notification broadcast of shutdown is generated, with electronic device
Every application of operation terminates.
Specifically, the listening mode can be to monitor in real time, can also be monitored according to default time interval, this implementation
The mode of not limiting monitoring in example.
Step S102:After listening to the electronic equipment and sending the notification broadcast, the peace of the electronic equipment is obtained
Fill catalogue;
Wherein, the installation directory refers to the storage address that application file is installed in electronic equipment, specially electronic equipment
Under which disk, which catalogue, for example, the installation directory can be C:\Program Files\.
Specifically, the predetermined position in electronic equipment is provided with the installation directory of the electronic equipment, the installation mesh is obtained
Record.
Step S103:The incidence relation of the installation directory and application file, the pass are created in the installation directory
Connection relation is used for instruction in the case where the electronic equipment is started shooting and is scanned to the installation directory, runs the application file
To install the application to be installed.
Wherein, the application file is the installation file of application to be installed.
Specifically, before electronic equipment shutdown receives the notification broadcast, the application file can have been downloaded and preserved
In the electronic device, the time of the download can be to be downloaded automatically in electronic equipment normal course of operation, or according to
The practical operation at family is downloaded, and the downloading mode of application file is not limited in the application.
Wherein, the application file can be stored in the optional position of electronic equipment, it is preferable that the application file can store
In the disk partition where installation directory, specifically, the application file can be to be automatically downloaded to the magnetic where installation directory
Disk subregion, or copied to after the completion of download in the disk partition where installation directory, the present embodiment is to storage to peace
The mode of disk partition where dress catalogue is not limited.
Wherein, when being stored with the installation file of application to be installed in electronic equipment, established before this shutdown and wait to pacify
The installation file of application and the incidence relation of installation directory are filled, when being started shooting with realizing that electronic equipment is next, can be pacified automatically
Dress.
It is specifically, relevant when being established between the installation directory in electronic equipment and an application file to be installed
When, it is the installation file that can determine that application to be installed in electronic equipment according to the incidence relation, and according to the installation file to this
Using being installed, when next electronic equipment starts, when the installation directory is arrived in scanning, the installation directory can be obtained and wait to pacify with this
The incidence relation between the installation file of application is filled, the electronic equipment automatic running installation file realizes the installation to the application,
Realize the automatic installation application in electronic equipment start process.
It should be noted that in specific implementation, listened to performing step S101 after electronic equipment sends the notification broadcast,
Electronic equipment internal can also be checked first, when check have application to be installed in electronic equipment when, continue executing with step
Rapid S102 obtains the installation directory of electronic equipment;Otherwise, directly control electronics shutdown process can be completed, after no longer performing
Continuous step S102 and step S103, to reduce extra power consumption caused by electronic equipment performs useless step S102.
To sum up, in one kind application installation method provided in the present embodiment, given notice broadcast listening to electronic equipment
Afterwards, the installation directory of application to be installed is obtained, and the incidence relation of installation directory and application file is created in installation directory.By
It can be indicated in incidence relation in the case where electronic equipment is started shooting and is scanned to installation directory, can be with automatic running practical writing
Part, thus when electronic equipment start shooting again and scan arrive installation directory when, electronic equipment can be completed with automatic running application file
The installation of application, so as to realize that the application in electronic equipment start process is installed automatically, solve in electronic device works mistake
What automatic installation application was brought in journey can not run using and the problem of occupying system resources.
As shown in Figure 2 specifically leads to for a kind of flow chart using installation method embodiment 2 provided by the invention, this method
Cross following steps realization:
Step S201:Monitor whether electronic equipment gives notice broadcast, the notification broadcast is for indicating that the electronics is set
It is standby to shut down;
Step S202:After listening to the electronic equipment and sending the notification broadcast, the peace of the electronic equipment is obtained
Fill catalogue;
Step S203:The incidence relation of the installation directory and application file, the pass are created in the installation directory
Connection relation is used for instruction in the case where the electronic equipment is started shooting and is scanned to the installation directory, runs the application file
To install the application to be installed;
Wherein, step S201-203 is consistent with the step S101-103 in embodiment 1, is repeated no more in the present embodiment.
Step S204:Shutdown command is sent to indicate that the electronic equipment completes shutdown.
Wherein, after the incidence relation for completing installation directory and application file is established in installation directory, the electronic equipment
In be ready to install the application file, now, the electronic equipment can perform shutdown, completion shutdown process.
Specifically, after incidence relation of the installation directory with application file to be installed has been created, shutdown command is sent,
Indicate that the electronic equipment completes shutdown.
Specifically, indicate that the electronic equipment is completed shutdown and specifically included:Closed in electronic equipment and transported according to the shutdown command
Capable every application process.
In specific implementation, when a certain application is currently running, when can not close its process, the side for entering journey can be used
Formula, the positive closing application.
In specific implementation, electronic equipment completes shutdown process, because it has built up application file to be installed and installation
The incidence relation of catalogue, and the incidence relation can be indicated when electronic equipment is started shooting again and scans installation directory, electricity
Sub- equipment can complete the installation of the application with the automatic running application file, so, established in step S203 installation directory with
After the incidence relation of application file, you can the shutdown process to the electronic equipment is completed, when electronic equipment is started shooting again with regard to energy
It is enough that the application is installed automatically.
To sum up, in one kind application installation method provided in the present embodiment, installation mesh is completed when being established in installation directory
Record is with after the incidence relation of application file, sending shutdown command to indicate that the electronic equipment completes shutdown, using this method, pacifying
When filling the incidence relation that completion installation directory and application file are established in catalogue, completion is had built up in the electronic device as next time
The preparation of start installation application, now, controls the electronic equipment to complete shutdown process, completes the shutdown process of electronic equipment.
As shown in Figure 3 specifically leads to for a kind of flow chart using installation method embodiment 3 provided by the invention, this method
Cross following steps realization:
Step S301:The storage location of the application file is set, wherein the storage location of the application file and described
Installation directory is located in same disk partition;
Wherein, when downloading the application file, the application file directly can be downloaded into default opening position, but this is pre-
If position is not the same disk partition of installation directory.
For this reason, it may be necessary to set a storage location for the application file, the storage location is located at same magnetic with installation directory
In disk subregion, for example, when the installation directory is located at the S files in C disks, it is also for the default storage location of the application file then
In C disks, to ensure that the application file can be stored as in same disk partition with installation directory.
It should be noted that the opportunity of the storage location of the setting application file, can be before downloading the application file,
The storage location of the application file in downloading process is set, or after the application file is downloaded into a certain position, by this
Application file dumps to the opening position with installation directory integrated disc subregion, in the application to opportunity of the setting storage location not
It is limited.
Step S302:The application file is stored into the storage location;
Wherein, after the storage location of application file is provided with step S301, the setting is arrived into application file storage
Storage location in, be subsequent step in listen to the notification broadcast that electronic equipment is sent after, created in the installation directory
The incidence relation of the installation directory and application file, which provides, creates basis.
Step S303:Monitor whether electronic equipment gives notice broadcast, the notification broadcast is for indicating that the electronics is set
It is standby to shut down;
Step S304:After listening to the electronic equipment and sending the notification broadcast, the peace of the electronic equipment is obtained
Fill catalogue;
Step S305:The incidence relation of the installation directory and application file, the pass are created in the installation directory
Connection relation is used for instruction in the case where the electronic equipment is started shooting and is scanned to the installation directory, runs the application file
To install the application to be installed;
Wherein, step S303-305 is consistent with the step S101-103 in embodiment 1, is repeated no more in the present embodiment.
To sum up, in one kind application installation method provided in the present embodiment, monitoring whether electronic equipment gives notice extensively
Before broadcasting, in addition to:The storage location of application file is set, and wherein the storage location of the application file and installation directory are positioned at same
In one disk partition;And the application file is stored into the storage location, is to listen to electronic equipment in subsequent step
After the notification broadcast sent, the incidence relation that the installation directory and application file are created in the installation directory provides establishment
Basis.
As shown in Figure 4 specifically leads to for a kind of flow chart using installation method embodiment 4 provided by the invention, this method
Cross following steps realization:
Step S401:The storage location of the application file is set, wherein the storage location of the application file and described
Installation directory is located in same disk partition;
Step S402:The application file is stored into the storage location;
Wherein, step S401-402 is consistent with the step S301-303 in embodiment 3, is repeated no more in the present embodiment.
Step S403:Judge whether the memory space that the application file takes is more than or equal to preset value;
Wherein, when application file is larger, installing the application needs to expend longer time, and can take and more be
System resource, other application operation in electronic equipment is caused to be affected.
So when the memory space that the application file takes is more than or equal to the preset value, step S404 is performed, is monitored
Whether the electronic equipment gives notice broadcast.
, specifically can be with during opportunity implements specifically, the preset value can be configured according to the actual conditions of electronic equipment
It is arranged to the numerical value such as 1M, 2M.For example, when the memory space that the application file takes is more than or equal to 1M, it is necessary to utilize electronics
The switching on and shutting down opportunity of equipment installs the application, can not be transported using what is brought with solving the automatic installation during electronic device works
The problem of row application and occupying system resources.
It should be noted that specific implementation in, when the application file is smaller, install the application file need not take it is more
System resource, and install it is very fast, now, without waiting for establishing installation directory and application to be installed in electronic equipment shutdown process
Installation file between incidence relation, be mounted directly, electronic equipment can run the application immediately, to cause electronics to set
Standby user can use the application immediately.
Step 404:When the memory space that the application file takes is more than or equal to the preset value, monitoring electronic equipment is
No broadcast of giving notice, the notification broadcast are used to indicate that the electronic equipment will shut down;
Step S405:After listening to the electronic equipment and sending the notification broadcast, the peace of the electronic equipment is obtained
Fill catalogue;
Step S406:The incidence relation of the installation directory and application file, the pass are created in the installation directory
Connection relation is used for instruction in the case where the electronic equipment is started shooting and is scanned to the installation directory, runs the application file
To install the application to be installed;
Wherein, step S404-406 is consistent with the step S303-305 in embodiment 3, is repeated no more in the present embodiment.
To sum up, in one kind application installation method provided in the present embodiment, in addition to:The application file received is taken
Storage size judged, when the application file take memory space be more than or equal to preset value when, it is necessary to this answer
The installation booted up with file, then perform follow-up monitoring electronic equipment and whether give notice Broadcast step, set using electronics
Standby switching on and shutting down opportunity installs the application, can not be run using what is brought with solving the automatic installation during electronic device works
Using and the problem of occupying system resources.
As shown in Figure 5 specifically leads to for a kind of flow chart using installation method embodiment 5 provided by the invention, this method
Cross following steps realization:
Step S501:Monitor whether electronic equipment gives notice broadcast, the notification broadcast is for indicating that the electronics is set
It is standby to shut down;
Step S502:After listening to the electronic equipment and sending the notification broadcast, the peace of the electronic equipment is obtained
Fill catalogue;
Wherein, step S501-502 is consistent with the step S101-102 in embodiment 1, is repeated no more in the present embodiment.
Step S503:The hard link for pointing to the application file is created in the installation directory, the hard link represents
The incidence relation of the installation directory and the application file.
In the present embodiment, the incidence relation of the installation directory and application file should be created in the installation directory,
Specifically by the way of the hard link for pointing to the application file is created in installation directory.
Wherein, the hard link illustrates the incidence relation of installation directory and application file, by calling in installation directory
Hard link, it can directly run the application file corresponding to hard link.
In specific implementation, ln orders can be used to create the hard link for pointing to application file in the file of installation directory.
It should be noted that this method also includes:The hard chain for pointing to the application file is created in the installation directory
While connecing, the former link of the application file is searched, wherein the original is linked as creating the hard chain for pointing to the application file
Before connecing, the link of the application file is pointed to;Delete the former link of the application file.
Because each link of application file takes the resource of system, after the hard link of application file is established, its
The effect of original link is meaningless, then the former link of the application file can also be handled, the original is linked as creating and pointed to
Before the hard link of the application file, the link of the application file is pointed to, to optimize system resource, handles the method that the original links
It is specifically as follows and deletes original link.
To sum up, in one kind application installation method provided in the present embodiment, created in installation directory the installation directory with
The incidence relation of application file, is specifically included:The hard link for pointing to the application file, the hard link table are created in installation directory
Show the incidence relation of the installation directory and the application file.The application to be installed wherein recorded is can determine that according to the installation directory,
The application file of the application to be installed is obtained according to the record and the hard link interface, can be achieved after obtaining the application file
Installation to the application.So when electronic equipment start shooting again and scan arrive installation directory when, pointed to according in the installation directory
The hard link of the application file can obtain the application file of the application to be installed, can complete application with automatic running application file
Installation, so as to realize that the application in electronic equipment start process is installed automatically, solve during electronic device works certainly
What dynamic installation application was brought can not run using and the problem of occupying system resources.
There is provided with the application it is a kind of corresponding using installation method embodiment, present invention also provides it is a kind of with should should
With the corresponding electronic equipment embodiment of installation method.
Structural representation for a kind of electronic equipment embodiment 1 provided by the invention as shown in Figure 6, electronic equipment tool
Body can be the electronic equipments such as desktop computer, notebook, tablet personal computer, mobile phone, intelligent television, intelligent watch, Wearable, institute
Application can be downloaded from application shop by stating electronic equipment, and install the application, be answered in the present invention to be installed in electronic equipment
Type and quantity do not limit.
The electronic equipment may include consisting of structure:Monitor module 601, acquisition module 602 and relating module 603;
Wherein, monitor module 601 and be used to monitoring electronic equipment and whether give notice broadcast, the notification broadcast is for indicating
The electronic equipment will shut down;
Wherein, acquisition module 602, for after listening to the electronic equipment and sending the notification broadcast, described in acquisition
The installation directory of electronic equipment;
Wherein, relating module 603, for creating associating for the installation directory and application file in the installation directory
Relation, wherein the application file is the installation file of application to be installed, the incidence relation is used to indicate to set in the electronics
In the case that the installation directory is arrived in standby start and scanning, the application file is run to install the application to be installed.
In a kind of electronic equipment provided in the present embodiment, given notice listening to electronic equipment after broadcast, acquisition is treated
The installation directory of application is installed, and the incidence relation of installation directory and application file is created in installation directory.Because association is closed
It is that can indicate in the case where electronic equipment is started shooting and is scanned to installation directory, can be with automatic running application file, so working as
Electronic equipment is started shooting and scanned when arriving installation directory again, and electronic equipment can complete the peace of application with automatic running application file
Dress, so as to realize that the application in electronic equipment start process is installed automatically, solve automatic during electronic device works
What installation application was brought can not run using and the problem of occupying system resources.
Structural representation for a kind of electronic equipment embodiment 2 provided by the invention as shown in Figure 7, the electronic equipment can
Including consisting of structure:Monitor module 701, acquisition module 702, relating module 703 and shutdown indicating module 704;
Wherein, the structure function for monitoring module 701, acquisition module 702 and relating module 703 is corresponding in embodiment 1
Structure function is consistent, and the present embodiment does not repeat.
Wherein, shut down indicating module 704, for creating the incidence relation of the installation directory and the application file
Afterwards, shutdown command is sent to indicate that the electronic equipment completes shutdown.
To sum up, in a kind of electronic equipment provided in the present embodiment, when in installation directory establish complete installation directory with
After the incidence relation of application file, shutdown command is sent to indicate that the electronic equipment completes shutdown, using this method, in installation mesh
When the incidence relation for completing installation directory and application file is established in record, completion is had built up in the electronic device as start next time
The preparation of application is installed, now, controls the electronic equipment to complete shutdown process, completes the shutdown process of electronic equipment.
Structural representation for a kind of electronic equipment embodiment 3 provided by the invention as shown in Figure 8, the electronic equipment can
Including consisting of structure:Memory module 801, monitor module 802, acquisition module 803, relating module 804;
Wherein, module 802, acquisition module 803, the structure function of relating module 804 knot corresponding in embodiment 1 are monitored
Structure function is consistent, and the present embodiment does not repeat.
Wherein, memory module 801, stored for setting the storage location of the application file, and by the application file
Into the storage location;Wherein, the storage location of the application file and the installation directory are located at same disk partition
In.
To sum up, in a kind of electronic equipment provided in the present embodiment, in addition to:Memory module sets the storage of application file
The storage location and installation directory of position, the wherein application file are located in same disk partition;And by the application file
Store into the storage location, be after listening to the notification broadcast that electronic equipment is sent in subsequent module, in the installation directory
The middle incidence relation for creating the installation directory and application file, which provides, creates basis.
Structural representation for a kind of electronic equipment embodiment 4 provided by the invention as shown in Figure 9, the electronic equipment can
Including consisting of structure:Memory module 901, judge module 902, monitor module 903, acquisition module 904 and relating module
905;
Wherein, structure function and the implementation of memory module 901, monitoring module 903, acquisition module 904 and relating module 905
Corresponding construction function in example 3 is consistent, and the present embodiment does not repeat.
Wherein, judge module 902, it is default whether the memory space for judging the application file occupancy is more than or equal to
Value, when the memory space that the application file takes is more than or equal to the preset value, trigger the monitoring module.
To sum up, in a kind of electronic equipment provided in the present embodiment, in addition to:Judge module is to the application file that receives
The storage size of occupancy is judged, when the memory space that the application file takes is more than or equal to preset value, it is necessary to right
The installation that the application file boots up, then triggering following module monitor whether electronic equipment gives notice broadcast, utilize electronics
The switching on and shutting down opportunity of equipment installs the application, can not be transported using what is brought with solving the automatic installation during electronic device works
The problem of row application and occupying system resources.
A structural representation for a kind of electronic equipment embodiment 5 provided by the invention as shown in Figure 10, the electronics are set
It is standby to may include consisting of structure:Monitor module 1001, acquisition module 1002 and relating module 1003;
Wherein, module 1001, the structure function of acquisition module 1002 and the corresponding construction function one in embodiment 1 are monitored
Cause, the present embodiment does not repeat.
Wherein, the relating module 1003 is specifically used for:Created in the installation directory and point to the hard of the application file
Link, the hard link represent the incidence relation of the installation directory and the application file.
Another structural representation for a kind of electronic equipment embodiment 5 provided by the invention as shown in figure 11, the electronics
Equipment may include consisting of structure:Monitor module 1101, acquisition module 1102, relating module 1103, the and of searching modul 1104
Removing module 1105;
Wherein, searching modul 1104, the hard link of the application file is pointed to for being created in the installation directory
Meanwhile search the former link of the application file, wherein the original be linked as creating the hard link for pointing to the application file it
Before, point to the link of the application file;
Wherein, removing module 1105, for deleting the former link of the application file.
To sum up, in a kind of electronic equipment provided in the present embodiment, searching modul is specifically used for:Created in installation directory
The hard link of the application file is pointed to, the hard link represents the incidence relation of the installation directory and the application file.According to the peace
Dress catalogue can determine that the application to be installed wherein recorded, and the application to be installed is obtained according to the record and the hard link interface
Application file, obtain the i.e. achievable installation to the application after the application file.So when electronic equipment is started shooting and scanned again
During to installation directory, the practical writing of the application to be installed can be obtained according to the hard link that the application file is pointed in the installation directory
Part, the installation of application can be completed with automatic running application file, so as to realize that the application in electronic equipment start process is automatic
Installation, solve during electronic device works that automatic installation application brings can not run using and occupying system resources
Problem.
It should be noted that each embodiment in this specification is described by the way of progressive, each embodiment weight
Point explanation is all difference with other embodiment, between each embodiment identical similar part mutually referring to.
For device class embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, related part is joined
See the part explanation of embodiment of the method.
Finally, it is to be noted that, herein, such as first and second or the like relational terms be used merely to by
One entity or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or operation
Between any this actual relation or order be present.Moreover, term " comprising ", "comprising" or its any other variant meaning
Covering including for nonexcludability, so that process, method, article or equipment including a series of elements not only include that
A little key elements, but also the other element including being not expressly set out, or also include for this process, method, article or
The intrinsic key element of equipment.In the absence of more restrictions, the key element limited by sentence "including a ...", is not arranged
Except other identical element in the process including the key element, method, article or equipment being also present.
For convenience of description, it is divided into various units during description apparatus above with function to describe respectively.Certainly, this is being implemented
The function of each unit can be realized in same or multiple softwares and/or hardware during invention.
As seen through the above description of the embodiments, those skilled in the art can be understood that the present invention can
Realized by the mode of software plus required general hardware platform.Based on such understanding, technical scheme essence
On the part that is contributed in other words to prior art can be embodied in the form of software product, the computer software product
It can be stored in storage medium, such as ROM/RAM, magnetic disc, CD, including some instructions are causing a computer equipment
(can be personal computer, server, either network equipment etc.) performs some of each embodiment of the present invention or embodiment
Method described in part.
One kind provided by the present invention is described in detail using installation method and electronic equipment above, herein should
The principle and embodiment of the present invention are set forth with specific case, the explanation of above example is only intended to help and managed
Solve the method and its core concept of the present invention;Meanwhile for those of ordinary skill in the art, according to the thought of the present invention,
There will be changes in embodiment and application, in summary, this specification content should not be construed as to this hair
Bright limitation.
Claims (12)
1. one kind applies installation method, it is characterised in that including:
Monitor whether electronic equipment gives notice broadcast, the notification broadcast is for indicating that the electronic equipment will shut down;
After listening to the electronic equipment and sending the notification broadcast, the installation directory of the electronic equipment is obtained;
The incidence relation of the installation directory and application file is created in the installation directory, wherein the application file is to treat
The installation file of application is installed, the incidence relation is used to indicate to start shooting and scan in the electronic equipment to arrive the installation directory
In the case of, the application file is run to install the application to be installed;
Wherein, before electronic equipment shutdown receives the notification broadcast, the application file has been downloaded and has been stored in
In the electronic equipment.
2. according to the method for claim 1, it is characterised in that methods described also includes:Creating the installation directory
After the incidence relation of the application file, shutdown command is sent to indicate that the electronic equipment completes shutdown.
3. according to the method for claim 1, it is characterised in that whether given notice broadcast in the monitoring electronic equipment
Before, methods described also includes:
The storage location of the application file is set, wherein the storage location of the application file and the installation directory are positioned at same
In one disk partition;
The application file is stored into the storage location.
4. according to the method for claim 3, it is characterised in that whether given notice broadcast in the monitoring electronic equipment
Before, methods described also includes:
Judge whether the memory space that the application file takes is more than or equal to preset value;
When the memory space that the application file takes is more than or equal to the preset value, monitor whether the electronic equipment sends
The notification broadcast.
5. according to the method described in Claims 1-4 any one, it is characterised in that described to be created in the installation directory
The incidence relation of the installation directory and application file, including:
Create the hard link for pointing to the application file in the installation directory, the hard link represent the installation directory with
The incidence relation of the application file.
6. according to the method for claim 5, it is characterised in that methods described also includes:
While the hard link for pointing to the application file is created in the installation directory, the former chain of the application file is searched
Connect, wherein before the original is linked as creating the hard link for pointing to the application file, point to the link of the application file;
Delete the former link of the application file.
7. a kind of electronic equipment, it is characterised in that including:
Module is monitored, whether is given notice broadcast for monitoring electronic equipment, the notification broadcast is for indicating that the electronics is set
It is standby to shut down;
Acquisition module, for after listening to the electronic equipment and sending the notification broadcast, obtaining the peace of the electronic equipment
Fill catalogue;
Relating module, for creating the incidence relation of the installation directory and application file, wherein institute in the installation directory
The installation file that application file is application to be installed is stated, the incidence relation is used to indicate to start shooting and scan in the electronic equipment
In the case of the installation directory, the application file is run to install the application to be installed;
Wherein, before electronic equipment shutdown receives the notification broadcast, the application file has been downloaded and has been stored in
In the electronic equipment.
8. electronic equipment according to claim 7, it is characterised in that also include:
Shut down indicating module, for after incidence relation of the installation directory with the application file has been created, sending shutdown
Instruct to indicate that the electronic equipment completes shutdown.
9. electronic equipment according to claim 7, it is characterised in that also include:
Memory module, stored for setting the storage location of the application file, and by the application file to the storage position
In putting;Wherein, the storage location of the application file and the installation directory are located in same disk partition.
10. electronic equipment according to claim 9, it is characterised in that also include:
Judge module, for judging whether the memory space that the application file takes is more than or equal to preset value, when the application
When the memory space that file takes is more than or equal to the preset value, the monitoring module is triggered.
11. according to the electronic equipment described in claim 7-10 any one, it is characterised in that the relating module is specifically used
In:
Create the hard link for pointing to the application file in the installation directory, the hard link represent the installation directory with
The incidence relation of the application file.
12. electronic equipment according to claim 11, it is characterised in that also include:
Searching modul, while for creating the hard link for pointing to the application file in the installation directory, described in lookup
The former link of application file, wherein before the original is linked as creating the hard link for pointing to the application file, sensing is described should
With the link of file;
Removing module, for deleting the former link of the application file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410608296.5A CN104360880B (en) | 2014-11-03 | 2014-11-03 | One kind applies installation method and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410608296.5A CN104360880B (en) | 2014-11-03 | 2014-11-03 | One kind applies installation method and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104360880A CN104360880A (en) | 2015-02-18 |
CN104360880B true CN104360880B (en) | 2017-11-24 |
Family
ID=52528144
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410608296.5A Active CN104360880B (en) | 2014-11-03 | 2014-11-03 | One kind applies installation method and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104360880B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106257423A (en) * | 2016-08-04 | 2016-12-28 | 微鲸科技有限公司 | Method for upgrading software and user terminal |
CN106598665A (en) * | 2016-12-10 | 2017-04-26 | 北京小米移动软件有限公司 | Application installation method and device |
CN107391593A (en) * | 2017-06-29 | 2017-11-24 | 努比亚技术有限公司 | A kind of document handling method, mobile terminal and computer-readable recording medium |
CN107330070A (en) * | 2017-06-30 | 2017-11-07 | 联想(北京)有限公司 | A kind of processing method and electronic equipment |
CN116204200B (en) * | 2023-02-03 | 2024-02-09 | 启朔(深圳)科技有限公司 | Application installation method, device, storage medium and equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6438749B1 (en) * | 1999-03-03 | 2002-08-20 | Microsoft Corporation | Method and system for restoring a computer to its original state after an unsuccessful patch installation attempt |
CN103631679A (en) * | 2013-12-06 | 2014-03-12 | Tcl通讯(宁波)有限公司 | Application installation control method and system for mobile terminal |
CN103677864A (en) * | 2012-09-05 | 2014-03-26 | 中兴通讯股份有限公司 | Method for upgrading software and terminal |
CN103945264A (en) * | 2014-04-29 | 2014-07-23 | 丹阳市广播电视台 | Set top box application program upgrading method |
-
2014
- 2014-11-03 CN CN201410608296.5A patent/CN104360880B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6438749B1 (en) * | 1999-03-03 | 2002-08-20 | Microsoft Corporation | Method and system for restoring a computer to its original state after an unsuccessful patch installation attempt |
CN103677864A (en) * | 2012-09-05 | 2014-03-26 | 中兴通讯股份有限公司 | Method for upgrading software and terminal |
CN103631679A (en) * | 2013-12-06 | 2014-03-12 | Tcl通讯(宁波)有限公司 | Application installation control method and system for mobile terminal |
CN103945264A (en) * | 2014-04-29 | 2014-07-23 | 丹阳市广播电视台 | Set top box application program upgrading method |
Also Published As
Publication number | Publication date |
---|---|
CN104360880A (en) | 2015-02-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104360880B (en) | One kind applies installation method and electronic equipment | |
CN103617057B (en) | Application program installation method and device | |
JP5976221B2 (en) | Information backup method and apparatus | |
CN107832100B (en) | APK plug-in loading method and terminal thereof | |
CN104134036B (en) | Method and device for obtaining Root permission | |
CN103488489B (en) | Data processing method and device | |
CN106201468B (en) | A kind of processing method of screenshotss, device and electronic equipment | |
US9747449B2 (en) | Method and device for preventing application in an operating system from being uninstalled | |
CN106230843A (en) | A kind of for the smart mobile phone configuration method of cloud virtual mobile phone, server and system | |
WO2021098354A1 (en) | Method and apparatus for android penetration achieving silent installation on basis of accessibility service | |
CN108090345B (en) | Linux system external command execution method and device | |
CN105912366A (en) | Implementation method for plug-in type development of desktop application | |
CN104020999A (en) | Management method and system of application programs | |
CN103870319B (en) | Information processing method, device and electronic equipment | |
CN103177104A (en) | Searching method and device of application program | |
CN106649640A (en) | Instant search method and device | |
CN105678164A (en) | Method and device for detecting malicious software | |
CN105930058A (en) | Application starting method and apparatus for mobile terminal and mobile terminal | |
CN109032617B (en) | Control method and control device for automatically deleting installation package | |
CN106789866B (en) | A kind of method and device detecting malice network address | |
CN107155167A (en) | Mobile terminal and its Bluetooth pairing name class processing method and storage device | |
CN104375831B (en) | Realize the methods, devices and systems of the webpage and inter-application communication on terminal device | |
CN103067246A (en) | Method and apparatus used for processing file received based on instant communication service | |
CN105302702A (en) | Method and apparatus for testing performance of terminal | |
CN104426960A (en) | Paid application trying method and device thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |