Embodiment
Embodiment mono-
Accompanying drawing 2a is the process flow diagram of the constructive process of the application software package that provides of the embodiment of the present invention.
Step 200, the creation apparatus of application software package obtains the difference that application software front and back host operating system environment is installed.
Step 210, the creation apparatus of application software package, according to described difference, is determined registration table change record data and document change record data.
In described registration table change record data, be included in and install after described application software, increase in host registration table, the key of deleting or revising, or the value that increases, deletes or revise.Certainly registration table change record data can both comprise the key of increase in registration table, deletion or amendment, also comprised the value of increase, deletion or amendment.
In described document change record data, be included in and install after described application software, the record of increase in disk, deletion or revised file, or the record of increase, deletion or amendment catalogue.
Step 220, the creation apparatus of application software package generates to comprise to be increased in described registration table change record data and document change record data and installation procedure process or the application software package of the file of amendment.
Alternatively, in above-mentioned steps 200, obtain the mode of the difference that application software front and back host operating system environment is installed, include but not limited to following three kinds:
Mode one: with reference to accompanying drawing 2b:
Step 201, the installation kit of the application software to be installed that the creation apparatus of application software package provides application software provider copies in the operating system environment of main frame host0.
Alternatively, for the ease of reducing unnecessary junk information when the follow-up generating snapshot, improve snapshot to specific efficiency, now the creation apparatus of application software package should be according to the information in registry file, select the main frame of an operating system environment with " totally " as the private host for creating application software package, the operating system environment of " totally " refers to the operating system that the least possible inessential application software is installed, for example, operating system when any other application software is not installed.
Step 202, the creation apparatus of application software package is set up the first snapshot to current host operating system environment.Described host operating system environment comprises registration table and disk.
Wherein, registration table (Registry) is a significant data storehouse in operating system, for the configuration information of storage system and application program.
Registration table is set up to snapshot to be referred to by enumerating mode and records all keys and the value in registration table.Disk is set up to snapshot and refer to by enumerating the document structure information on mode recording disc, be i.e. the information such as the store path of all catalogues and file and catalogue and file, modification time and size.
The first snapshot of now setting up had reflected before described application software is installed, the status information of host0 registration table and disk.
Step 203, the creation apparatus of application software package is installed described application software in described main frame host0.
For example, in common existing application software package, all comprise the installation procedure of executable file format, as setup.exe, move this installation procedure and can realize the object that application software is installed.
Step 204, the creation apparatus of application software package is set up the second snapshot to current host operating system environment.
Set up the method for snapshot with reference to the introduction in step 202.The second snapshot of now setting up has reflected after described application software is installed, the status information of host0 registration table and disk.
Step 205, the creation apparatus of application software package contrasts the first snapshot and the second snapshot, according to the difference of the first snapshot and the second snapshot, determine the difference that application software front and back host operating system environment is installed, and then therefrom obtain registration table change record data and document change record data.Alternatively, in order to accelerate the efficiency of contrast, the contrasting region in designated disk in advance, for example, specify and only contrast the file in predetermined disk sector or under store path, the change of catalogue.
Mode two: select in advance two identical main frames of operating system environment, be respectively host1 and host2.The installation kit that the creation apparatus of application software package provides application software to be installed provider copies in the operating system environment of main frame host2, and in host2, moves the installation procedure in described installation kit; The creation apparatus of application software package contrasts the now difference of host1 and host2 operating system environment, thereby obtains the difference that host operating system environment before and after application software is installed.
Mode three: the installation procedure in the installation kit that the creation apparatus of application software package provides application software supplier oppositely compiles, from reverse compiling result, obtain the operational character that operating system environment is done, the for example operational character of edit the registry file, and increase or the operational character of revised file, thereby infer that host operating system environment is installed before and after application software expects due difference in file system.
Alternatively, with reference to accompanying drawing 2c, the process that above-mentioned steps 220 generates application software package comprises:
Step 221, writes change record file by described registration table change record data and document change record data;
Alternatively, can use descriptive language, as extend markup language (XML, Extensible Markup Language), describe registration table change record data and document change record data, and the registration table change record data and the document change record data that use descriptive language to describe are write to change record file.The form of change record file is not limit, and can be text formatting file.
Step 222, to described change record file, and increases in installation procedure process or the file processing of packing of amendment, generates the application software package of described application software.
The schematic diagram of the application software package that accompanying drawing 2d provides for the embodiment of the present invention, has wherein recorded in change record file at path C; Under/programe file/abc/, increase the file of a fileA by name, in registration table, increase a value key1.value1; In application software package, also comprise the file f ileA of increase.
Alternatively, by packing program, for example rar (Roshal ARchive), zip, will increase in change record file and installation procedure process or the file encapsulation of pack of amendment, thus generation application software package.
It should be noted that: above-mentioned the first snapshot and the second snapshot are not order of representation relation, but in order to distinguish different snapshots, first, second grade of hereinafter mentioning is also in order to distinguish different information, data, request, message or unit module etc.
The embodiment of the present invention provides a kind of establishment scheme of application software package, utilizes the application software package that adopts this establishment scheme to create, and can be used for the mirror image data of virtual machine to modify, thereby realizes the object that application software is installed in virtual machine.
Embodiment bis-
The deployed environment schematic diagram of the software installation system that accompanying drawing 3a provides for the embodiment of the present invention is that framework is implemented on the comparatively typical cloud computing of one basis.In this system, comprise at least one software build-in services device, at least one elasticity computing controller, at least one physical host and distributed storage device.Wherein, elasticity computing controller is a core component in existing cloud computing infrastructure framework, is the maincenter of managing memory source, computational resource and other resources.Elasticity computing controller is user assignment storage resources, computational resource according to user's application, is controlled at the mirror image data that creates virtual machine in distributed storage device.In the present embodiment, the mirror image data of each virtual machine is stored in distributed storage device, and wherein distributed storage device is respectively example with SAN and NAS and describes.Software build-in services device is connected with application software resources storehouse, stores at least one and adopt the application software package that shown in accompanying drawing 2a, method creates in application software resources storehouse.
It should be noted that: shown in accompanying drawing 3a is the example that framework is implemented on a kind of cloud computing basis, and the software installation method that the embodiment of the present invention provides is also applicable to other framework scenes.
The embodiment of the present invention provides a kind of installation method of application software, this installation method is the application software package creating based on method shown in accompanying drawing 2a, in the scene shown in accompanying drawing 3a, carry out, for realizing the process mounting software of applying for virtual machine user, idiographic flow please refer to accompanying drawing 4.
Step 410, elasticity computing controller receives hardware configuration parameter, operating system version mark and the pre-installed software mark when user applies for virtual machine, inputted.
User is in the time of application virtual machine, in the some config options that can support according to the virtual machine management system providing in the virtual machine application page, select hardware configuration parameter, operating system version mark and pre-installed software mark etc. that applied for virtual machine should possess; User can send virtual machine application request message by the client utility in physical host, carries hardware configuration parameter, operating system version mark and the pre-installed software mark selected in this request message.
Certainly, above-mentioned hardware configuration parameter, operating system version mark and pre-installed software mark can be also the default configuration options that virtual machine management system provides, for example, user, in the time selecting typical case to install, generates mirror image data according to the configuration parameter of acquiescence, operating system version mark and pre-installed software mark.
Step 420, when elasticity computing controller is applied for virtual machine according to user, the hardware configuration parameter of input and operating system version mark, is controlled at and in distributed storage device, creates virtual machine image data.
Particularly, according to hardware configuration parameter configuration virtual machine hardware specification, from the set of operating system template, select corresponding operating system template according to operating system version mark; Then according to virtual machine hardware specification and operating system template establishment virtual machine image data.In the present embodiment, apply for creating the mirror image data WMdata1 of virtual machine WM1 according to user.
The storage mode of mirror image data in distributed storage device is relevant with the type of distributed storage device.For example, for SAN, virtual machine image data are the hard disk sector data in designated memory space (being virtual machine image data field).Other equipment, for example, for starting the physical host of virtual machine, can be used in request of access the mode of carrying " IP address+port numbers " and visit virtual machine image data field corresponding to virtual machine to be started on SAN, " IP address+port numbers " corresponding a memory block in SAN.As shown in accompanying drawing 3b.
For NAS, virtual machine image data are the image file under designated store path.Other equipment, for example, for starting the physical host of virtual machine, can pass through network file system(NFS) (NFS, Network File System) and visit virtual machine image file corresponding to virtual machine to be started on NAS.As shown in accompanying drawing 3c.
In table 1, the mirror image data of virtual machine VM1 and WM2 is stored in NAS, and the mirror image data of virtual machine VM3 is stored in NAS.
It should be noted that: shown in accompanying drawing 3a is the example that framework is implemented on a kind of cloud computing basis, the installation method of the application software that the embodiment of the present invention provides is also applicable to other framework scenes, for example, in other framework scenes, be the corresponding relation of being safeguarded virtual machine mark and mirror image data address by management database.
Table 1
Step 430, software build-in services device is determined the type of described virtual machine image data.
Alternatively, the mode of determining mirror image data type includes but not limited to:
Mode one:
Whether software build-in services device is first tested can, from the memory location of virtual machine image data, successfully read the data head of mirror image data, and the memory location of described virtual machine image data can be SAN or NAS notice software build-in services device.
If can successfully read the data head of mirror image data, according to described data head, determine the type of described mirror image data.For example, according to the definition of mirror image data form, the file type field in reading out data head, compares the field reading and all types of mark, if consistent, determine that the type of virtual machine image data is file type corresponding to type identification consistent with the field reading.The type of mirror image data comprises QCOW (QEMU Copy-on-write), VMDK (VMWare Virtual Machine Disk Format), VHD (Microsoft Virtual Hard Disk format), VDI (Sun xVM VirtualBox Virtual Disk Images) etc., and a kind of dummy machine system can compatible multiple mirror image data type.
If can not successfully read the data head of mirror image data, test according to RAW form whether can successfully resolve described mirror image data, if parse operation success determines that the type of described mirror image data is RAW form.The mode of RAW form memory image data is identical with the mode of storing data in personal computer, are corresponding relations of 1:1 with physical disk data, in physical disk data, do not encapsulate, therefore resolve according to physical disk data layout, the feature of physical disk data layout includes but not limited to: the 0th sector (first 512 bytes) are Main Boot Record (MBR, Main Boot Record), there is signature word " 55AA " in this end, sector; Taking the 0th sector initial position as benchmark, the data that side-play amount is 01BEH-01FDH are disk partition tables, wherein comprise the field of describing each partitioned file system banner, etc.
Mode two:
When according to user's virtual machine application, while creating mirror image data corresponding to virtual machine instance, the type identification of the mirror image data of each virtual machine is recorded in database, in the present embodiment, type identification can be recorded in the managing listings of elasticity computing controller maintenance, as shown in table 2.In the time that software build-in services device need to be known the type of certain virtual machine image data, as need to be known the mirror image data type of virtual machine WM1 time, by carrying out interacting message with elasticity computing controller, obtain the type of the mirror image data of storing in the list of elasticity calculating controller management.For example software build-in services device sends the memory location that carries virtual machine mark " WM1 " or virtual machine image data to elasticity computing controller
The type of " 192.168.0.1:/vmimages/vm1.QCOW " is confirmed request message, elasticity computing controller is according to the virtual machine mark of carrying or the memory location of virtual machine image data, searching and managing list, and the type of the mirror image data finding " raw " is carried in type confirmation response message and returns to software build-in services device.Software build-in services device extracts the type of the mirror image data carrying from type confirmation response message.
Table 2
In the present embodiment, the type of virtual machine image data WMdata1 creating for user is QCOW.
Step 440, software build-in services device, according to described mirror image data type, calls corresponding carry program carry virtual machine image data.
In the present embodiment, software build-in services device, according to the type QCOW of mirror image data WMdata1, calls the carry program carry mirror image data WMdata1 that file type QCOW is corresponding.
Existing operating system all provides order or the command history that can realize carry function mostly, as the order such as mount, kpartx in linux system.
In carry process, according to the corresponding relation of mirror image data type and file system type, determine the file system type (being the file system type of virtual machine) of virtual machine image data inside.The file system type of mirror image data inside can be 16 file allocation table (FAT16, File Allocation Table), FAT32, the second extended file system (EXT2, Second extended file system), the 3rd extended file system (EXT3, Third extended file system), network file system(NFS) (NTFS, Network File System) etc., in carry process, need to realize the support to file system with driver corresponding to file system type.
For SAN, the hard disk sector data in designated memory space are mapped as driver through the processing of driver, comprise some files in driver.
For NAS, the image file under designated store path is mapped as driver through the processing of driver, comprises some files in driver.
After carry completes, mirror image data is mapped as a driver in software build-in services device file system, and the follow-up operation to file in this driver is equivalent to the operation to file in virtual machine.
After software build-in services device carry mirror image data WMdata1, mirror image data is mapped as to driver DriverW1.
Step 450, software build-in services device identifies according to described pre-installed software, obtains corresponding application software package from application software resources storehouse.
In the present embodiment, so that being installed, application software package clock-Package that timer software is corresponding describes as example.Application software package comprises change record file, and the file of revising or increasing in installation process.Change record file comprises registration table change record data and document change record data.
Step 460, the registration table change record data in the change record file that software build-in services device comprises according to application software package, upgrade the registry file in described driver.
In the present embodiment, the operating system version of inputting in the time that user applies for virtual machine is designated WindowsXP as example, and the registry file comprising in carry image file rear drive device DriverW1 comprises:
DriverW1:\WINDOWS\system32\config\SAM
DriverW1:\WINDOWS\system32\config\SECURITY
DriverW1:\WINDOWS\system32\config\software
DriverW1:\WINDOWS\system32\config\system
DriverW1:\WINDOWS\system32\config\default
DriverW1:\Documents?and?Settings\LocalService\NTUSER.DAT
DriverW1:\Documents?and?Settings\LocalService\Local?Settings\Application?Data\Microsoft\Windows\UsrClass.dat
DriverW1:\Documents?and?Settings\NetworkService\NTUSER.DAT
DriverW1:\Documents?and?Settings\NetworkService\Local?Settings\Application?Data\Microsoft\Windows\UsrClass.dat
DriverW1:\Documents?and?Settings\Administrator\NTUSER.DAT
DriverW1:\Documents?and?Settings\Administrator\Local?Settings\Application?Data\Microsoft\Windows\UsrClass.dat
The form of registry file is HIVE form, and a HIVE file is made up of multiple hives (BIN).The stem of HIVE file has a file header (fundamental block), for describing some global informations of this HIVE file.A BIN is made up of multiple nests chamber (CELL), CELL can be divided into concrete 5 kinds (key nest chamber, value nest chamber, sub-key list nest chamber, value list nest chamber, security descriptor nest chambers), for storing different registry datas, the content in above-mentioned registry file is from being mapped in logic Registry Tree.Illustrate and can, with reference to relevant documentation, here no longer describe in detail.
Registration table change record packet in change record file is containing the content (being at least one key or value) of a CELL in above-mentioned at least one registry file, and action type to the required execution of this CELL, as increased, delete or amendment etc.
According to the content of the CELL comprising in registration table change record data and the action type to the required execution of this CELL, and key corresponding to CELL or the position of value, registry file in driver DriverW1 is upgraded.
Step 470, software build-in services device, according to the document change record data in the file and the change record file that increase in the installation process comprising in application software package or revise, upgrades the file structure in described driver.
Software build-in services device is according to the document change record data in change record file, increase in described driver, deletion or revised file, or increase, delete or amendment catalogue, thereby upgrade the file structure in described driver.Particularly, according to the record of deleted file in document change record data, in disk, delete the file under respective path; Or according to the record of increase or revised file in document change record data, and the file that increases or revise in installation process in application software package, in disk, revise existing file or increase file.Wherein, the file that increases, deletes or revise has corresponding routing information, and file operation can realize file operation with shell script.
Step 480, software build-in services device is cancelled the mirror image data of carry virtual machine.
Follow-up need to start virtual machine time, for starting the physical host of this virtual machine, after reading the mirror image data of processing through step 430~step 480 memory address of these virtual machine image data and loading, application software is installed on the virtual machine starting.
The embodiment of the present invention provides the installation method of another kind of application software, this installation method is the application software package creating based on method shown in accompanying drawing 2a, carries out, for realizing after being user assignment virtual machine in the scene shown in accompanying drawing 3a, mounting software, idiographic flow please refer to accompanying drawing 5.
In the present embodiment, in the managing listings of elasticity computing controller storage, store the information such as the memory address of the mirror image data of the mark of the physical host for starting each virtual machine, each virtual machine, as shown in table 1, table 1 has been described mirror image data and has been stored in the situation in SAN.In the time distributing certain user to use a virtual machine, by reading this managing listings, instruction, for starting the physical host of this virtual machine, is read mirror image data and is loaded from the memory address of these virtual machine image data, thereby starts virtual machine.
Step 510, elasticity computing controller receives software request message is installed, and it can be that user sends that this software is installed request message, can be also that virtual machine management system sends, as need to be antivirus software etc. be installed to the each virtual machine in specified scope.In software installation request message, carry virtual machine mark and application software to be installed mark.
Step 520, software build-in services device obtains described virtual machine and identifies the memory location of corresponding virtual machine image data.
Alternatively, in the present embodiment, software build-in services device and elasticity computing controller are carried out interacting message, obtain the memory location of the mirror image data that in the list of elasticity calculating controller management, virtual machine WM1 is corresponding.
Step 530, software build-in services device is determined the type of described virtual machine image data.
The concrete method of determining mirror image data type can, with reference to the introduction in step 430, here no longer repeat.
Step 540, software build-in services device, according to described mirror image data type, calls corresponding carry program carry virtual machine image data, and described mirror image data is mapped as to a virtual disk in software build-in services device file system.
Step 550, software build-in services device, according to described application software mark to be installed, obtains corresponding application software package from application software resources storehouse.
Step 560, the registration table change record data in the change record file that software build-in services device comprises according to application software package, upgrade the registry file in described virtual disk.
Step 570, software build-in services device, according to the document change record data in the file and the change record file that increase in installation process in application software package or revise, upgrades the file structure in described virtual disk.
Step 580, software build-in services device is cancelled the mirror image data of carry virtual machine.
Step 440~step 480 in concrete processing mode and the accompanying drawing 4 of step 540~step 580 is similar, here no longer repeats.
The installation method of the application software that the embodiment of the present invention provides, the mirror image data of the virtual machine of first carry application software to be installed, after carry completes, the mirror image data of this virtual machine is mapped as a virtual disk in software build-in services device file system.According to the registration table change record data of application software package, upgrade the registry file in described driver; According to the file and the document change record data that increase or revise in installation process in application software package, upgrade the file structure in described virtual disk, thereby realize the object that application software is installed.Installing in the process of application software, without browser or client utility are installed in advance in virtual machine, thereby save storage resources, also carry out complicated operation without virtual machine user simultaneously, user has been reduced to software installation difficulty.
In the time need to synchronously application software being installed to the more virtual machine of number on a large scale, the software mount scheme that the embodiment of the present invention provides can be from the angle of software build-in services device, control each virtual machine the process of application software is installed, thereby guarantee the controllability of software fitting limit.
Embodiment tri-
The installation method of the application software that the embodiment of the present invention provides cloud computing shown in accompanying drawing 3a basis implements in framework, is also applicable to other comparatively simple virtual machine application scenarioss except can be applicable to.Each step shown in accompanying drawing 4 can be realized by same entity device in this case, but ultimate principle and accompanying drawing 4 are similar.
The schematic diagram of the application scenarios that accompanying drawing 6a provides for the embodiment of the present invention need to create 3 virtual machine VM1, VM2, VM3 to realize parallel computation or software test on physical host host.The installation administration module of physical host creates virtual machine according to the virtual machine creating demand of user's input.
The process flow diagram of the application software installation method that accompanying drawing 6b provides for the embodiment of the present invention.
Step 610, the installation administration module of physical host receives hardware configuration parameter, operating system version mark and the pre-installed software mark of user's input.
Alternatively, user can input establishment demand by the user interface of installation administration module.
Step 620, the installation administration module of physical host, according to hardware configuration parameter and operating system version mark, creates virtual machine image data in this physical host.
Creating in the process of virtual machine image data, can safeguard a mapping table that stores virtual machine mark and virtual machine image data storage location, as shown in table 3.
Table 3
Virtual machine mark |
The memory address of virtual machine image data |
VM1 |
E:/vmimages/vm1.QCOW |
VM2 |
E:/vmimages/vm2.vmdk |
VM3 |
E:/vmimages/vm3.vmdk |
…… |
…… |
Step 630, installation administration module is determined the type of described virtual machine image data.
The concrete method of determining mirror image data type can, with reference to the introduction in step 430, here no longer repeat.
Alternatively, installation administration module creates the virtual machine image data of specified format in step 620, and as QCOW, the type that can determine in this step virtual machine image data is described specified format.
Step 640, installation administration module, according to described mirror image data type, is called corresponding carry program carry virtual machine image data, and described mirror image data is mapped as to a virtual disk in physical host file system.
Step 650, installation administration module, according to described application software mark to be installed, finds this application software to be installed and identifies corresponding application software package from least one application software package of storage.
Application software package comprises change record file, and the file of revising or increasing in installation process.Change record file comprises registration table change record data and document change record data.
Step 660, the registration table change record data in the change record file that installation administration module comprises according to application software package, upgrade the registry file in described virtual disk.
Step 670, installation administration module, according to the document change record data in the file and the change record file that increase in the installation process comprising in application software package or revise, is upgraded the file structure in described virtual disk.
Step 680, installation administration module is cancelled the mirror image data of carry virtual machine.
Step 440~step 480 in concrete processing mode and the accompanying drawing 4 of step 640~step 680 is similar, here no longer repeats.
The embodiment of the present invention provides the installation method of the application software shown in a kind of accompanying drawing 1, the application example on same entity device.This scheme can be simplified the operation steps of user while application software being installed in virtual machine.
Embodiment tetra-
Correspondingly, the embodiment of the present invention also provides a kind of erecting device of application software, and as shown in Figure 7, this device comprises carry module 701, the first update module 702 and the second update module 703, specific as follows:
Carry module 701, for the mirror image data of carry virtual machine, the virtual machine that described virtual machine is application software to be installed, is mapped as a virtual disk in local file system by described mirror image data;
The first update module 702, for the registration table change record data that comprise according to the application software package of described application software, upgrade the registry file in described virtual disk, described application software package comprises the file, registration table change record data and the document change record data that in installation process, increase or revise, and described registration table change record data and document change record data are to obtain according to the difference that described application software front and back host operating system environment is installed;
The second update module 703, increase or the file of amendment for the installation process comprising according to described document change record data and application software package, upgrade the file structure in described virtual disk, thereby realize, described application software is installed in described virtual machine.
Alternatively, the device shown in accompanying drawing 7 also comprises:
Cancel carry unit 704, upgrade after the file structure in described virtual disk for registry file and the second update module 703 of upgrading described virtual disk in the first update module 702, cancel the mirror image data of virtual machine described in carry.
Alternatively, as shown in Figure 8, described carry module 701 comprises:
Determining unit 801, for determining the type of mirror image data of described virtual machine;
Carry unit 802, for the type of the mirror image data determined according to determining unit 801, calls the virtual machine image data on the memory location of virtual machine image data described in corresponding carry program carry.
Alternatively, as shown in accompanying drawing 9a, described determining unit 801 comprises:
The first test subelement 901, for according to the memory location of described virtual machine image data, tests the data head that whether can successfully read mirror image data;
First determines subelement 902, if can successfully read the data head of mirror image data for the first test subelement 901, according to the type of data format field in described data head, determines the type of data format of described mirror image data;
The second test subelement 903, if can not successfully read the data head of mirror image data for the first test subelement 901, tests according to RAW form whether can successfully resolve described mirror image data;
Second determines subelement 904, if can successfully resolve described mirror image data for the second test subelement 903, determines that the type of data format of described mirror image data is RAW form.
Alternatively, as shown in accompanying drawing 9b, described determination module 801 comprises:
Send subelement 905, confirm request message for the type that sends the memory location that carries virtual machine mark or virtual machine image data to elasticity computing controller;
Receive subelement 906, the type confirmation response message returning for receiving elasticity computing controller;
The 3rd determines subelement 907, confirm that for the described type receiving from reception subelement 906 response message extracts the type of the mirror image data carrying, the type of described mirror image data is that elasticity computing controller is confirmed the virtual machine mark in request message according to type, the virtual machine mark of preserving in the time that virtual machine image file creates and the corresponding relation of mirror image data type, finds; Or elasticity computing controller is according to the memory location in type confirmation request message, the memory location of the virtual machine image data of preserving during from virtual machine image data creation and the corresponding relation of mirror image data type, finds.
Please refer to accompanying drawing 10, the embodiment of the present invention also provides a kind of creation apparatus of application software package, and this device comprises acquiring unit 110, determining unit 120 and creating unit 140, wherein:
Acquiring unit 110, for obtaining the difference that application software front and back host operating system environment is installed;
Determining unit 120, for the described difference obtaining according to acquiring unit 110, determines registration table change record data and document change record data;
Creating unit 140, for generating application software package, this application software package comprises to be increased in described registration table change record data that determining unit 120 determines and document change record data and installation procedure process or the file of amendment.
Alternatively, please refer to accompanying drawing 11, creating unit 140 comprises:
Write subelement 111, for described registration table change record data and document change record data are write to change record file; For example, can adopt XML, what described registration table change record data and document change record data were write to text formatting writes change record file;
Generate subelement 112, for to described change record file, and in installation procedure process, increase or the processing of packing of the file of amendment, generate the application software package of described application software.
One of ordinary skill in the art will appreciate that all or part of step realizing in above-described embodiment method is can carry out the hardware that instruction is relevant by program to complete, this program can be stored in a computer read/write memory medium, as: ROM/RAM, magnetic disc, CD etc.
Obviously, those skilled in the art can carry out various changes and modification and not depart from the spirit and scope of the present invention the present invention.Like this, if these amendments of the present invention and within modification belongs to the scope of the claims in the present invention and equivalent technologies thereof, the present invention is also intended to comprise these changes and modification interior.