Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention clearer, below in conjunction with the accompanying drawing in the embodiment of the invention, technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not paying the every other embodiment that is obtained under the creative work prerequisite.
Fig. 1 is the process flow diagram of the virtual installation method of application program that the embodiment of the invention provided, and as shown in Figure 1, the method for present embodiment can comprise:
Step 100: when the target volume of application program preparation installation is different from the place of host operating system volume own, obtains application program path, current place, source and target volume path are installed;
Can be by the client software of a virtual installation of application program be provided to the user, if the user selects virtual installation, just start this client software, after user's select target volume and installation source, start the flow process of the virtual installation of application program of the embodiment of the invention by client software.As long as when the target volume (to call first target volume in the following text) of application program preparation installation is different from host service function operating system place volume, then start the virtual installation method of application program of the embodiment of the invention;
The application program of mentioning in the embodiment of the invention source of installing can be the main flow software installation kit that host operating system is supported, with Mac OS operating system is example, can be the main flow software installation kit that Mac OS operating system is supported, as the software package of forms such as pkg, mpkg;
Step 102: when having the file directory tree that presets on first target volume, load the application program installation procedure of host operating system;
Wherein, can be before the virtual installation method of application program is carried out, on first target volume, create the file directory tree; When not having the file directory tree that presets on first target volume, also can be in the virtual installation process of application program, behind the establishment file directory tree, load the application program installation procedure of host operating system;
First target volume that application program is installed should be the volume that is different from the place of host operating system own, can be movable storage device usually, as USB flash disk, portable hard drive etc.;
In order to carry out file management, on first target volume, need to set up the file directory tree, by the method that the embodiment of the invention provided, finally in the file directory tree, find the application program installation site; Virtualization applications program and data will be stored in this bibliographic structure, and application program will change file directory place file system after installing, as adding catalogue and file etc.;
In the embodiment of the invention, in the application program virtual installation process,, will directly load the application installation procedure of host operating system if when in first target volume, having had document directory structure;
Step 104: when the host operating system executive utility is installed, the installation path of application program is redirected in the file directory tree of first target volume;
The method of the virtual installation of a kind of application program is provided by the embodiment of the invention, the complex large-sized application program that originally can not change the installation site on the host operating system platform can be mounted on the target volume that the user selectes, for example: portable hard drive etc., the user can be installed to a plurality of application programs on the same target volume, shares a file directory tree; When the user selects move media as the target volume of the virtual installation of application program, along with moving of medium, application program and data together with the time move, for the user provides a kind of method that ambulant software is installed and disposed that has.
The embodiment of the invention does not limit this scheme applied operating system Platform Type, and the embodiment of the invention only illustrates as an example with Mac OS operating system; Provide the process flow diagram of the virtual installation method of alternative application program as Fig. 2 for the embodiment of the invention, the embodiment of the invention is applied to comprise in the scene of Mac OS operating system platform:
Step 201: when first target volume of application program preparation installation is different from Mac OS operating system place volume, obtains application program the path, current place, source and the first target volume path are installed;
Step 202: judge whether there is the file directory tree that presets on first target volume, if not, then execution in step 203; If, then direct execution in step 204;
Before being installed in application program on first target volume or in the installation process, user's experience does not change in the application program operational process in order to allow, the invention process regular meeting makes up the relevant catalogue of application program installation and operation in the directory tree of first target volume, for example: make up with Mac OS system place volume in the similar or identical bibliographic structure of directory tree structure, make the installation directory of application program on first target volume similar or identical with the installation directory of rolling up at Mac OS system place;
Step 203: create the file directory tree;
Step 204: the application program installation procedure that loads Mac OS system;
Step 205: the process that the application program of monitoring Mac OS operating system is installed, the path that relates to the operation of file and file directory in the application program installation process with Mac OS operating system are redirected in the file directory tree on first target volume;
Wherein, when transferring resource from the system library file that described host operating system carries, the path of transferring resource does not change.In the process that application program is installed, relate to the operation of file and file directory, can comprise: document creation, open, obtain file attribute, the revised file attribute, directory creating is revised directory attribute, change file and directory name or the like operation;
In concrete the enforcement,, can rewrite the parameter that relates to file or file directory path in the operation to the operation of intercepting that relates to file and file directory;
In the embodiment of the invention, in the application program installation process of monitoring Mac OS operating system, can relate to the operation of file and file directory, will tackle these operations, can be redirected by the path parameter of mapping algorithm tackle operation, wherein, pass through mapping algorithm, to originally will be mapped to the path that the file on the Mac OS system place volume and file directory (except the system library file that Mac OS system itself carries) are operated in the Mac OS OS system X installation procedure among the file directory of Virtual File System of first target volume, application program is mounted in the file directory tree on first target volume the most at last;
Wherein, the path that relates to the operation of file and file directory in the application program installation procedure operational process with Mac OS system is redirected in the file directory on described first target volume, can in the file directory of first target volume, find the installation site of application program by mapping algorithm, file directory tree on constructed first target volume, original associative directory is rolled up relatively in its catalogue and Mac OS system place, has very big similarity, so that when relating to the position of file and file directory during application program installed and being redirected, on target volume, can find a similar position, for example, should be in system disk C:/Applications/Adobe position, after the mapping, become on the first target volume H dish/the Volumes/H/Applications/Adobe position; But the directory tree on first target volume will be avoided too much redundancy simultaneously, and the demand that can satisfy installation and operation gets final product;
Wherein, when the position that relates to file and file directory in the application program installation is redirected, on target volume, can find the method for a similar position, can safeguard the file on the file and the file directory and first target volume and the mapping relations between the file directory in the volume of host operating system place, when carrying out redirect operation, can pass through this mapping relations table, will originally will be mapped among the file directory of Virtual File System of first target volume the path that the file on the Mac OS system place volume and file directory (except the system library file that Mac OS system itself carries) are operated; Also can be directly with the same or analogous file directory tree of the document directory structure on file system setting on first target volume and the host operating system place volume, so that can be when being redirected by directly in first target volume, finding corresponding position; The embodiment of the invention provides a device of realizing the virtual installation of application program on Mac OS operating system platform for the user, the complex large-sized application program that originally can not change the installation site on the Mac OS operating system platform can be mounted on the target volume that the user selectes, and, with application program is installed in Mac OS operating system place volume on compare, on user experience, almost do not change.
On the basis of the virtual installation method that the embodiment of the invention provided, referring to Fig. 3, the embodiment of the invention also provides the method for the virtual loading of a kind of application program, still with the example that is applied as on the Mac OS operating system platform, realization moves the application program on first target volume, and this method comprises:
Step 300: obtain the application name on first target volume and the path of user's appointment, wherein, first target volume is different from Mac OS operating system place volume;
The embodiment of the invention is on the basis of the virtual installation method of application program that previous embodiment provided, the method of the virtual loading of a kind of application program is provided, can be by offering the client of a virtual operation of application program of user, when the user clicks corresponding program in the virtual running client of this application program, the direct flow process of the virtual operation of application program of the startup embodiment of the invention just;
Step 302: load the application program of installing on first target volume;
Before step 302, can also comprise: check the state and the integrality of Virtual File System, when the file system of described target volume does not satisfy the application program mounting condition;
Wherein, can check that the scope of examination can comprise to the directory tree of Virtual File System and the integrality of include file before loading: whether file has disappearance, situations such as remaining space size; Send a warning message, can comprise: inform the user installation failure, information such as abnormal conditions.
Step 304: when Mac OS operating system application programs loads, the path of searching of the loading of application program and resource requirement in service is redirected in the file directory tree on first target volume;
Wherein, step 304 specifically can be by the following method: the monitoring application program operation, when needs when to file and file directory tree, transferring resource, with the former file directory tree that should be redirected to from the path that Mac OS operating system place volume is transferred resource on first target volume, so that the application program on first target volume is moved on Mac OS operating system platform;
Wherein, can be redirected the path of tackle operation by mapping algorithm, wherein, pass through mapping algorithm, when application program is moved, should seek and the path of the file of operation and the resource the file directory tree be mapped in the file directory tree of Virtual File System of first target volume, wherein from Mac OS operating system place volume former, when transferring resource from the system library file that described host operating system carries, the path of transferring resource does not change.
On Mac OS operating system platform, realized the method that application program loads by the embodiment of the invention provides, and be implemented on the Mac OS operating system platform loading and operation, and do not influence user experience the application program on first target volume.
Referring to Fig. 4, the embodiment of the invention provides the device of the virtual installation of a kind of application program, comprising:
First acquiring unit 40 is used for obtaining application program path, current place, source and target volume path being installed when the target volume of application program preparation installation is different from the place of host operating system volume own;
As long as when the target volume (to call first target volume in the following text) of application program preparation installation is different from host operating system place volume, then start the virtual installation method of application program of the embodiment of the invention;
It can be the main flow software installation kit that host operating system is supported that the application program of mentioning in the embodiment of the invention is installed the source, as the software package of forms such as pkg, mpkg;
First loading unit 42 is used for then directly loading the application program installation procedure of host computer system when having the file directory tree that presets on first target volume;
First target volume that application program is installed should be the volume that is different from the place of host operating system own, can be movable storage device usually, as USB flash disk, portable hard drive etc.;
First is redirected unit 44, is used for when the host operating system executive utility is installed, during the file directory that the installation path of application program is redirected to first target volume is set;
Device by the virtual installation of a kind of application program that the embodiment of the invention provided, application program complex large-sized on the host operating system platform can be mounted on the target volume that the user selectes, for example: portable hard drive etc., the user can be installed to a plurality of application programs on the same target volume, shares a file directory tree; When the user selects move media as the target volume of the virtual installation of application program, along with moving of medium, application program and data together with the time move, for the user provides a kind of method that ambulant software is installed and disposed that has.
Referring to Fig. 5, the embodiment of the invention also provides the device of the virtual installation of another kind of application program, is example to be applied on the Mac OS operating system platform, comprising:
First acquiring unit 50 is used for obtaining application program path, current place, source and target volume path being installed when the target volume of application program preparation installation is different from the place of Mac OS operating system volume own;
Judging unit 51 is used to judge whether have the file directory that presets on first target volume, and will sends judged result;
Creating unit 52 is used to receive the judged result that judging unit 521 sends, when judged result for not the time, then create file directory, create and notify first loading unit 53 after finishing;
Wherein, said creating unit 52 can also be used for creating the file directory tree on first target volume before the virtual installation method of application program is carried out;
The file directory created on first target volume tree have with Mac OS system place volume in the similar or identical bibliographic structure of directory tree structure, make the installation directory of application program on first target volume with similar or identical at the installation directory of Mac OS system place volume;
First loading unit 53 is used to receive judged result and creating unit 52 notices that judging unit 51 sends; When having the file directory tree that presets on first target volume, then load the application program installation procedure of Mac OS system;
First is redirected unit 54, is used for when Mac OS operating system executive utility is installed, during the file directory that the installation path of application program is redirected to first target volume is set;
Wherein, first is redirected unit 54, can comprise:
First monitoring unit 541 is used to monitor the process that the application program of Mac OS operating system is installed;
The first re-orientation processes unit 542 is used for path that application program installation process with Mac OS operating system relates to file and file directory operation and is redirected in the file directory tree on first target volume;
Wherein, the path that relates to the operation of file and file directory in the application program installation procedure operational process with Mac OS system is redirected in the file directory on described first target volume, can in the file directory of first target volume, find the application program installation site by mapping algorithm, file directory tree on constructed first target volume, original associative directory is rolled up relatively in its catalogue and Mac OS system place, has very big similarity, so that, on target volume, can find similar position with relating to the position of file and file directory in the application program installation.
The embodiment of the invention provides a device of realizing the virtual installation of application program on Mac OS operating system platform for the user, complex large-sized application program on the Mac OS operating system platform can be mounted on the target volume that the user selectes, and, with application program is installed in Mac OS operating system place volume on compare, on user experience, almost do not change.
Referring to accompanying drawing 6, the embodiment of the invention provides the device of the virtual loading of a kind of application program in that previous embodiment provided on the basis of the device of realizing the virtual installation of application program on the host operating system platform, comprising:
Second acquisition unit 60 is used to obtain the application name on first target volume and the path of user's appointment, and wherein, first target volume is different from host operating system place volume;
Second loading unit 61 is used to load the application program of installing on first target volume;
Second is redirected unit 62, is used for when described host operating system application programs loads, and the path of searching of the loading of application program and resource requirement in service is redirected in the file directory tree on first target volume;
The method that realizes the application program loading on the host operating system platform by the embodiment of the invention provided realizes loading and operation to the application program on first target volume.
Referring to accompanying drawing 7, still be example to use on the Mac OS operating system platform, the embodiment of the invention also provides the device of the virtual loading of another kind of application program, and different with accompanying drawing 6 pairing embodiment is also to comprise:
Inspection unit 73 is used for checking the state and the integrality of file system on first target volume before loading the application program of installing on first target volume;
Second is redirected unit 72, can comprise:
Second monitoring unit 721 is used for the monitoring application program operation;
Second processing unit 722, be used for when needs from when file and file directory tree is transferred resource, with the former file directory tree that should be redirected to from the path that Mac OS operating system place volume is transferred resource on first target volume, so that the application program on first target volume is moved on Mac OS operating system platform;
Other 26S Proteasome Structure and Functions are identical with the embodiment of accompanying drawing 6 correspondences in the present embodiment, do not repeat them here.
The embodiment of the invention provides the method and apparatus of realizing virtual installation of application program and loading in Mac OS system, complex large-sized application program on the Mac OS operating system platform can be mounted on the target volume that the user selectes, for example: portable hard drive etc., the user can be installed to a plurality of application programs on the same target volume, shares a file directory tree; When the user selects move media as the target volume of the virtual installation of application program, along with moving of medium, application program and data together with the time move, for the user provides a kind of method that ambulant software is installed and disposed that has.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be finished by the relevant hardware of programmed instruction, aforesaid program can be stored in the computer read/write memory medium, this program is carried out the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
It should be noted that at last: above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of various embodiments of the present invention technical scheme.