CN102855144A - Version processing method and device used for single-version software - Google Patents
Version processing method and device used for single-version software Download PDFInfo
- Publication number
- CN102855144A CN102855144A CN2011101776406A CN201110177640A CN102855144A CN 102855144 A CN102855144 A CN 102855144A CN 2011101776406 A CN2011101776406 A CN 2011101776406A CN 201110177640 A CN201110177640 A CN 201110177640A CN 102855144 A CN102855144 A CN 102855144A
- Authority
- CN
- China
- Prior art keywords
- version
- software
- access request
- version software
- file
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Abstract
The invention provides a version processing method used for single-version software. The version processing method includes storing files, which are required to be operated, of single-version software of each version to different catalogues; intercepting a file access request to the single-version software; and reorientating the file access request to the catalogue corresponding to the expected version. The invention further provides a version processing device used for the single-version software. The version processing device comprises a storage module, an interception module and a reorientation module. The storage module is used for storing the files, which are required to be operated, of the single-version software of each version to the different catalogues. The interception module is used for intercepting the file access request of the single-version software. The reorientation module is used for reorientating the file access request to the catalogue corresponding to the expected version. Compatibility of an information system is improved.
Description
Technical field
The present invention relates to areas of information technology, in particular to a kind of version disposal route and device for single version software.
Background technology
A lot of softwares on the Windows operating system have adopted the COM technology of Windows operating system, such as the Windows Media Format Runtime on the Windows operating system.According to the COM technology, application program is when calling Windows Media Format Runtime, at first search the registration table of Windows operating system, in registration table, find the installation directory of Windows Media Format Runtime, then in this installation directory, start Windows Media Format Runtime.
The inventor finds, adopted the software of COM technology when mounted, FileVersion to software itself has all been done stricter control and verification, often can cover the software of legacy version during edition upgrading, and in registration table, only record the installation directory of redaction, cause this class software to be merely able to install a version in Windows operating system, cannot a plurality of version coexistences.In the present invention, claim that this class software is single version software.
Yet in specific situation, some application program need to be used the above single version software of two versions simultaneously.According to the way of routine, such demand can't realize.
Summary of the invention
The objective of the invention is the limitation for single version software, proposition can be used version disposal route and the device of the single version software of a plurality of versions simultaneously on an operating system.
In an embodiment of the present invention, provide a kind of version disposal route for single version software, having comprised: the file of the required operation of single version software of each version has been saved in respectively different catalogues; The file access request of interception single version software; The file access request is redirected to the corresponding catalogue of expectation version.
In an embodiment of the present invention, provide a kind of version treating apparatus for single version software, having comprised: preserved module, be used for the file of the required operation of single version software of each version is saved in respectively different catalogues; Blocking module is used for the file access request of interception single version software; Redirection module is used for the file access request is redirected to the corresponding catalogue of expectation version.
The version disposal route of the above embodiment of the present invention and device be because be redirected to the version of expectation with the file access request, thus overcome the problem that the single version software of prior art cannot many versions coexistences, thus improved the compatibility of infosystem.
Description of drawings
Accompanying drawing described herein is used to provide a further understanding of the present invention, consists of the application's a part, and illustrative examples of the present invention and explanation thereof are used for explaining the present invention, do not consist of improper restriction of the present invention.In the accompanying drawings:
Fig. 1 shows the process flow diagram according to the version disposal route of the embodiment of the invention;
Fig. 2 shows the system architecture synoptic diagram according to the embodiment of the invention;
Fig. 3 shows the synoptic diagram according to the version treating apparatus of the embodiment of the invention.
Embodiment
Below with reference to the accompanying drawings and in conjunction with the embodiments, describe the present invention in detail.
Fig. 1 shows the process flow diagram according to the version disposal route of the embodiment of the invention, comprising:
Step S10 is saved in respectively different catalogues with the file of the required operation of single version software of each version;
Step S20, the file access request of interception single version software;
Step S30 is redirected to the corresponding catalogue of expectation version with the file access request.
The version disposal route of present embodiment is because be redirected to the version of expectation with the file access request, thus overcome the problem that the single version software of prior art cannot many versions coexistences, thus improved the compatibility of infosystem.
Fig. 2 shows the system architecture synoptic diagram according to the embodiment of the invention.As shown in the figure, step S10 comprises: the name that each catalogue is set is called the version number of its corresponding version, for example there are three versions to be respectively 1.0,2.0,3.0, then name three catalogues to be respectively 1.0,2.0,3.0, file A, B, C that version 1.0 operations are needed are saved in catalogue 1.0 times, file A, B, C that version 2 .0 operation is needed are saved in catalogue 2.0 times, and file A, B, C that version 3 .0 operation is needed are saved in catalogue 3.0 times.The method of present embodiment is simple, can distinguish at an easy rate the single version software of different editions.
Preferably, step S10 comprises: when upgrading single version software, the file of the required operation of single version software of redaction is saved in the catalogue, the file of the required operation of single version software of legacy version is saved in another catalogue.
Preferably, when install being used for calling the application program of single version software, the file of the required operation of single version software of each version is saved in respectively different catalogues.
The method requirement user of previous preferred embodiment backs up the single version software of each version when upgrading single version software, can reduce like this workload of set up applications, has namely reduced application program publisher's burden, but has increased the weight of user's burden.The method of a rear preferred embodiment can alleviate user's backup burden (in fact, the user does not accomplish this point usually yet).
Preferably, as shown in Figure 2, step S20 comprises: when installation is used for calling the application program of single version software, and other hook of Accreditation System level; When running application to call single version software, hook interception file access request.In Windows operating system, the NTCreateFile function that hook hooks among the ntdll.dll gets final product.The simple and easy realization of this preferred embodiment.
Preferably, step S30 comprises: application program is accepted the user to the selection of version by control; Send selected version to hook.For example, application program can provide three buttons, is respectively 1.0,2.0,3.0, and when the user pressed 1.0 button, the version number of then user expectation being called 1.0 single version software passed " 1.0 " and sends hook to.
Preferably, step S30 also comprises: hook is redirected to file of the same name under catalogue corresponding to version with the file access request.For example, the hook file access request that this single version software is all is redirected to catalogue 1.0, thereby the version of the single version software of application call has become 1.0, rather than the version given tacit consent to of the registration table of operating system.
Fig. 3 shows the synoptic diagram according to the version treating apparatus of the embodiment of the invention, comprising:
Preserve module 10, be used for the file of the required operation of single version software of each version is saved in respectively different catalogues;
The version treating apparatus of present embodiment overcome the single version software of prior art cannot be many problem of versions coexistence, thereby improved the compatibility of infosystem.
Preferably, blocking module 20 comprises: Registering modules is used for when installation is used for calling the application program of single version software other hook of Accreditation System level; Hook is used for when running application to call single version software, interception file access request.
As can be seen from the above description, the above embodiments of the present invention are recorded the file that each version of single version software comprises, and these files are placed under the catalogue with version number's name.When certain application program need to be called the software of particular version, when application program launching, the hook of a system level of registration, the file access request that the capturing operation system is all.When application call during an interface of single version software, pass through hook, can intercept and capture the request of single version Bootload alternative document, according to the needs of application program to software version, this document request of access is reoriented to file under the indicated release catalogue, allow single version software not changing under the situation of self code, realize a plurality of version access control.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with general calculation element, they can concentrate on the single calculation element, perhaps be distributed on the network that a plurality of calculation elements form, alternatively, they can be realized with the executable program code of calculation element, carried out by calculation element thereby they can be stored in the memory storage, perhaps they are made into respectively each integrated circuit modules, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (10)
1. a version disposal route that is used for single version software is characterized in that, comprising:
The file of the required operation of described single version software of each version is saved in respectively different catalogues;
Tackle the file access request of described single version software;
Described file access request is redirected to the corresponding catalogue of expectation version.
2. method according to claim 1 is characterized in that, the file of the required operation of described single version software of each version is saved in respectively different catalogues comprises:
The name that each described catalogue is set is called the version number of its corresponding version.
3. method according to claim 1 is characterized in that, the file of the required operation of described single version software of each version is saved in respectively different catalogues comprises:
In upgrading during described single version software, the file of the required operation of described single version software of redaction is saved in the catalogue, the file of the required operation of described single version software of legacy version is saved in another catalogue.
4. method according to claim 1 is characterized in that, when install being used for calling the application program of described single version software, the file of the required operation of described single version software of each version is saved in respectively different catalogues.
5. method according to claim 1 is characterized in that, the file access request of tackling described single version software comprises:
When installation is used for calling the application program of described single version software, other hook of Accreditation System level;
When calling described single version software, described hook is tackled described file access request in the described application program of operation.
6. method according to claim 5 is characterized in that, described hook is tackled described file access request and comprised:
Described hook hooks the NTCreateFile function among the ntdll.dll.
7. method according to claim 5 is characterized in that, described file access request is redirected to the corresponding catalogue of expectation version comprises:
Described application program is accepted the user to the selection of described version by control;
Send selected version to described hook.
8. method according to claim 7 is characterized in that, described file access request is redirected to the corresponding catalogue of expectation version also comprises:
Described hook is redirected to file of the same name under catalogue corresponding to described version with described file access request.
9. a version treating apparatus that is used for single version software is characterized in that, comprising:
Preserve module, be used for the file of the required operation of described single version software of each version is saved in respectively different catalogues;
Blocking module is used for the file access request of tackling described single version software;
Redirection module is used for described file access request is redirected to the corresponding catalogue of expectation version.
10. device according to claim 9 is characterized in that, described blocking module comprises:
Registering modules is used for when installation is used for calling the application program of described single version software other hook of Accreditation System level;
Described hook is used in the described application program of operation tackling described file access request when calling described single version software.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110177640.6A CN102855144B (en) | 2011-06-27 | 2011-06-27 | For version disposal route and the device of single version software |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110177640.6A CN102855144B (en) | 2011-06-27 | 2011-06-27 | For version disposal route and the device of single version software |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102855144A true CN102855144A (en) | 2013-01-02 |
CN102855144B CN102855144B (en) | 2016-04-20 |
Family
ID=47401755
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110177640.6A Expired - Fee Related CN102855144B (en) | 2011-06-27 | 2011-06-27 | For version disposal route and the device of single version software |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102855144B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106168917A (en) * | 2016-06-30 | 2016-11-30 | 北京金山安全软件有限公司 | Blue screen processing method and device and electronic equipment |
CN106528145A (en) * | 2016-10-28 | 2017-03-22 | 北京海誉动想科技股份有限公司 | Instance system and version management method for agent in instance system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040045016A1 (en) * | 2000-03-09 | 2004-03-04 | Extent Technologies Ltd. | Registry emulation |
CN101510157A (en) * | 2008-09-03 | 2009-08-19 | 北京搜狗科技发展有限公司 | Input method installation method and device |
CN101777002A (en) * | 2010-01-18 | 2010-07-14 | 杭州宇酷信息技术有限公司 | Software running method based on virtualization |
-
2011
- 2011-06-27 CN CN201110177640.6A patent/CN102855144B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040045016A1 (en) * | 2000-03-09 | 2004-03-04 | Extent Technologies Ltd. | Registry emulation |
CN101510157A (en) * | 2008-09-03 | 2009-08-19 | 北京搜狗科技发展有限公司 | Input method installation method and device |
CN101777002A (en) * | 2010-01-18 | 2010-07-14 | 杭州宇酷信息技术有限公司 | Software running method based on virtualization |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106168917A (en) * | 2016-06-30 | 2016-11-30 | 北京金山安全软件有限公司 | Blue screen processing method and device and electronic equipment |
CN106168917B (en) * | 2016-06-30 | 2019-12-06 | 珠海豹趣科技有限公司 | blue screen processing method and device and electronic equipment |
CN106528145A (en) * | 2016-10-28 | 2017-03-22 | 北京海誉动想科技股份有限公司 | Instance system and version management method for agent in instance system |
Also Published As
Publication number | Publication date |
---|---|
CN102855144B (en) | 2016-04-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105893084B (en) | Version upgrading method and terminal device | |
CN104598809B (en) | Program monitoring method and defending method thereof, as well as relevant device | |
EP3032418A1 (en) | Permission control method and device | |
US20140245448A1 (en) | Apparatus and method for analyzing permission of application for mobile devices and detecting risk | |
US20140366015A1 (en) | Method and system for combining multiple applications into a single binary file while maintaining per process sandboxing | |
CN102693394B (en) | Method and device for intercepting calling for service of application program | |
US8887152B1 (en) | Android application virtual environment | |
US9098715B1 (en) | Method and system for exchanging content between applications | |
CN101346727A (en) | Program execution control method, device, and execution control program | |
CN105094922A (en) | Application installation-free operation control method and device | |
CN109814948B (en) | Method and device for hook on native layer function based on xposed framework and electronic device | |
CN102567055A (en) | Satisfying application dependencies | |
CN102693395A (en) | Method and device for intercepting calling of application program for service | |
CN104885092A (en) | Security system and method for operating systems | |
CN104660606B (en) | A kind of long-distance monitoring method of application security | |
CN105844157A (en) | Monitoring method for App behaviors in Android system | |
CN104813679A (en) | Method, apparatus and system of screenshot grabbing and sharing | |
CN102968321B (en) | Application program erecting device and application program installation method | |
CN101091166A (en) | Methods and apparatuses to maintain multiple execution contexts | |
US20150135141A1 (en) | Method and apparatus for creating a control interface of a peripheral device | |
CN103176795A (en) | Method for applying plug-in technology to data filtering of information distribution software | |
US20160188310A1 (en) | Information processing apparatus, control method for information processing apparatus, and storage medium of program for executing control method | |
WO2011095036A1 (en) | Method and system for generating software package | |
CN104636154B (en) | Application program installation method and device | |
CN106681813B (en) | System management method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20160420 Termination date: 20170627 |