CN104166572A - Software installation method and calculation device - Google Patents

Software installation method and calculation device Download PDF

Info

Publication number
CN104166572A
CN104166572A CN201410406742.4A CN201410406742A CN104166572A CN 104166572 A CN104166572 A CN 104166572A CN 201410406742 A CN201410406742 A CN 201410406742A CN 104166572 A CN104166572 A CN 104166572A
Authority
CN
China
Prior art keywords
installation
core document
core
software
document
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410406742.4A
Other languages
Chinese (zh)
Other versions
CN104166572B (en
Inventor
赵晨曦
李锦伟
陶伟华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201410406742.4A priority Critical patent/CN104166572B/en
Priority claimed from CN201110412482.8A external-priority patent/CN102426533B/en
Publication of CN104166572A publication Critical patent/CN104166572A/en
Application granted granted Critical
Publication of CN104166572B publication Critical patent/CN104166572B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a software installation method and device. The software installation method comprises the steps that all files in software to be installed are divided into core files and non-core files, wherein the core files are used for achieving the active triggering function, and the non-core files are used for achieving the passive triggering function; a sub installation package of the core files and a sub installation package of the non-core files are generated; when the installation software to be installed is installed, the core files are installed through the sub installation package of the core files, the core files are run, and then the active triggering function of the software to be installed can be normally achieved. By the adoption of the software installation method and device, the time for waiting for installation of software is shortened for a user, and the user experience is improved.

Description

Software installation method and computing equipment
Patented claim of the present invention is to be the divisional application that Dec 12, application number in 2011 are 201110412482.8, name is called the Chinese invention patent application of " software installation method and device " applying date.
Technical field
The application relates to field of computer technology, particularly relates to a kind of software installation method and device.
Background technology
Along with the development of computer technology and network technology, people, in the time using computing machine, rely on more and more application program and carry out various work and activity, and thus, the requirement of people's application programs is also more and more higher.And want to use application program, and first need to carry out the installation of application program, also can be called software and install.
Software is installed general reference one group of software document of finishing the work of being related, working in coordination is reasonably placed in system, and completes linking with system, the process that allows software normally move.
Traditional mounting software set all running software files and all running software settings, all operating files and operation setting are all bundled in an installation procedure, when mounted, need decompressing files, decompress(ion) setting and carry out to arrange, just can bring into operation afterwards Deng package-in file is all installed, make the set-up time long, can not meet certain user's user demand, as high in experience is required, and lack patient user.For example, domestic a kind of MIS software, installation kit size is 400M, whole installation process needs consuming time more than 5 minutes.
In addition, existing mounting software also may exist in when exploitation need to be by the support of similar third party's installation kit such as Nsis manufacturer, and the property of can customize is poor; The reciprocal processes such as non-essential selection, confirmation are too many, and user do not understand that these are selected, mutual etc. problem.These problems all can cause the software set-up time tediously long, consume user's stand-by period excessively, thereby cannot bring satisfied experience for user.
At present, this traditional software installation process is tediously long, it is ambiguous to illustrate, user can only wait for after very long installation process completes could use software, has had a strong impact on user's experience.
In a word, need at present the urgent technical matters solving of those skilled in the art to be: in software installation process, how effectively to shorten period of reservation of number, promote user's experience.
Summary of the invention
Technical problems to be solved in this application are to provide a kind of software installation method and device, and to solve in existing software installation process, needing all files to install could normally use software to cause period of reservation of number long, the problem that experience is low.
In order to address the above problem, the application discloses a kind of software installation method, comprise: the All Files in software to be installed is divided into core document and non-core file, described core document is that described non-core file is the file for realizing passive Trigger Function for realizing the initiatively file of Trigger Function; Generate the sub-installation kit of described core document and the sub-installation kit of described non-core file; In the time that described software to be installed is installed, use the sub-installation kit of described core document described core document is installed and is moved described core document, the active Trigger Function of described software to be installed is normally moved.
Preferably, it is described in the time that described software to be installed is installed, use the sub-installation kit of described core document described core document to be installed and to be moved described core document, the step of the normal operation of active Trigger Function of described software to be installed is comprised: in the time starting described software to be installed is installed, only use the sub-installation kit of described core document described core document is installed and is moved described core document, the active Trigger Function of described software to be installed is normally moved.
Preferably, software installation method also comprises: while bringing into operation after described core document is installed, use the sub-installation kit of described non-core file that described non-core file is installed.
Preferably, software installation method also comprises: when after described core document installation, receive the instruction of the described non-core file of installation of input, use the sub-installation kit of described non-core file that described non-core file is installed.
Preferably, the step that the sub-installation kit of the described core document of described use is installed described core document comprises: the sub-installation kit that uses described core document, utilize multiple threads that described core document is installed, described multiple thread comprises main thread and logic thread, described main thread is for the installation initialization operation of described core document, and described logic thread is for carrying out the installation process of described core document.
Preferably, described multiple threads also comprise interface thread, and described interface thread represents for the installation interface of described core document.
Preferably, the sub-installation kit of the described core document of described use, the step of utilizing multiple threads that described core document is installed comprises: described logic thread starts described main thread, in the process starting at described main thread, send interface thread described in message informing and timer is set and starts to represent installation interface; Described interface thread uses the demonstration of installation progress in installation interface described in described Timer Controlling; In the time that described installation progress shows installation, described interface thread sends message to described logic thread, notifies core document installation described in described logic thread.
Preferably, the step of the described core document of described operation comprises: the dynamic link library (DLL) file described in dynamic load in core document, moves described core document.
Preferably,, use before the sub-installation kit of described core document installs described core document and move the step of described core document when installing when described software to be installed described, also comprise: installation environment and the installation path of setting described software to be installed; It is described in the time that described software to be installed is installed, the step that uses the sub-installation kit of described core document that described core document is installed and to move described core document comprises: in the time that described software to be installed is installed, under described installation environment and installation path, use the sub-installation kit of described core document described core document to be installed and to be moved described core document.
Preferably, described installation path comprises Default installation path and installation path for subsequent use; It is described in the time that described software to be installed is installed, under described installation environment and installation path, the step that uses the sub-installation kit of described core document that described core document is installed and to move described core document comprises: in the time that described software to be installed is installed, under described installation environment and described Default installation path, use the sub-installation kit of described core document described core document to be installed and to be moved described core document; If under described installation environment and described Default installation path, described core document failure is installed,, under described installation environment and described installation path for subsequent use, use the sub-installation kit of described core document described core document to be installed and to be moved described core document.
Preferably, software installation method also comprises: in the process of the described software to be installed of installation, receive the installation path of input, cancel mounted core document under the installation environment of described setting and installation path, under the installation path of described input, use the sub-installation kit of described core document described core document to be installed and to be moved described core document.
Preferably, described is after described software to be installed is installed and moved for realizing the initiatively core document of Trigger Function, the file that does not need the factor except described software startup operation to be installed to move; The described non-core file of realizing passive Trigger Function is after described software to be installed is installed and moved, the file need to the factor except described software startup to be installed operation moving.
In order to address the above problem, disclosed herein as well is a kind of software erecting device, comprise: divide module, for the All Files of software to be installed is divided into core document and non-core file, described core document is that described non-core file is the file for realizing passive Trigger Function for realizing the initiatively file of Trigger Function; Generation module, for generating the sub-installation kit of described core document and the sub-installation kit of described non-core file; Installation module, in the time that described software to be installed is installed, uses the sub-installation kit of described core document described core document is installed and is moved described core document, and the active Trigger Function of described software to be installed is normally moved.
Preferably, described installation module, for while starting described software to be installed is installed, only using the sub-installation kit of described core document described core document is installed and is moved described core document when described, normally moves the active Trigger Function of described software to be installed.
Preferably, software erecting device also comprises: continue installation module, in the time bringing into operation after described core document installation, use the sub-installation kit of described non-core file that described non-core file is installed; Or, for when after described core document installation, receive the instruction of the described non-core file of installation of input, use the sub-installation kit of described non-core file that described non-core file is installed.
Preferably, described installation module, for in the time that described software to be installed is installed, use the sub-installation kit of described core document, utilize multiple threads that described core document is installed, the active Trigger Function of described software to be installed is normally moved, wherein, described multiple thread comprises main thread and logic thread, and described main thread is for the installation initialization operation of described core document, and described logic thread is for carrying out the installation process of described core document.
Preferably, described multiple threads also comprise interface thread, and described interface thread represents for the installation interface of described core document.
Preferably, described installation module is using the sub-installation kit of described core document, while utilizing multiple threads that described core document is installed, start described main thread by described logic thread, in the process starting at described main thread, send interface thread described in message informing and timer is set and starts to represent installation interface; Described interface thread uses the demonstration of installation progress in installation interface described in described Timer Controlling; In the time that described installation progress shows installation, described interface thread sends message to described logic thread, notifies core document installation described in described logic thread.
Preferably, described installation module, in the time of the described core document of operation, by the dynamic link library (DLL) file in core document described in dynamic load, moves described core document.
Preferably, software erecting device also comprises: setting module, for using at described installation module before the sub-installation kit of described core document installs described core document and move described core document, set installation environment and the installation path of described software to be installed; Described installation module is in the time installing described software to be installed, under described installation environment and installation path, use the sub-installation kit of described core document described core document is installed and is moved described core document, the active Trigger Function of described software to be installed is normally moved.
Preferably, described installation path comprises Default installation path and installation path for subsequent use; Described installation module, in the time that described software to be installed is installed, under described installation environment and described Default installation path, uses the sub-installation kit of described core document described core document to be installed and to be moved described core document; If under described installation environment and described Default installation path, described core document failure is installed, under described installation environment and described installation path for subsequent use, use the sub-installation kit of described core document described core document is installed and is moved described core document, the active Trigger Function of described software to be installed is normally moved.
Preferably, software erecting device also comprises: receiver module, for the process of described software to be installed is installed at described installation module, receive the installation path of input, cancel mounted core document under the installation environment of described setting and installation path, and the installation path of described input is sent to described installation module, by described installation module under the installation path of described input, use the sub-installation kit of described core document described core document is installed and is moved described core document, the active Trigger Function of described software to be installed is normally moved.
Preferably, described is after described software to be installed is installed and moved for realizing the initiatively core document of Trigger Function, the file that does not need the factor except described software startup operation to be installed to move; The described non-core file of realizing passive Trigger Function is after described software to be installed is installed and moved, the file need to the factor except described software startup to be installed operation moving.
Compared with prior art, the application has the following advantages:
The application's software mount scheme is by dividing according to active and passive Trigger Function the file being mounted in software, specify core document and non-core file, when mounted, core document operation are installed, necessary file required during by running software is reduced to minimum.Like this, user gets final product normal operating software in the situation that core document has been installed, and carries out alternately, using its basic function with software, and in this course, then continue on system backstage non-core file is installed or in the time that user needs, is sent instruction non-core file is installed.Because core document ratio in whole software is less, install fast, wait for thereby effectively reduced user the time that software is installed; In the time that non-core file is installed, user can use core document operating software, and needn't install by anxious waiting All Files, has greatly improved user's experience.For example, in the time that 360 browser is installed, the file of active Trigger Function of 360 browsers will be realized, first webpage loads as completed and the master program file 360se.exe file of 360 browsers of Presentation Function etc. install as core document, after installation, user can use main interface and the address communication of setting etc. of 360 browsers, and when this main interface display is for user, continue to install the non-core file of 360 browsers on system backstage, upgrade the file of function etc. as realized, but this process may be by user awareness, the subjective sensation software of user installation rate has been accelerated.
By the application's technical scheme, efficiently solve in existing software installation process, needing all files to install could normally use software to cause period of reservation of number long, the problem that experience is low, reach and shortened the time that user waits for that software is installed, improved the effect of user's experience.
Brief description of the drawings
Fig. 1 is according to the flow chart of steps of a kind of software installation method of the embodiment of the present application one;
Fig. 2 is according to the flow chart of steps of a kind of software installation method of the embodiment of the present application two;
Fig. 3 is according to the flow chart of steps of a kind of software installation method of the embodiment of the present application three;
Fig. 4 is according to the structured flowchart of a kind of software erecting device of the embodiment of the present application four.
Embodiment
For the above-mentioned purpose, the feature and advantage that make the application can become apparent more, below in conjunction with the drawings and specific embodiments, the application is described in further detail.
Embodiment mono-
With reference to Fig. 1, show according to the flow chart of steps of a kind of software installation method of the embodiment of the present application one.
The software installation method of the present embodiment comprises the following steps:
Step S102: the All Files in software to be installed is divided into core document and non-core file.
Wherein, core document is for realizing the initiatively file of Trigger Function, for example, these files can be after software to be installed is installed and moved, the file that does not need the factor except software startup operation to be installed to move, can start without any need for user's input the file of carrying out as after installing at software, taking 360 browsers as example, its core document can comprise that webpage loads and the master program file 360se.exe file of 360 browsers of Presentation Function; Non-core file is the file for realizing passive Trigger Function, for example, these files can be after software to be installed is installed and moved, the file need to the factor except software startup to be installed operation moving, after installing at software, needing further input or definite could execution of user, can be execution download function or the file of upgrade function etc. of general browser or software.
Step S104: generate the sub-installation kit of core document and the sub-installation kit of non-core file.
Having divided after core document and non-core file, two parts file is generated respectively to different installation kits, i.e. the sub-installation kit of core document and the sub-installation kit of non-core file, two sub-installation kits have formed the installation kit of whole software to be installed.Wherein, the sub-installation kit of non-core file can be also multiple with needing Further Division according to certain rule.
Step S106: in the time that software to be installed is installed, use the sub-installation kit of core document core document is installed and is moved core document, the active Trigger Function of software to be installed is normally moved.
Preferably, in the time starting software to be installed is installed, only use the sub-installation kit of core document core document is installed and is moved core document, the active Trigger Function of software to be installed is normally moved.
In the time starting to install, core document is only installed, but not core document can be in subsequent installation.Installed after core document, the related interfaces of software and/or interrelated logic i.e. installation, and software can basic function mode normally move, and realizes its initiatively Trigger Function, with user interactions, thereby makes that user is subjective thinks software installation substantially.Now, can be again continue on backstage non-core file is installed and not by user awareness, and, do not affect the normal use of the active Trigger Function of the software that operation core document realizes yet, make user's visual sense installation rate fast, experience is good.Certainly, the installation of non-core file also can perception with user but is not affected the mode of running software, or, input by user the form that non-core file instruction is installed and install follow-up.
Certainly, those skilled in the art, in the time that software to be installed is installed, can also adopt other similar type, to improve installation rate.As, can start simultaneously or successively and core document is installed and two processes of non-core file are installed, but after using the process that core document is installed to install core document with, move the form of core document etc., realize speed-raising be installed.
By the present embodiment, the file being mounted in software is divided according to active and passive Trigger Function, specify core document and non-core file, when mounted, first core document operation are installed, necessary file required during by running software is reduced to minimum.Like this, user gets final product operating software core document has been installed in situation, carry out alternately, using its basic function with software, and in this course, then continue on system backstage non-core file is installed or in the time that user needs, is sent instruction non-core file is installed.Core document ratio in whole software is less, installs fast, waits for thereby effectively reduced user the time that software is installed; In the time that non-core file is installed, user can use core document operating software, and needn't install by anxious waiting All Files, has greatly improved user's experience.By the application's technical scheme, efficiently solve in existing software installation process, needing all files to install could normally use software to cause period of reservation of number long, the problem that experience is low, reach and shortened the time that user waits for that software is installed, improved the effect of user's experience.
Embodiment bis-
With reference to Fig. 2, show according to the flow chart of steps of a kind of software installation method of the embodiment of the present application two.
The software installation method of the present embodiment comprises the following steps:
Step S202: the core document when program of clearly distinguishing is moved for the first time and non-core file.
That is, after installing according to software, when program is moved for the first time, what file was carried out is active Trigger Function or passive Trigger Function, and the All Files that software to be installed is comprised is divided into necessary core document and non-core file.
Taking 360 bodyguards as example, its core document can comprise bodyguard's main interface; And bodyguard's navigation area has several large functions, the displaying content of clicking after each function below can change, and the function (mainly referring to displaying content area herein) just showing after starting so long as not needs, can serve as non-core file.
Step S204: the ratio that as far as possible ensures core document and non-core file is enough large.
Namely ensure core document negligible amounts from running software angle, this ratio can be divided and control according to software actual conditions by those skilled in the art.Core document is fewer, and the speed of installation will be faster, and after installing, program startup also can be faster.As a rule, the ratio of core document and non-core file should remain on 4:6 and following, preferably, is 3:7.
Step S206: use higher compression ratio technique that two block files are compressed in installation kit.
Because the installation kit main consumption consuming time under current objective hardware condition is in the transfer efficiency of file from installation kit to destination, therefore those skilled in the art can adopt the suitable technology with higher ratio of compression, as zip or 7z technology, core document and this two block file of non-core file are compressed respectively, and then consist of an installation kit.
Step S208: carry out installation, the release of core document bag and directly executive routine operation, then discharge non-core file bag.
In the time carrying out software installation, first use the compressed package of core document to carry out the installation of core document, after installing, directly operation, makes user can use the function of core document, then, then carries out the installation of non-core file.
In the present embodiment, installing after 360 bodyguard's core documents, move 360 bodyguards and interrelated logic, show the 360 main interfaces of bodyguard, then, the more non-core file that carries out 360 bodyguards installs, as the non-core file of function of the navigation area of realizing bodyguard is installed.
Step S210: can automatically go again to load non-core file after program operation and complete correlation function.
After program operation, on the one hand, installation procedure can bring into operation and can continue voluntarily to install non-core file in program; On the other hand, installation procedure also can be given user by the installation of non-core file, and the instruction of the non-core file of installation of inputting by user is determined the opportunity that non-core file is installed, and then non-core file is installed.By different follow-up non-core file mounting meanss, for user installation software provides more more options, also make software install more flexible, further promote user's experience.
By the present embodiment, the file in software to be installed is carried out to the division of core document and non-core file, in the time that software is installed, core document operation are first installed; And the ratio of control core file in whole software to be installed; Use higher compression ratio technique to compress core document and non-core file, thereby the size of the transfer efficiency while effectively having ensured software installation and necessary core document, effectively improve software installation rate, shortened period of reservation of number, improved user's experience.
Embodiment tri-
With reference to Fig. 3, show according to the flow chart of steps of a kind of software installation method of the embodiment of the present application three.
The software installation method of the present embodiment comprises the following steps:
Step S302: establish the necessary operational scheme of good program.
This step is before Software package to be installed, and by this software engineering, personnel establish.Comprise: determine the functional characteristic that program need to possess, remove the function of unnecessary repetition; Clearly divide active and passive Trigger Function characteristic; The structure of the above two class functional characteristics of strict implement reduces quoting and dependence etc. other modules as far as possible.
Step S304: divide core document and non-core file, generate installation kit.
In this step, what after installing according to software, realize is Trigger Function or passive Trigger Function is core document and non-core file by Divide File initiatively.With the example that is installed as of 360 browsers, realize the initiatively file of Trigger Function type, the core document that 360 browsers are namely installed can comprise: 360se.exe (master program file, completing webpage loads, Presentation Function), Favorites.dll (collection module, because needing to show that the collection that user add is crossed is incorporated into core bag after starting), Safecentral.dll (safe traffic lights module, because of needs real-time guard Internet Security, so just operation need to start time), Pluginbar.dll (plug-in unit hurdle, because needing to show that the plug-in unit that user add is crossed is incorporated into core bag after starting) etc., and realize the file of passive Trigger Function type, the non-core file that 360 browsers are namely installed can comprise: Download.dll (download module, as user does not download without starting immediately), Seup.exe (program upgrade module, update time is for once a day, therefore be divided into non-core bag) etc.
Dividing after core document and non-core file, generate installation kit.Installation kit comprises the sub-installation kit of core document and the sub-installation kit of non-core file, wherein, is core document type by the functional characteristic and the Divide File that initiatively trigger, generates the sub-installation kit of core document; Be non-core file type by the functional characteristic of passive triggering and Divide File, generate the sub-installation kit of non-core file.
Step S306: the supposition basis of establishing running software condition.
Comprise: the path that need to be installed to when setting software normally moves; The system environments that need to use when setting software normally moves, as disk can write, has enough remaining spaces etc.
Set installation environment and installation path, determine that a collection of most of user can not remove the item arranging, acquiescence is carried out, software to be installed can directly be installed under the installation environment of setting and installation path, need not user input, reduced the mutual of unnecessary software to be installed and user, shortened the set-up time, improve installation effectiveness, promoted user's experience.
Preferably, can also set an installation path for subsequent use, to while installing unsuccessfully, use this installation path for subsequent use, mounting software under this installation path for subsequent use under the Default installation path of setting.By installation path for subsequent use, ensure that software can quick and precisely install, avoid to a certain extent software to install unsuccessfully.
It should be noted that, the execution of step S306 and step S304 is order in no particular order, also, can first divide core document and non-core file, and then generates installation kit, and then sets installation environment and installation path; Or, also can first set installation environment and installation path, and then divide core document and non-core file, and then generate installation kit.
In addition, this step is optional step, in actual applications, also can provide to user interface or the interface of input installation path, inputs self-defined installation path by user.
Step S308: carry out and discharge logic based on supposition basis.
,, after operation installation kit, immediately discharge core document according to set before installation environment and installation path.
It should be noted that, in installation process, if User Defined installation path needs the file discharging before cancelling.If the set installation path release failure of user first, need to write installation path for subsequent use, if all failures point out user to install.By the interface of the self-defined installation path of input is provided to user, make user have the chance of flexible selection installation path, but compare and the installation path of setting, this kind of mode will increase the software set-up time.
Step S310: realize installation effect based on discharging logic operation program.
Comprise: start-up routine immediately, for user; Meanwhile, user can use initiatively Trigger Function, the function (for example, homepage needs to load, so must possess webpage value-added tax function must start time) also realizing by core document is installed; Meanwhile, backstage continues to discharge non-core file, for other passive Trigger Functions of user, and the function (for example downloading) realizing by non-core file is installed.
In the time of specific implementation, installation procedure has been quoted multithreading exploitation, uses multithreading that core document and non-core file are installed.
The multithreading that installation procedure uses comprises: main thread and logic thread, and wherein, main thread is for the installation initialization operation of core document and/or non-core file, and logic thread is for carrying out the installation process of core document and/or non-core file.Preferably, multithreading can also comprise the interface thread representing for the installation interface of core document and/or non-core file.By multithreading, software installation rate and efficiency are further improved.
In the present embodiment, installation procedure has been safeguarded three threads: main thread, interface thread, logic thread.Main thread is responsible for the initialization operation of installation procedure, and interface thread is responsible for representing of UI (user interface, i.e. installation interface), and logic thread is responsible for the execution of installation process.
When core document is installed, logic thread calls CreateProcess and starts main thread, in the start-up course of main thread, sends message informing interface thread timer is set, and start working, and represents installation interface.The display degree of the installation progress in Timer Controlling installation interface taking 360 browsers as example, ensures the even acceleration effect processing of progress bar within a second.When the installation of installation progress displaing core file, interface thread passes through to send message, the installation of notification logic threaded core file, and logic thread completes follow-up tailing in work.By interface thread, can make user understand the installation progress of software, strengthen interface and use sensation, promote user's experience.Certainly, in actual applications, also can not use interface thread, not represent installation interface, in the time of core document installation, send message informing logic thread by main thread, or automatically know etc. that by logic thread mode knows core document installation information.
After core document installation, load the corresponding module of installing and bring into operation.Program adopts dynamic load mode to load DLL (dynamic link library) module, by LoadLibrary function, the executable module (being DLL module) of specifying is mapped to the address space of calling process.Call the address that GetProcAddress function obtains relevant derivative function in this dynamic link library, the function that uses this module to realize by call by location.Under normal circumstances, in program operation process just in the time that certain condition meets just needs access certain function in certain DLL, in other situation, do not need to access the function in these DLL.Adopt dynamic load mode, while needs, DLL module is just loaded in internal memory, and is mapped in the address space of calling process.Solved in program start-up course, the module that the disposable loading of the internal memory of program process is too much, is the too much address space of each module assignment, serious waste system resource, cause program long problem start-up time.
After core document installation, occur that program interface and the user of the software of installing produces alternately, but now on backstage, installation procedure does not exit, until all non-core APMB packages discharge complete.In the present embodiment, after core document installation, the release of non-core file adopts the mode having been triggered by installation procedure oneself, discharges followed by core document.It should be noted that, the installation of non-core file is also suitable for above-mentioned multithreading, and the load operating of non-core file is applicable to above-mentioned dynamic load DLL technology too.
By the present embodiment, to the installation resource processing of classifying, can solve installation procedure initialization time long, disposable releasing document too much, the slack problem of installation progress, reaches the effect of Fast Installation.The software installation method of the present embodiment makes the structural condition of program operation comparatively rigorous, and the structure comparatively loose from traditional program is different, and necessary file when as best one can program operation has reduced to minimum.360 browsers to be installed as example, by the present embodiment, can realize the installation of software within 1 second time.
In addition, in installation process, may exist non-core file to load failed problem, now only need to restart and can solve.
Embodiment tetra-
With reference to Fig. 4, show according to the structured flowchart of a kind of software erecting device of the embodiment of the present application four.
The software erecting device of the present embodiment comprises: divide module 402, for the All Files of software to be installed is divided into core document and non-core file, wherein, core document is that non-core file is the file for realizing passive Trigger Function for realizing the initiatively file of Trigger Function; Generation module 404, for generating the sub-installation kit of core document and the sub-installation kit of non-core file; Installation module 408, in the time that described software to be installed is installed, uses the sub-installation kit of core document core document is installed and is moved core document, and the active Trigger Function of software to be installed is normally moved.
Preferably, installation module 408, in the time starting described software to be installed is installed, only uses the sub-installation kit of core document core document is installed and is moved core document, and the active Trigger Function of software to be installed is normally moved.
Preferably, the software erecting device of the present embodiment also comprises: continue installation module 410, in the time bringing into operation after core document installation, use the sub-installation kit of non-core file that non-core file is installed; Or, when after core document installation, receive the instruction of the non-core file of installation of input, use the sub-installation kit of non-core file that non-core file is installed.
Preferably, installation module 408, in the time that described software to be installed is installed, uses the sub-installation kit of core document, utilizes multiple threads that core document is installed, and moves core document, and the active Trigger Function of software to be installed is normally moved.
Preferably, multiple threads comprise main thread and logic thread, and wherein, main thread is for the installation initialization operation of core document, and logic thread is for carrying out the installation process of core document.
Preferably, multiple threads also comprise interface thread, and interface thread represents for the installation interface of core document.
Preferably, installation module 408 is using the sub-installation kit of core document, while utilizing multiple threads that core document is installed, starts main thread by logic thread, in the process starting at main thread, send message informing interface thread and timer is set and starts to represent installation interface; Interface thread uses the demonstration of installation progress in Timer Controlling installation interface; In the time that installation progress shows installation, interface thread sends message to logic thread, the installation of notification logic threaded core file.
Preferably, installation module 408, in the time of operation core document, by the dll file in dynamic load core document, moves core document.
Preferably, the software erecting device of the present embodiment also comprises: setting module 406, before using the sub-installation kit installation core document of core document at installation module 408 and moving core document, set installation environment and the installation path of software to be installed; Installation module 408, in the time that software to be installed is installed, under the installation environment of setting and installation path, uses the sub-installation kit of core document core document is installed and is moved core document, and the active Trigger Function of software to be installed is normally moved.The execution of setting module 406 and division module 402 order in no particular order.
Preferably, the installation path that setting module 406 is set comprises Default installation path and installation path for subsequent use; Installation module 408, in the time that software to be installed is installed, under installation environment and Default installation path, uses the sub-installation kit of core document core document is installed and is moved core document; If under installation environment and Default installation path, the failure of installation core document,, under installation environment and installation path for subsequent use, use the sub-installation kit of core document core document is installed and is moved core document, the active Trigger Function of software to be installed is normally moved.
Preferably, the software erecting device of the present embodiment also comprises: receiver module (not shown), for the process of software to be installed being installed at installation module 408, receive the installation path of input, cancel mounted core document under the installation environment set at setting module 406 and installation path, and the installation path of input is sent to installation module 408, by installation module 408 input installation path under, use the sub-installation kit of core document core document is installed and is moved core document, the active Trigger Function of software to be installed is normally moved.
Preferably, be after software to be installed is installed and moved for realizing the initiatively core document of Trigger Function, the file that does not need the factor of removing software startup operation to be installed to move, if do not needed user to input the file that can move; The non-core file of realizing passive Trigger Function is after software to be installed is installed and moved, the file of factor operation that need to be except software startup to be installed operation, and as needs, user inputs, the file moving according to user's input.
The software erecting device of the present embodiment is used for realizing the corresponding software installation method of preceding method embodiment, and has the beneficial effect of corresponding software installation method, does not repeat them here.
The application is reruned thinking from the elder generation of conventional mounting bag to system plug file is restructured as new-type installation thinking, fills in less file to system as far as possible and loses no time to move, more slowly fill in file.By multiple software mount schemes of the application, can reach following effect:
(1) interactive interface close friend: in the time that exploitation is mounted software, can enrich, represent exquisite interactive interface by self-defining control.When software is installed, can provide the support to these controls and interactive interface to user, thereby bring better experience while being user installation software.
(2) development tool is flexible: the SDK that needn't provide by third party manufacturer, routine NSIS, can use the senior language development that becomes such as C++ or C# with program homology.
(3) maintainable, stability is strong: existing installation kit technology is mainly constructed based on script, when after program size or the certain numerous and jumbled degree of logic iteration arrival, good stability cannot be well safeguarded and show, by the present embodiment, this type of risk can be evaded.
(4) provide good user to experience: traditional installation kit is consuming time extremely long, has seriously hindered user's software application enthusiasm.Use the application's technical scheme, can provide good user to experience, effectively promote the use enthusiasm of user to software.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, and what each embodiment stressed is and the difference of other embodiment, between each embodiment identical similar part mutually referring to.For device embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part is referring to the part explanation of embodiment of the method.
A kind of software installation method and the device that above the application are provided are described in detail, applied principle and the embodiment of specific case to the application herein and set forth, the explanation of above embodiment is just for helping to understand the application's method and core concept thereof; , for one of ordinary skill in the art, according to the application's thought, all will change in specific embodiments and applications, in sum, this description should not be construed as the restriction to the application meanwhile.

Claims (19)

1. a software installation method, it comprises:
Core document and non-core file when clearly distinguishing software to be installed and moving for the first time, wherein, the function just showing after starting is as core document, will not be that the function that just shows after needing to start is as non-core file;
Respectively described core document is become to compressed package with described non-core compressing file;
In the time that described software to be installed is installed, use the compressed package of core document to carry out core document installation and move described core document.
2. method according to claim 1, wherein, also comprises:
While bringing into operation after described core document is installed, use the compressed package of described non-core file to carry out non-core file installation.
3. method according to claim 1, wherein, also comprises:
When after described core document installation, receive the instruction of the described non-core file of installation of input, use the compressed package of described non-core file to carry out non-core file installation.
4. according to the method in any one of claims 1 to 3, wherein, the compressed package of use core document carries out core document installation and comprises:
Use the compressed package of described core document, utilize multiple threads that described core document is installed, described multiple thread comprises main thread and logic thread, and described main thread is for the installation initialization operation of described core document, and described logic thread is for carrying out the installation process of described core document.
5. method according to claim 4, wherein, described multiple threads also comprise interface thread, described interface thread represents for the installation interface of described core document.
6. method according to claim 5, wherein, the compressed package of the described core document of described use, the step of utilizing multiple threads that described core document is installed comprises:
Described logic thread starts described main thread, in the process starting, sends interface thread described in message informing and timer is set and starts to represent installation interface at described main thread;
Described interface thread uses the demonstration of installation progress in installation interface described in described Timer Controlling;
In the time that described installation progress shows installation, described interface thread sends message to described logic thread, notifies core document installation described in described logic thread.
7. method according to claim 1, wherein, the step of the described core document of described operation comprises:
Dynamic link library (DLL) file described in dynamic load in core document, moves described core document.
8. method according to claim 1, wherein, in the time that described software to be installed is installed, before the compressed package of use core document carries out core document installation and moves described core document step, also comprise: installation environment and the installation path of setting described software to be installed;
It is described in the time that described software to be installed is installed, the step that uses the compressed package of core document to carry out core document installation and to move described core document comprises: in the time that described software to be installed is installed, under described installation environment and installation path, use the compressed package of described core document described core document to be installed and to be moved described core document.
9. method according to claim 8, wherein, described installation path comprises Default installation path and installation path for subsequent use;
It is described in the time that described software to be installed is installed, under described installation environment and installation path, the step that uses the compressed package of core document to carry out core document installation and to move described core document comprises: in the time that described software to be installed is installed, under described installation environment and described Default installation path, use the compressed package of described core document described core document to be installed and to be moved described core document; If under described installation environment and described Default installation path, described core document failure is installed,, under described installation environment and described installation path for subsequent use, use the compressed package of described core document described core document to be installed and to be moved described core document.
10. a computing equipment, it comprises:
Storer;
Processor, it is coupled to described storer and is suitable for carrying out method as claimed in any one of claims 1-9 wherein.
11. 1 kinds of software installation methods, it comprises:
Functional characteristic and Divide File that active in software to be installed is triggered are core document;
Be non-core file by the functional characteristic of the passive triggering in software to be installed and Divide File;
Generate the sub-installation kit of described core document and the sub-installation kit of described non-core file;
Establish the supposition basis of running software condition to be installed;
Carry out and discharge logic based on described supposition basis;
Based on described release logic operation software to be installed.
12. methods according to claim 1, wherein, the supposition basis of establishing running software condition to be installed comprises:
The Default installation path that need to be installed to when setting software normally moves;
The system environments that need to use when setting software normally moves.
13. methods according to claim 12, wherein, the supposition basis of establishing running software condition to be installed also comprises:
When setting installation path for subsequent use to installing unsuccessfully under the Default installation path of setting, mounting software under described installation path for subsequent use.
14. according to claim 12 to the method described in any one in 13, wherein, carries out and discharges logic and comprise based on described supposition basis:
Discharge core document according to the Default installation path setting and installation environment.
15. methods according to claim 14, wherein, comprise based on described release logic operation software to be installed:
The function realizing by core document is installed, backstage is continued to discharge non-core file and is used other passive Trigger Function for user.
16. methods according to claim 14, wherein, discharge core document and comprise:
Use the sub-installation kit of described core document, utilize multiple threads that described core document is installed, described multiple thread comprises main thread and logic thread, and described main thread is for the installation initialization operation of described core document, and described logic thread is for carrying out the installation process of described core document.
17. methods according to claim 16, wherein, described multiple threads also comprise interface thread, described interface thread represents for the installation interface of described core document.
18. methods according to claim 16, wherein, the sub-installation kit of the described core document of described use, the step of utilizing multiple threads that described core document is installed comprises:
Described logic thread starts described main thread, in the process starting, sends interface thread described in message informing and timer is set and starts to represent installation interface at described main thread;
Described interface thread uses the demonstration of installation progress in installation interface described in described Timer Controlling;
In the time that described installation progress shows installation, described interface thread sends message to described logic thread, notifies core document installation described in described logic thread.
19. 1 kinds of computing equipments, it comprises:
Storer;
Processor, it is coupled to described storer and is suitable for carrying out the method as described in any one in claim 11 to 18.
CN201410406742.4A 2011-12-12 2011-12-12 Software installation method and computing device Active CN104166572B (en)

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 true CN104166572A (en) 2014-11-26
CN104166572B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107122205A (en) * 2017-04-11 2017-09-01 上海众开信息科技有限公司 The set-up time of installation procedure determines method and device

Citations (3)

* Cited by examiner, † Cited by third party
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
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

Patent Citations (3)

* Cited by examiner, † Cited by third party
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
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

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107122205A (en) * 2017-04-11 2017-09-01 上海众开信息科技有限公司 The set-up time of installation procedure determines method and device
CN107122205B (en) * 2017-04-11 2021-01-29 深圳市客一客信息科技有限公司 Installation time determining method and device for installation program

Also Published As

Publication number Publication date
CN104166572B (en) 2017-12-19

Similar Documents

Publication Publication Date Title
CN102426533B (en) Method and device for installing software
CN102591724B (en) Method and device for information interaction
CN104536899A (en) Software deploying and maintaining method based on intelligent cluster
CN105630543A (en) Application cold start acceleration method and apparatus
CN110704185B (en) Cluster system fragmentation timing task scheduling method and cluster system
CN104821954A (en) Cross-platform remote procedure call method
CN110750343B (en) Cluster system timing task scheduling control method and cluster system
CN104166573A (en) Software installation method and device
CN105786839A (en) Application data acquisition method and apparatus
CN102945193B (en) A kind of restoration methods and electronic equipment of operation data
KR20210105378A (en) How the programming platform's user code works and the platform, node, device, medium
EP4033342A2 (en) Method and apparatus for controlling interface focus on interface, electronic device and storage medium
CN104598267A (en) Application calling method and device
CN110659131A (en) Task processing method, electronic device, computer device, and storage medium
CN110109684A (en) Block chain node administration agent services installation method, electronic device and storage medium
CN113254217A (en) Service message processing method and device and electronic equipment
CN108614697B (en) Background Dex compiling control method and device
CN104166572A (en) Software installation method and calculation device
CN110012003B (en) Cloud application screen capturing method and device
CN103561417A (en) Method for improving response quality of mobile client products to user request
CN108009030B (en) Communication method and device and computing equipment
CN108632069B (en) Client configuration method, system and related equipment
CN102594587B (en) Embedded WEB debugging and testing maintenance method and debugging and testing maintenance system
CN115543793A (en) System deployment method and device of target server and operation and maintenance center station
CN110737520B (en) Method for dispatching and controlling timing task by cluster system and cluster system

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
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.