CN104166572B - Software installation method and computing device - Google Patents
Software installation method and computing device Download PDFInfo
- Publication number
- CN104166572B CN104166572B CN201410406742.4A CN201410406742A CN104166572B CN 104166572 B CN104166572 B CN 104166572B CN 201410406742 A CN201410406742 A CN 201410406742A CN 104166572 B CN104166572 B CN 104166572B
- Authority
- CN
- China
- Prior art keywords
- installation
- core
- core document
- software
- file
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 56
- 238000009434 installation Methods 0.000 claims abstract description 306
- 230000006870 function Effects 0.000 claims description 70
- 238000011900 installation process Methods 0.000 claims description 9
- 230000006835 compression Effects 0.000 claims description 4
- 238000007906 compression Methods 0.000 claims description 4
- 230000001960 triggered effect Effects 0.000 claims description 3
- 230000000694 effects Effects 0.000 abstract description 8
- 230000008569 process Effects 0.000 description 10
- 238000005516 engineering process Methods 0.000 description 8
- 238000005457 optimization Methods 0.000 description 7
- 230000003993 interaction Effects 0.000 description 6
- 230000008901 benefit Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000010276 construction Methods 0.000 description 2
- 230000018109 developmental process Effects 0.000 description 2
- 230000002452 interceptive effect Effects 0.000 description 2
- 208000019901 Anxiety disease Diseases 0.000 description 1
- 230000001133 acceleration Effects 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 230000036506 anxiety Effects 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000005314 correlation function Methods 0.000 description 1
- 230000006837 decompression Effects 0.000 description 1
- 230000008140 language development Effects 0.000 description 1
- 210000003516 pericardium Anatomy 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000035807 sensation Effects 0.000 description 1
- 238000004904 shortening Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Abstract
This application provides a kind of software installation method and device, wherein, software installation method includes:All Files in software to be installed is divided into core document and non-core file, the core document is the file for realizing active Trigger Function, and the non-core file is the file for realizing passive Trigger Function;Generate the sub- installation kit of the core document and the sub- installation kit of the non-core file;When installing the software to be installed, the core document is installed using the sub- installation kit of the core document and runs the core document, makes the active Trigger Function normal operation of the software to be installed.By the application, reach and shortened the time that user waits software installation, improved the effect of user experience.
Description
Present patent application is the applying date on December 12nd, 2011, Application No. 201110412482.8, entitled
The divisional application of the Chinese invention patent application of " software installation method and device ".
Technical field
The application is related to field of computer technology, more particularly to a kind of software installation method and device.
Background technology
With the development of computer technology and network technology, people rely on application more and more when using computer
Program carries out various work and activity, thus, requirement of the people to application program also more and more higher.And want to use and apply journey
Sequence, then firstly the need of the installation for carrying out application program, it is referred to as software installation.
Software installation refer to one group is related, work in coordination complete work software document be reasonably placed into system
In, and complete to be connected with system, allow the process of software normal operation.
All running software files of traditional installation software assembly and all running softwares are set, by all operation texts
Part and operation, which are set, to be all bundled in an installation procedure, when mounted, it is necessary to which decompressing files, decompression set and performed and set
Put, waiting can just bring into operation after package-in file is all installed so that the set-up time is grown, it is impossible to meets making for certain user
With demand, user high, and that lack patient is such as required usage experience.For example, a kind of domestic MIS softwares, installation kit size
For 400M, whole installation process needs time-consuming more than 5 minutes.
In addition, existing installation software there is likely to be needs in exploitation by similar third party's installation kit factory such as Nsis
The support of business, the property of can customize are poor;It is non-essential selection, confirm etc. interaction it is too many, and user and do not understand these selection,
The problems such as interaction etc..These problems can cause the software installation time tediously long, consume the stand-by period of user excessively, so that can not
Satisfied usage experience is brought for user.
At present, this traditional software installation process is tediously long, signal is ambiguous, and user can only wait very long installation process complete
Software could be used after, has had a strong impact on user experience.
In a word, a technical problem for needing those skilled in the art urgently to solve at present is:In software installation process, such as
What effectively shortens period of reservation of number, lifts user experience.
The content of the invention
Technical problems to be solved in this application are to provide a kind of software installation method and device, are pacified with solving existing software
Period of reservation of number is caused to be grown, it is necessary to which all files install ability normal use software during dress, usage experience is low
Problem.
In order to solve the above problems, this application discloses a kind of software installation method, including:By the institute in software to be installed
There is file to be divided into core document and non-core file, the core document is the file for realizing active Trigger Function, institute
It is the file for realizing passive Trigger Function to state non-core file;Generate the sub- installation kit of the core document and the non-core
The sub- installation kit of heart file;When installing the software to be installed, the core is installed using the sub- installation kit of the core document
Heart file simultaneously runs the core document, makes the active Trigger Function normal operation of the software to be installed.
Preferably, it is described when installing the software to be installed, using described in the sub- installation kit installation of the core document
Core document simultaneously runs the core document, includes the step of the active Trigger Function normal operation for making the software to be installed:
When starting to install the software to be installed, the core document is installed using only the sub- installation kit of the core document and run
The core document, make the active Trigger Function normal operation of the software to be installed.
Preferably, software installation method also includes:When being brought into operation after core document installation, the non-core is used
The sub- installation kit of heart file installs the non-core file.
Preferably, software installation method also includes:After the core document installation, the installation institute of input is received
The instruction of non-core file is stated, the non-core file is installed using the sub- installation kit of the non-core file.
Preferably, the sub- installation kit using the core document, which installs the step of core document, includes:Use
The sub- installation kit of the core document, the core document is installed using multiple threads, the multiple thread include main thread and
Logic thread, the main thread are used for the installation initialization operation of the core document, and the logic thread is described for performing
The installation process of core document.
Preferably, the multiple thread also includes interface thread, and the interface thread is used for the installation of the core document
Displaying interface.
Preferably, the sub- installation kit using the core document, the core document is installed using multiple threads
Step includes:The logic thread starts the main thread, during the main thread starts, sends described in message informing
Interface thread sets timer and starts to show installation interface;The interface thread installs boundary using described in the Timer Controlling
The display of installation progress in face;When the installation progress shows installation, the interface thread is sent out to the logic thread
Message is sent, notifies core document installation described in the logic thread.
Preferably, the step of operation core document includes:Dynamic chain in core document described in dynamic load
Storehouse dll file is connect, runs the core document.
Preferably, described when installing the software to be installed, institute is installed using the sub- installation kit of the core document
Before the step of stating core document and running the core document, in addition to:Set the software to be installed installation environment and
Installation path;It is described when installing the software to be installed, use the sub- installation kit of the core document that core text is installed
Part simultaneously includes the step of run the core document:When installing the software to be installed, in the installation environment and installation road
Under footpath, the core document is installed using the sub- installation kit of the core document and runs the core document.
Preferably, the installation path includes Default installation path and standby installation path;It is described to wait to pacify when described in installation
When filling software, under the installation environment and installation path, the core text is installed using the sub- installation kit of the core document
Part simultaneously includes the step of run the core document:When installing the software to be installed, in the installation environment and described silent
Recognize under installation path, the core document is installed using the sub- installation kit of the core document and runs the core document;If
Under the installation environment and the Default installation path, the core document failure is installed, then in the installation environment and institute
State under standby installation path, the core document is installed using the sub- installation kit of the core document and runs the core text
Part.
Preferably, software installation method also includes:During the software to be installed is installed, the installation of input is received
Path, the mounted core document under the installation environment and installation path of the setting is cancelled, on the installation road of the input
Under footpath, the core document is installed using the sub- installation kit of the core document and runs the core document.
Preferably, the core document for being used to realize active Trigger Function for the software installation to be installed and is run
Afterwards, it is not necessary to which the factor in addition to the software startup optimization to be installed is the file run;It is described to realize passive Trigger Function
Non-core file for the software installation to be installed and run after, it is necessary in addition to the software startup optimization to be installed because
The file of element operation.
In order to solve the above problems, disclosed herein as well is a kind of software installation device, including:Division module, for inciting somebody to action
All Files in software to be installed is divided into core document and non-core file, and the core document is actively to be touched for realizing
The file of function is sent out, the non-core file is the file for realizing passive Trigger Function;Generation module, it is described for generating
The sub- installation kit of the sub- installation kit of core document and the non-core file;Module is installed, for described to be installed soft when installing
During part, the core document is installed using the sub- installation kit of the core document and runs the core document, make described to wait to pacify
Fill the active Trigger Function normal operation of software.
Preferably, the installation module, for when it is described start to install the software to be installed when, using only the core
The sub- installation kit of file installs the core document and runs the core document, and make the software to be installed actively triggers work(
Can normal operation.
Preferably, software installation device also includes:Continue that module is installed, for starting to transport after core document installation
During row, the non-core file is installed using the sub- installation kit of the non-core file;Or for pacifying when the core document
After the completion of dress, the instruction of the installation non-core file of input is received, is pacified using the sub- installation kit of the non-core file
Fill the non-core file.
Preferably, the installation module, for when installing the software to be installed, being pacified using the son of the core document
Dress bag, the core document is installed using multiple threads, makes the active Trigger Function normal operation of the software to be installed, its
In, the multiple thread includes main thread and logic thread, and the main thread is used for the installation initialization behaviour of the core document
Make, the logic thread is used for the installation process for performing the core document.
Preferably, the multiple thread also includes interface thread, and the interface thread is used for the installation of the core document
Displaying interface.
Preferably, the installation module is using the sub- installation kit of the core document, using described in the installation of multiple threads
During core document, the main thread is started by the logic thread, during the main thread starts, sends message informing
The interface thread sets timer and starts to show installation interface;The interface thread uses peace described in the Timer Controlling
Fill the display of installation progress in interface;When the installation progress shows installation, the interface thread is to the logic line
Journey sends message, notifies core document installation described in the logic thread.
Preferably, the installation module is when running the core document, by core document described in dynamic load
Dynamic link library (DLL) file, run the core document.
Preferably, software installation device also includes:Setting module, for using the core document in the installation module
Sub- installation kit the core document is installed and runs the core document before, set the installation environment of the software to be installed
And installation path;The installation module is used for when installing the software to be installed, under the installation environment and installation path,
The core document is installed using the sub- installation kit of the core document and runs the core document, makes the software to be installed
Active Trigger Function normal operation.
Preferably, the installation path includes Default installation path and standby installation path;The installation module, for working as
When the software to be installed is installed, under the installation environment and the Default installation path, the son of the core document is used
Installation kit installs the core document and runs the core document;If in the installation environment and the Default installation path
Under, the core document failure is installed, then under the installation environment and the standby installation path, uses the core document
Sub- installation kit the core document is installed and runs the core document, make the active Trigger Function of the software to be installed just
Often operation.
Preferably, software installation device also includes:Receiving module, for described to be installed soft in the installation module installation
During part, the installation path of input is received, cancels the mounted core under the installation environment and installation path of the setting
Heart file, and the installation path of the input is sent to the installation module, by the peace for installing module in the input
Fill under path, the core document is installed using the sub- installation kit of the core document and runs the core document, make described
The active Trigger Function normal operation of software to be installed.
Preferably, the core document for being used to realize active Trigger Function for the software installation to be installed and is run
Afterwards, it is not necessary to which the factor in addition to the software startup optimization to be installed is the file run;It is described to realize passive Trigger Function
Non-core file for the software installation to be installed and run after, it is necessary in addition to the software startup optimization to be installed because
The file of element operation.
Compared with prior art, the application has advantages below:
The software installation scheme of the application to the file being mounted in software according to active and passive Trigger Function by drawing
Point, specify core document and non-core file, when mounted, installation core document is simultaneously run, it is required during by running software must
File is wanted to be reduced to minimum.So, user in the case where being mounted with core document can normal operation software, with software carry out
Interaction, using its basic function, and in this course, then continue in system background non-core file to be installed or in user's needs
When send instruction non-core file be installed.Because core document ratio in whole software is smaller, installation is quick, so as to effectively subtract
The time that user waits software installation is lacked;When installing non-core file, user can have been run soft using core document
Part, installed without anxious waiting All Files, substantially increase user experience.For example, 360 browsers are being installed
When, the file of the active Trigger Function of 360 browsers will be realized, as completed 360 browsers of webpage loading and display function
Master program file 360se.exe files etc. are installed first as core document, and after installation, 360 browsers can be used in user
Main interface and the address communication of setting etc., and while the main interface is shown for users to use, continue to install in system background
The non-core file of 360 browsers, the file of renewal function is such as realized, but this process may not be perceived by the user, and be used
Family is subjective to feel that software installation speed accelerates.
By the technical scheme of the application, efficiently solve in existing software installation process, it is necessary to which all files install
The problem of Bi Caineng normal use softwares cause period of reservation of number to be grown, and usage experience is low, shortening user is reached and has waited software
The time of installation, improve the effect of user experience.
Brief description of the drawings
Fig. 1 is the step flow chart according to a kind of software installation method of the embodiment of the present application one;
Fig. 2 is the step flow chart according to a kind of software installation method of the embodiment of the present application two;
Fig. 3 is the step flow chart according to a kind of software installation method of the embodiment of the present application three;
Fig. 4 is the structured flowchart according to a kind of software installation device of the embodiment of the present application four.
Embodiment
It is below in conjunction with the accompanying drawings and specific real to enable the above-mentioned purpose of the application, feature and advantage more obvious understandable
Mode is applied to be described in further detail the application.
Embodiment one
Reference picture 1, show a kind of step flow chart of software installation method according to the embodiment of the present application one.
The software installation method of the present embodiment comprises the following steps:
Step S102:All Files in software to be installed is divided into core document and non-core file.
Wherein, core document is the file for realizing active Trigger Function, for example, these files can be to be installed soft
After part is installed and run, it is not necessary to which the factor in addition to software startup optimization to be installed is the file run, such as in software installation
Any user's input is not needed to start the file performed afterwards, by taking 360 browsers as an example, its core document can include completing
Webpage loads and the master program file 360se.exe files of 360 browsers of display function;Non-core file is for realizing quilt
The file of dynamic Trigger Function, for example, these files can be software installation to be installed and after running, it is necessary to except software to be installed opens
The file of factor operation beyond dynamic operation, it is necessary to which user further inputs or determined to perform such as after software installation,
Can be the execution download function of general browser or software or the file etc. of upgrade function.
Step S104:Generate the sub- installation kit of core document and the sub- installation kit of non-core file.
After core document and non-core file has been divided, two parts file is generated to different installation kits, i.e. core respectively
The sub- installation kit of heart file and the sub- installation kit of non-core file, two sub- installation kits constitute the installation of whole software to be installed
Bag.Wherein, the sub- installation kit of non-core file can also be further divided into multiple according to certain rule and needing.
Step S106:When installing software to be installed, core document is installed using the sub- installation kit of core document and run
Core document, make the active Trigger Function normal operation of software to be installed.
Preferably, when starting to install software to be installed, core document is installed simultaneously using only the sub- installation kit of core document
Core document is run, makes the active Trigger Function normal operation of software to be installed.
When initially installed, core document is only installed, rather than core document then can be in subsequent installation.It is mounted with core text
After part, the related interfaces and/or interrelated logic of software are installation, software can in a manner of basic function normal operation, it is real
Its existing active Trigger Function, with user mutual, thinks software basic installation thereby using family is subjective.At this point it is possible to
Continue to install non-core file from the background without being perceived by the user again, also, nor affect on the software that operation core document is realized
Active Trigger Function normal use, make that user's visual sense installation rate is fast, and usage experience is good.Certainly, non-core file
Installation can also in a manner of user can perceive but not influence running software, or, subsequently by user input installation non-core
The form installation of heart file instruction.
Certainly, those skilled in the art can also use other similar types when installing software to be installed, to improve peace
Fill speed.Such as, it can simultaneously or successively start installation core document and non-core two processes of file are installed, but using installing
The process of core document installs same after core document, that is, runs form of core document etc., realize installation speed-raising.
By the present embodiment, the file being mounted in software is divided according to active and passive Trigger Function, specifies core
File and non-core file, when mounted, install core document and run first, required necessary file subtracts during by running software
It is small to arrive minimum.So, user in the case of core document is mounted with can runs software, interacted with software, use it
Basic function, and in this course, then in system background continue that non-core file is installed or instruction is sent when user needs
Non-core file is installed.Core document ratio in whole software is smaller, and installation is quick, soft so as to effectively reduce user's wait
The time of part installation;When installing non-core file, user can use core document runs software, without anxiety etc.
Treat that All Files installs, substantially increase user experience.By the technical scheme of the application, efficiently solve existing
Cause period of reservation of number to be grown, it is necessary to which all files install ability normal use software in software installation process, use body
The problem of low is tested, has reached and has shortened the time that user waits software installation, improves the effect of user experience.
Embodiment two
Reference picture 2, show a kind of step flow chart of software installation method according to the embodiment of the present application two.
The software installation method of the present embodiment comprises the following steps:
Step S202:Clearly distinguish core document when program is run for the first time and non-core file.
That is, after according to software installation, when program is run for the first time, what file performed is active Trigger Function or passively touches
Function is sent out, the All Files that software to be installed includes is divided into necessary core document and non-core file.
By taking 360 bodyguards as an example, its core document can include the main interface of bodyguard;And the navigation area of bodyguard has several big work(
Can, clicking on the displaying content below after each function can change, and so long as not needing after starting, just the function of display (is led herein
Refer to displaying content area), it can serve as non-core file.
Step S204:Ensure that the ratio of core document and non-core file is enough big as far as possible.
Core document negligible amounts namely are ensured from running software angle, the ratio can be by those skilled in the art's root
Divided and controlled according to software actual conditions.Core document is fewer, and the speed of installation will be faster, and program starts after installation
Can be faster.As a rule, the ratio of core document and non-core file should be maintained at 4:6 and less, it is preferable that be 3:7.
Step S206:Two block files are compressed in installation kit using higher compression ratio technique.
Mainly consumed in file from installation kit to destination because installation kit under current objective hardware condition is time-consuming
In efficiency of transmission, therefore those skilled in the art can use the appropriate technology with higher compression ratio, such as zip or 7z
Technology, core document and non-core file this two block file are compressed respectively, then recomposition is an installation kit.
Step S208:Installation, the release of core document bag and directly configuration processor operation are performed, then discharges non-core file
Bag.
When carrying out software installation, the installation of core document first is carried out using the compressed package of core document, after installation directly
Operation, the function using core document is allowed users to, then, then carries out the installation of non-core file.
In the present embodiment, after 360 bodyguard's core documents are installed, that is, 360 bodyguards and interrelated logic, display 360 are run
Bodyguard's main interface, then, then the non-core file installation of 360 bodyguards is carried out, as the function of the navigation area of bodyguard is realized in installation
Non-core file.
Step S210:It can go to load non-core file completion correlation function automatically again after program operation.
After program operation, on the one hand, installation procedure can program bring into operation can voluntarily continue to install it is non-core
File;On the other hand, installation procedure can also give the installation of non-core file to user, the installation non-core inputted by user
The instruction of heart file, it is determined that installing the opportunity of non-core file, and then non-core file is installed.By different follow-up non-core
File mounting means, more more options are provided for user installation software, also makes software installation more flexible, further improves user
Usage experience.
By the present embodiment, the file in software to be installed has been carried out to the division of core document and non-core file,
During software installation, core document is first installed and run;And ratio of the control core file in whole software to be installed;Use
Higher compression ratio technique is compressed to core document and non-core file, transmission during so as to which software installation has been effectively ensured
The size of efficiency and necessary core document, software installation speed is effectively increased, shortens period of reservation of number, improves use
Family usage experience.
Embodiment three
Reference picture 3, show a kind of step flow chart of software installation method according to the embodiment of the present application three.
The software installation method of the present embodiment comprises the following steps:
Step S302:Establish good program necessity operational process.
This step is established before Software package to be installed by software engineering personnel.Including:Determine what program needed to have
Functional characteristic, remove the function of unnecessary repetition;Clearly divide actively and passively Trigger Function characteristic;More than strict implement two class work(
Can characteristic construction, reduce reference and dependence to other modules etc. as far as possible.
Step S304:Core document and non-core file are divided, generates installation kit.
In this step, according to being accomplished that active Trigger Function or passive Trigger Function divide file after software installation
For core document and non-core file.By taking the installation of 360 browsers as an example, the file of active Trigger Function type is realized, also
It is that the core document for installing 360 browsers can include:360se.exe (master program file, completes webpage loading, display work(
Can), Favorites.dll (collection clip module, incorporated into core because needing to show the collection that added of user after startup
Bag), Safecentral.dll (safe traffic lights module, because needing real-time guard Internet Security, so need start when just transport
OK), Pluginbar.dll (plug-in unit column, being incorporated into because needing to show the plug-in unit that added of user after startup to core bag) etc.;
And the file of passive Trigger Function type is realized, that is, the non-core files of 360 browsers is installed can include:
Download.dll (download module, as user without download if without immediately start), Seup.exe (program upgraded module,
Update time is divided into non-core pericardium for once a day) etc..
After division core document and non-core file, installation kit is generated.Installation kit includes the sub- installation kit of core document
With the sub- installation kit of non-core file, wherein, the functional characteristic of active triggering and file are divided into core document type, generate core
The sub- installation kit of heart file;The functional characteristic passively triggered and file are divided into non-core file type, generate non-core file
Sub- installation kit.
Step S306:Establish the hypothesis basis of running software condition.
Including:The path being installed to is needed when setting software normal operation;Need to use when setting software normal operation
System environments, as disk is writable, there is enough remaining spaces etc..
Installation environment and installation path are set, determines that a collection of most of users perform, made all without the item for going to set, acquiescence
Obtain software to be installed directly can install under the installation environment and installation path of setting, be inputted without user, reducing need not
The software to be installed wanted and the interaction of user, shorten the set-up time, improve installation effectiveness, improve Consumer's Experience.
Preferably, a standby installation path can also be set, so as to the install failure under the Default installation path of setting
When, using the standby installation path, software is installed under the standby installation path.By standby installation path, software ensure that
It can quick and precisely install, avoid software installation failure to a certain extent.
It should be noted that step S306 and step S304 execution can in no particular order sequentially, that is, can first divide
Core document and non-core file, and then installation kit is generated, then reset installation environment and installation path;Or can also
Installation environment and installation path are first set, then subdivided core document and non-core file, and then generate installation kit.
In addition, this step is optional step, in actual applications, the interface of input installation path can also be provided a user
Or interface, self-defined installation path is inputted by user.
Step S308:Logic is discharged based on assuming that basis performs.
That is, after running installation kit, immediately core document is discharged according to installation environment set before and installation path.
It should be noted that in installation process, if User Defined installation path, need what revocation discharged before
File.If the set installation path release failure of user first is, it is necessary to write standby installation path, if all failures, are carried
Show that user can not install.The interface of self-defined installation path is inputted by providing a user so that user has flexible selection peace
The chance in path is filled, but the installation path with setting that compares, this kind of mode will increase the software installation time.
Step S310:Installation effect is realized based on release logic operation program.
Including:Startup program immediately, for users to use;Meanwhile active Trigger Function can be used in user, namely pass through installation
The function (for example, homepage needs to load, so must possess webpage loading function when must start) that core document is realized;Together
When, continue to discharge non-core file from the background, for users to use other passive Trigger Functions, i.e., realized by installing non-core file
Function (such as download).
In specific implementation, installation procedure refer to multithreading exploitation, and core document and non-is installed using multithreading
Core document.
The multithreading that installation procedure uses includes:Main thread and logic thread, wherein, main thread be used for core document and/
Or the installation initialization operation of non-core file, logic thread are used for the installation for performing core document and/or non-core file
Journey.Preferably, multithreading can also include the parting line showed for the installation interface of core document and/or non-core file
Journey.By multithreading, software installation speed and efficiency are further increased.
In the present embodiment, installation procedure maintains three threads:Main thread, interface thread, logic thread.Main thread is responsible for
The initialization operation of installation procedure, interface thread are responsible for showing for UI (user interface, i.e. installation interface), and logic thread is responsible for peace
The execution of dress process.
When installing core document, logic thread calls CreateProcess to start main thread, in the start-up course of main thread
In, send message informing interface thread and timer is set, and start working, show installation interface.Timer Controlling installation interface
In installation progress display degree, by taking 360 browsers as an example, in one second ensure progress bar even acceleration effect processing.Peace
When threading degree shows core document installation, interface thread is installed by sending message, notification logic threaded core file
Into logic thread completes follow-up round-off work.By interface thread, user can be made to understand the installation progress of software, strengthen boundary
Face lifts user experience using sensation.Certainly, in actual applications, installation can not also be showed without using interface thread
Interface, when core document installation, message informing logic thread is sent by main thread, or known automatically by logic thread
Know core document installation information etc. mode.
After core document installation, the corresponding module for loading installation brings into operation.Program uses dynamic load mode
DLL (dynamic link library) module is loaded, is mapped specified executable module (i.e. DLL modules) by LoadLibrary functions
To the address space of calling process.GetProcAddress functions are called to obtain the ground of related export function in the dynamic link library
Location, the function of being realized by call by location using the module.Under normal circumstances, simply in some condition in program operation process
Just needs access some function in some DLL when meeting, the function in these DLL need not be all accessed in the case of other.Adopt
With dynamic load mode, it is necessary to when DLL modules be just loaded into internal memory, and be mapped in the address space of calling process.
Solve in program start-up course, the internal memory of program process disposably loads excessive module, is that each module assignment is excessive
Address space, serious waste system resource, the problem of causing program to start overlong time.
After core document installation, there is the program interface for the software installed and user produces interaction, but now rear
Platform, installation procedure do not exit, until all non-core APMB package releases finish.In the present embodiment, installed in core document
After the completion of, the release of non-core file by installation procedure oneself triggering by the way of being completed, and followed by core document discharges.Need
It is noted that the installation of non-core file is also suitable above-mentioned multithreading, the load operating of non-core file is similarly
Suitable for above-mentioned dynamic load DLL technologies.
By the present embodiment, classification processing is carried out to installation resource, can solve the problem that installation procedure initialization time it is long, one
Secondary property releasing document is excessive, the slack problem of installation progress, reaches the effect of Fast Installation.The software installation side of the present embodiment
The structural condition that method runs program is more rigorous, different from the structure that traditional program is more loose, as best one can runs program
When necessary file reduce minimum.Exemplified by 360 browsers to be installed, by the present embodiment, it may be implemented in soft in 1 second time
The installation of part.
In addition, there may be the problem of non-core file loading failure in installation process, now only need to restart
Solve.
Example IV
Reference picture 4, show a kind of structured flowchart of software installation device according to the embodiment of the present application four.
The software installation device of the present embodiment includes:Division module 402, for the All Files in software to be installed to be drawn
It is divided into core document and non-core file, wherein, core document is the file for realizing active Trigger Function, non-core file
For the file for realizing passive Trigger Function;Generation module 404, for the sub- installation kit for generating core document and non-core text
The sub- installation kit of part;Module 408 is installed, for when installing the software to be installed, pacifying using the sub- installation kit of core document
Dress core document simultaneously runs core document, makes the active Trigger Function normal operation of software to be installed.
Preferably, module 408 is installed to be used for when starting to install the software to be installed, pacified using only the son of core document
Dress bag installation core document simultaneously runs core document, makes the active Trigger Function normal operation of software to be installed.
Preferably, the software installation device of the present embodiment also includes:Continue that module 410 is installed, for when core document pacifying
When being brought into operation after dress, non-core file is installed using the sub- installation kit of non-core file;Or when core document installation
Afterwards, the instruction of the non-core file of installation of input is received, non-core file is installed using the sub- installation kit of non-core file.
Preferably, module 408 is installed, for when installing the software to be installed, using the sub- installation kit of core document,
Core document is installed using multiple threads, and runs core document, makes the active Trigger Function normal operation of software to be installed.
Preferably, multiple threads include main thread and logic thread, wherein, the installation that main thread is used for core document is initial
Change operation, logic thread is used for the installation process for performing core document.
Preferably, multiple threads also include interface thread, and the installation interface that interface thread is used for core document shows.
Preferably, module 408 is installed and is using the sub- installation kit of core document, utilizes multiple threads that core document is installed
When, main thread is started by logic thread, during main thread starts, message informing interface thread is sent and timer is set simultaneously
Start to show installation interface;Interface thread uses the display of installation progress in Timer Controlling installation interface;Show in installation progress
When showing installation, interface thread sends message, notification logic threaded core file installation to logic thread.
Preferably, module 408 is installed when running core document, passes through the dll file in dynamic load core document, fortune
Row core document.
Preferably, the software installation device of the present embodiment also includes:Setting module 406, for being used in installation module 408
Before the sub- installation kit of core document installs core document and runs core document, the installation environment and peace of software to be installed are set
Fill path;Module 408 is installed to be used for when installing software to be installed, under the installation environment and installation path of setting, uses core
The sub- installation kit installation core document of heart file simultaneously runs core document, the active Trigger Function of software to be installed is normally transported
OK.The execution of setting module 406 and division module 402 can in no particular order sequentially.
Preferably, the installation path that setting module 406 is set includes Default installation path and standby installation path;Mould is installed
Block 408 under installation environment and Default installation path, is pacified when installing software to be installed using the sub- installation kit of core document
Dress core document simultaneously runs core document;If under installation environment and Default installation path, installation core document failure, then pacifying
Fill under environment and standby installation path, core document is installed using the sub- installation kit of core document and runs core document, makes to treat
The active Trigger Function normal operation of software is installed.
Preferably, the software installation device of the present embodiment also includes:Receiving module (not shown), in installation mould
During block 408 installs software to be installed, the installation path of input is received, cancels the installation set in setting module 406
Mounted core document under environment and installation path, and the installation path of input is sent to installation module 408, by installation mould
Block 408 installs core document using the sub- installation kit of core document and runs core document, make to treat under the installation path of input
The active Trigger Function normal operation of software is installed.
Preferably, after for realizing the core document of active Trigger Function as software installation to be installed and operation, it is not necessary to
Except the factor of software startup optimization to be installed is the file of operation, user is not needed such as to carry out the file that input can be run;It is real
Now the non-core file of passive Trigger Function be software installation to be installed and run after, it is necessary to except software startup optimization to be installed with
The file of outer factor operation, is inputted if desired for user, the file run according to the input of user.
The software installation device of the present embodiment is used to realize corresponding software installation method in preceding method embodiment, and has
There is the beneficial effect of corresponding software installation method, will not be repeated here.
The thinking that the elder generation of conventional mounting bag reruns to system plug file is restructured as new-type installation thinking by the application, i.e., most
Measure and fill in file less to system and lose no time to run, then slowly fill in file.By multiple software installation schemes of the application, can reach with
Lower effect:
(1) interactive interface is friendly:Exploitation be mounted software when, can self-defining control enrich, show exquisiteness interaction
Interface.During software installation, the support to these controls and interactive interface can be provided a user, so that when being user installation software
Bring more preferable usage experience.
(2) development tool is flexible:SDK, the example NSIS that need not be provided by third party manufacturer, it can use and program is homologous
C++ or C# etc. is advanced becomes language development.
(3) maintainability, stability are strong:Existing installation packet technology is based primarily upon script construction, when program size or
Person's logic is iterated to up to after certain numerous and jumbled degree, can not safeguard and show well preferable stability, by the present embodiment,
Such risk can be evaded.
(4) good Consumer's Experience is provided:Traditional installation kit is time-consuming extremely long, and the software for seriously hindering user uses product
Polarity.Using the technical scheme of the application, good Consumer's Experience can be provided, it is positive effectively to lift use of the user to software
Property.
Each embodiment in this specification is described by the way of progressive, what each embodiment stressed be with
The difference of other embodiment, between each embodiment identical similar part mutually referring to.For device embodiment
For, because it is substantially similar to embodiment of the method, so description is fairly simple, referring to the portion of embodiment of the method in place of correlation
Defend oneself bright.
A kind of software installation method and device provided herein are described in detail above, it is used herein
Specific case is set forth to the principle and embodiment of the application, and the explanation of above example is only intended to help and understands this
The method and its core concept of application;Meanwhile for those of ordinary skill in the art, according to the thought of the application, specific
There will be changes in embodiment and application, in summary, this specification content should not be construed as to the application's
Limitation.
Claims (17)
1. a kind of software installation method, it includes:
Core document when software to be installed is run for the first time and non-core file are clearly distinguished, wherein, will just it be shown after startup
Function as core document, will be not required to after starting just the function of display as non-core file;
Respectively by the core document and the non-core compressing file into compressed package;
When installing the software to be installed, carry out core document installation using the compressed package of core document and run the core
File.
2. the method according to claim 11, wherein, in addition to:
When being brought into operation after core document installation, non-core file peace is carried out using the compressed package of the non-core file
Dress.
3. the method according to claim 11, wherein, in addition to:
After the core document installation, the instruction of the installation non-core file of input is received, using described non-
The compressed package of core document carries out non-core file installation.
4. according to the method in any one of claims 1 to 3, wherein, core text is carried out using the compressed package of core document
Part installation includes:
Using the compressed package of the core document, the core document is installed using multiple threads, the multiple thread includes master
Thread and logic thread, the main thread are used for the installation initialization operation of the core document, and the logic thread is used to hold
The installation process of the row core document.
5. according to the method for claim 4, wherein, the multiple thread also includes interface thread, the interface thread is used
Show in the installation interface of the core document.
6. according to the method for claim 5, wherein, the compressed package using the core document, utilize multiple threads
The step of installing the core document includes:
The logic thread starts the main thread, during the main thread starts, sends interface described in message informing
Thread sets timer and starts to show installation interface;
The interface thread uses the display of installation progress in installation interface described in the Timer Controlling;
When the installation progress shows installation, the interface thread sends message to the logic thread, described in notice
Core document installation described in logic thread.
7. according to the method for claim 1, wherein, described the step of running the core document, includes:
Dynamic link library (DLL) file in core document described in dynamic load, run the core document.
8. according to the method for claim 1, wherein, when installing the software to be installed, use the pressure of core document
Before contracting bag carries out core document installation and runs the core document step, in addition to:Set the peace of the software to be installed
Fill environment and installation path;
It is described when installing the software to be installed, using core document compressed package carry out core document installation and run described in
The step of core document, includes:When installing the software to be installed, under the installation environment and installation path, using described
The compressed package of core document installs the core document and runs the core document.
9. according to the method for claim 8, wherein, the installation path includes Default installation path and standby installation road
Footpath;
It is described when installing the software to be installed, under the installation environment and installation path, use the compression of core document
Bag carries out core document installation and included the step of running the core document:When installing the software to be installed, described
Under installation environment and the Default installation path, the core document is installed using the compressed package of the core document and runs institute
State core document;If under the installation environment and the Default installation path, the core document failure is installed, then described
Under installation environment and the standby installation path, the core document is installed using the compressed package of the core document and runs institute
State core document.
10. a kind of computing device, it includes:
Memory;
Processor, it is coupled to the memory and is adapted for carrying out method as claimed in any one of claims 1-9 wherein.
11. a kind of software installation method, it includes:
The file for the functional characteristic that active in software to be installed is triggered is divided into core document, wherein, the work(actively triggered
The file of energy characteristic includes:User's input is not needed to start the file performed after the software installation to be installed;
The file of the functional characteristic of passive triggering in software to be installed is divided into non-core file, wherein, passively trigger work(
The file of energy includes:User's input is needed to start the file performed after the software installation to be installed;
Generate the sub- installation kit of the core document and the sub- installation kit of the non-core file;
The hypothesis basis of running software condition to be installed is established, wherein, the hypothesis basis for establishing running software condition to be installed is wrapped
Include:The Default installation path being installed to is needed when setting software normal operation;Need what is used when setting software normal operation
System environments;
Assume that basis performs release logic based on described, wherein, assume that basis performs release logic and included based on described:According to institute
Default installation path and installation environment the release core document of setting;
Based on the release logic operation software to be installed.
12. according to the method for claim 11, wherein, establishing the hypothesis basis of running software condition to be installed also includes:
Standby installation path is set so as under the Default installation path of setting during install failure, under the standby installation path
Software is installed.
13. according to the method for claim 11, wherein, included based on the release logic operation software to be installed:
The function of being realized by installing core document, continue to discharge non-core file from the background with other passive triggerings for users to use
Function.
14. according to the method for claim 11, wherein, release core document includes:
Using the sub- installation kit of the core document, the core document is installed using multiple threads, the multiple thread includes
Main thread and logic thread, the main thread are used for the installation initialization operation of the core document, and the logic thread is used for
Perform the installation process of the core document.
15. according to the method for claim 14, wherein, the multiple thread also includes interface thread, the interface thread
Installation interface for the core document shows.
16. according to the method for claim 14, wherein, the sub- installation kit using the core document, utilization is multiple
The step of thread installation core document, includes:
The logic thread starts the main thread, during the main thread starts, sends message informing interface thread
Timer is set and starts to show installation interface;
The interface thread uses the display of installation progress in installation interface described in the Timer Controlling;
When the installation progress shows installation, the interface thread sends message to the logic thread, described in notice
Core document installation described in logic thread.
17. a kind of computing device, it includes:
Memory;
Processor, it is coupled to the memory and is adapted for carrying out the method as any one of claim 11 to 16.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410406742.4A CN104166572B (en) | 2011-12-12 | 2011-12-12 | Software installation method and computing device |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110412482.8A CN102426533B (en) | 2011-12-12 | 2011-12-12 | Method and device for installing software |
CN201410406742.4A CN104166572B (en) | 2011-12-12 | 2011-12-12 | Software installation method and computing device |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110412482.8A Division CN102426533B (en) | 2011-12-12 | 2011-12-12 | Method and device for installing software |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104166572A CN104166572A (en) | 2014-11-26 |
CN104166572B true CN104166572B (en) | 2017-12-19 |
Family
ID=51910406
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410406742.4A Active CN104166572B (en) | 2011-12-12 | 2011-12-12 | Software installation method and computing device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104166572B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107122205B (en) * | 2017-04-11 | 2021-01-29 | 深圳市客一客信息科技有限公司 | Installation time determining method and device for installation program |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1416057A (en) * | 2001-10-31 | 2003-05-07 | 精工爱普生株式会社 | Dynamic Java loading for applied program execution |
CN101540799A (en) * | 2009-04-23 | 2009-09-23 | 深圳市融创天下科技发展有限公司 | Mobile terminal software upgrading method |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020188941A1 (en) * | 2001-06-12 | 2002-12-12 | International Business Machines Corporation | Efficient installation of software packages |
-
2011
- 2011-12-12 CN CN201410406742.4A patent/CN104166572B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1416057A (en) * | 2001-10-31 | 2003-05-07 | 精工爱普生株式会社 | Dynamic Java loading for applied program execution |
CN101540799A (en) * | 2009-04-23 | 2009-09-23 | 深圳市融创天下科技发展有限公司 | Mobile terminal software upgrading method |
Also Published As
Publication number | Publication date |
---|---|
CN104166572A (en) | 2014-11-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102426533B (en) | Method and device for installing software | |
CN106293880B (en) | method and device for running Android application program on Windows system | |
CN101895431B (en) | RIA-based high-performance Web transmission network management system and implementation method thereof | |
CN104166573B (en) | Software installation method and device | |
CN103309660B (en) | Mobile solution cross-platform development method | |
EP2444892A1 (en) | Method and device for generating software installation packet | |
CN109271213A (en) | Loading method, device, computer equipment and the storage medium of the HTML5 page | |
CN104731706A (en) | Method and device for test management using distributed computing | |
CN112463239A (en) | BIOS and BMC interaction option default value modification method, system, terminal and storage medium | |
CN109885470A (en) | Method of adjustment, device, storage medium and the electronic equipment of thread pool | |
CN104598841A (en) | Double-system guide method and device facing terminal security | |
CN107479981A (en) | A kind of processing method and processing device that synchronization call is realized based on asynchronous call | |
CN105892629A (en) | Multicore-based screen awakening method and device as well as mobile terminal | |
CN104166572B (en) | Software installation method and computing device | |
CN110532045A (en) | A kind of striding course call method and relevant apparatus | |
CN108401453A (en) | A kind of method, apparatus and intelligent terminal of control display screen | |
CN105955567B (en) | Method and device for displaying user interface and progress bar | |
CN104750553B (en) | Using operation method and device | |
CN105930190B (en) | A kind of program self-start method and device based on operating system | |
CN104486149A (en) | Finite-state machine method for ground tests | |
CN103561417A (en) | Method for improving response quality of mobile client products to user request | |
CN109634647B (en) | Construction method and system of large-scale front-end project | |
CN103198201A (en) | Method and device for controlling game based on simulate keyboard | |
CN115134240B (en) | Intelligent scene optimization method and device, storage medium and electrical equipment | |
CN111209212B (en) | Method, device and system for testing online program of host |
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 | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220725 Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015 Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park) Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Patentee before: Qizhi software (Beijing) Co.,Ltd. |
|
TR01 | Transfer of patent right |