Summary of the invention
The object of the embodiment of the present invention is to provide a kind of method of beautifying installation interface of software installation package, is intended to solve in existing installation interface dullness, the problem that customer experience is not good.
The embodiment of the present invention is achieved in that a kind of method of beautifying installation interface of software installation package, and described method comprises the steps:
Running package is containing beautifying the software installation kit of bag, and described data of beautifying in bag are discharged in the temporary folder of new establishment, and described data comprise: the allocation list that interface to be beautified is corresponding and for beautifying the resource at interface;
Described in calling, beautify the initialization function of bag, obtain the data that need use in interface process beautifying;
To be set to interface to be beautified for the resource of beautifying interface according to the incidence relation of described allocation list record.
Another object of the embodiment of the present invention is to provide a kind of device of beautifying installation interface of software installation package, and described device comprises:
Software installation kit running unit,, and is discharged into described data of beautifying in bag in the temporary folder of new establishment containing beautifying the software installation kit of bag for running package, and described data comprise: the allocation list that interface to be beautified is corresponding and for beautifying the resource at interface;
Beautify data capture unit, for according to the software installation kit of described software installation kit running unit operation, obtain the data of beautifying of beautifying in bag;
Installation interface beautifies unit, will be set to interface to be beautified for the resource of beautifying interface for the incidence relation that beautifies the allocation list record that data capture unit obtains described in basis.
The embodiment of the present invention, will be integrated into software installation kit for the bag that beautifies beautifying, in the time of the described software installation kit of operation, decompress(ion) beautifies bag, obtain and beautify in bag: the window handle at interface to be beautified, the allocation list that interface to be beautified is corresponding, for beautifying the resource at interface; To be set to interface to be beautified for the resource of beautifying interface according to the incidence relation of described allocation list record, the object that has realized automatic configuration and beautify interface.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
The embodiment of the present invention, will be integrated into software installation kit for the bag that beautifies beautifying, in the time of the described software installation kit of operation, decompress(ion) beautifies bag, obtain and beautify in bag: the window handle at interface to be beautified, the allocation list that interface to be beautified is corresponding, for beautifying the resource at interface; To be set to interface to be beautified for the resource of beautifying interface according to the incidence relation of described allocation list record, the object that has realized automatic configuration and beautify interface.
Embodiment mono-:
Fig. 1 shows the realization flow figure of the beautifying installation interface of software installation package method that the embodiment of the present invention provides, and details are as follows:
In step S101, running package is containing beautifying the software installation kit of bag, and described data of beautifying in bag are discharged in the temporary folder of new establishment, and described data comprise: the allocation list that interface to be beautified is corresponding and for beautifying the resource at interface.
In embodiments of the present invention, computer running package is containing the software installation kit that beautifies bag, and described data of beautifying in bag are discharged in the temporary folder of new establishment, this beautifies bag for the installation interface of software installation kit installation process is beautified, and described data comprise: the allocation list that interface to be beautified is corresponding and for beautifying the resource at interface.
In step S102, described in calling, beautify the initialization function of bag, obtain the data that need use in interface process beautifying.
In embodiments of the present invention, the installation interface of software installation kit may comprise multiple different interfaces, and the initialization function that beautifies bag by calling can obtain the window handle at interface to be beautified, and this interface to be beautified is set to main interface and beautifies.
Described obtaining needs the step of the data that use to be specially beautifying in interface process: decompress(ion) beautifies bag, obtains the initialization function that beautifies bag; Obtain window handle and the allocation list at interface to be beautified according to described initialization function; Obtain the resource for beautifying interface according to the window handle at interface described to be beautified and allocation list.Described allocation list is for recording the positional information at interface to be beautified and the related information beautifying between the resource at interface, and described allocation list uses what resource (picture, music, where pictures, which section music) to beautify for being recorded in which piece position (upper and lower, left and right) at interface to be beautified.
Illustrate:
Suppose that interface to be beautified is divided into: Si Ge region, upper and lower, left and right, the resource that can be used for beautifying comprises: picture A, picture B, music A, music B, the related information recording in allocation list is: upper-picture A, under-picture B, a left side-music A, the right side-music B.
In step S103, will be set to interface to be beautified for the resource of beautifying interface according to the incidence relation of described allocation list record.
In embodiments of the present invention, computer will be set to interface to be beautified for the resource of beautifying interface according to the incidence relation of described allocation list record, and its specific implementation flow process refers to Fig. 2 and the description to Fig. 2.
The embodiment of the present invention, will be integrated into software installation kit for the bag that beautifies beautifying, in the time of the described software installation kit of operation, decompress(ion) beautifies bag, obtain and beautify in bag: the window handle at interface to be beautified, the allocation list that interface to be beautified is corresponding, for beautifying the resource at interface; To be set to interface to be beautified for the resource of beautifying interface according to the incidence relation of described allocation list record, the object that has realized automatic configuration and beautify interface.
Embodiment bis-:
The specific implementation process flow diagram that is illustrated in figure 2 step S103 shown in Fig. 1 that the embodiment of the present invention provides, details are as follows:
In step S201, create one with described in the size at interface the to be beautified translucent lamination identical with region to be beautified.
In embodiments of the present invention, according to the size at interface to be beautified and area information to be beautified, create one with described in the size at interface the to be beautified translucent lamination window identical with region to be beautified.
In step S202, use the corresponding resource of beautifying to beautify the region to be beautified of described translucent lamination, the resource of beautifying of described correspondence is obtained for the resource of beautifying interface from described according to the allocation list in temporary folder.
In embodiments of the present invention, computer according to allocation list obtain interface to be beautified corresponding beautify resource, and beautifying on the region to be beautified that resource is set to translucent lamination window correspondence, call the corresponding resource such as picture, music according to allocation list, and according to allocation list, the resource such as picture, music of calling is set to corresponding region to be beautified.
In step S203, will be added on interface to be beautified through the translucent lamination beautifying.
In embodiments of the present invention, because translucent lamination is to create according to the size at interface to be beautified and area information to be beautified, the translucent lamination therefore this process being beautified is added to can realize on interface to be beautified and treats the perfection that beautifies interface and beautify.
The embodiment of the present invention, create one with the identical translucent lamination in region to be beautified at interface to be beautified size, interface to be beautified, the resource that needs the are beautified described translucent lamination that is added to, finally, by the interface to be beautified that is added to through the translucent lamination beautifying, realize the object of beautifying software installation interface.
Embodiment tri-:
The concrete structure figure that is illustrated in figure 3 the beautifying installation interface of software installation package device that the embodiment of the present invention provides, only illustrates the part relevant to the embodiment of the present invention for convenience of explanation, comprising:
Software installation kit running unit 11,, and is discharged into described data of beautifying in bag in the temporary folder of new establishment containing beautifying the software installation kit of bag for running package, and described data comprise: the allocation list that interface to be beautified is corresponding and for beautifying the resource at interface.
Beautify data capture unit 12, for the software installation kit moving according to described software installation kit running unit 11, obtain the data of beautifying of beautifying in bag.
Installation interface beautifies unit 13, will be set to interface to be beautified for the resource of beautifying interface for the incidence relation that beautifies the allocation list record that data capture unit 12 obtains described in basis.
Wherein, described in, beautifying data capture unit 12 specifically comprises:
Initialization function acquiring unit 121, beautifies bag for decompress(ion), obtains the initialization function beautifying in bag.
Window handle acquiring unit 122, obtains the window handle at interface to be beautified for the initialization function obtaining according to described initialization function acquiring unit 121.
Allocation list acquiring unit 123, obtains allocation list for the initialization function obtaining according to described initialization function acquiring unit 121.
Beautify resource acquisition unit 124, the allocation list obtaining for the window handle that obtains according to described window handle acquiring unit 122 and described allocation list acquiring unit 123 obtains the resource of beautifying interface.
Wherein said installation interface beautifies unit 13 and specifically comprises:
Translucent lamination creating unit 131, for creating a translucent lamination identical with region to be beautified with the size at interface to be beautified.
Translucent lamination beautifies unit 132, for using the corresponding region to be beautified of beautifying the translucent lamination that resource creates described translucent lamination creating unit 131 to beautify, the resource of beautifying of described correspondence is obtained for the resource of beautifying interface from described according to the allocation list in temporary folder.
Translucent lamination superpositing unit 133, for beautifying described translucent lamination at the translucent lamination beautifying unit 132 interface to be beautified that is added to.
The embodiment of the present invention, will be integrated into software installation kit for the bag that beautifies beautifying, in the time of the described software installation kit of operation, decompress(ion) beautifies bag, obtain and beautify in bag: the window handle at interface to be beautified, the allocation list that interface to be beautified is corresponding, for beautifying the resource at interface; To be set to interface to be beautified for the resource of beautifying interface according to the incidence relation of described allocation list record, the object that has realized automatic configuration and beautify interface.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., within all should being included in protection scope of the present invention.