CN102855144B - For version disposal route and the device of single version software - Google Patents

For version disposal route and the device of single version software Download PDF

Info

Publication number
CN102855144B
CN102855144B CN201110177640.6A CN201110177640A CN102855144B CN 102855144 B CN102855144 B CN 102855144B CN 201110177640 A CN201110177640 A CN 201110177640A CN 102855144 B CN102855144 B CN 102855144B
Authority
CN
China
Prior art keywords
version
software
version software
access request
single version
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.)
Expired - Fee Related
Application number
CN201110177640.6A
Other languages
Chinese (zh)
Other versions
CN102855144A (en
Inventor
周铭慧
刘百川
杨乐
高上
杨万岭
刘祥臻
刘岩
闫俊海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
Original Assignee
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Peking University Founder Group Co Ltd, Beijing Founder Electronics Co Ltd filed Critical Peking University Founder Group Co Ltd
Priority to CN201110177640.6A priority Critical patent/CN102855144B/en
Publication of CN102855144A publication Critical patent/CN102855144A/en
Application granted granted Critical
Publication of CN102855144B publication Critical patent/CN102855144B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention provides a kind of version disposal route for single version software, comprising: when installing for calling the application program of described single version software, the file run needed for the single version software of each version is saved in different catalogues respectively; The file access request of interception single version software; File access request is redirected to the catalogue expected corresponding to version.The invention provides a kind of version treating apparatus for single version software, comprising: preserve module, be saved in different catalogues respectively for the file run needed for the single version software of each version; Blocking module, for tackling the file access request of single version software; Redirection module, for being redirected to the catalogue expected corresponding to version by file access request.Invention increases the compatibility of infosystem.

Description

For version disposal route and the device of single version software
Technical field
The present invention relates to areas of information technology, in particular to a kind of version disposal route for single version software and device.
Background technology
A lot of softwares in Windows operating system have employed the COM technology of Windows operating system, the WindowsMediaFormatRuntime in such as Windows operating system.According to COM technology, application program is when calling WindowsMediaFormatRuntime, first the registration table of Windows operating system is searched, in registration table, find the installation directory of WindowsMediaFormatRuntime, then in this installation directory, start WindowsMediaFormatRuntime.
Inventor finds, have employed the software of COM technology when mounted, stricter control and verification have all been done to the FileVersion of software itself, often can cover the software of legacy version during edition upgrading, and in registration table, only record the installation directory of redaction, cause this kind of software in Windows operating system, be merely able to installation version, cannot coexist by multiple version.In the present invention, this kind of software is claimed to be single version software.
But on other occasions, some application program needs the single version software using more than two versions simultaneously.Way conveniently, such demand cannot realize.
Summary of the invention
The object of the invention is the limitation for single version software, propose version disposal route and the device that in an operating system, the single version software of multiple version can be used simultaneously.
In an embodiment of the present invention, provide a kind of version disposal route for single version software, comprise: when installing for calling the application program of described single version software, the file run needed for the single version software of each version is saved in different catalogues respectively; The file access request of interception single version software; File access request is redirected to the catalogue expected corresponding to version.
In an embodiment of the present invention, provide a kind of version treating apparatus for single version software, comprising: preserve module, for when installing for calling the application program of described single version software, the file run needed for the single version software of each version being saved in different catalogues respectively; Blocking module, for tackling the file access request of single version software; Redirection module, for being redirected to the catalogue expected corresponding to version by file access request.
The version disposal route of the above embodiment of the present invention and device are because be redirected to the version of expectation by file access request, so the single version software overcoming prior art cannot the problem that coexists of multi version, thus improve the compatibility of infosystem.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, and form a application's part, schematic description and description of the present invention, for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 shows the process flow diagram of the version disposal route according to the embodiment of the present invention;
Fig. 2 shows the system architecture schematic diagram according to the embodiment of the present invention;
Fig. 3 shows the schematic diagram of the version treating apparatus according to the embodiment of the present 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 of the version disposal route according to the embodiment of the present invention, comprising:
Step S10, is saved in different catalogues respectively by the file run needed for the single version software of each version;
Step S20, the file access request of interception single version software;
Step S30, is redirected to the catalogue expected corresponding to version by file access request.
The version disposal route of the present embodiment is because be redirected to the version of expectation by file access request, so the single version software overcoming prior art cannot the problem that coexists of multi version, thus improve the compatibility of infosystem.
Fig. 2 shows the system architecture schematic diagram according to the embodiment of the present invention.As shown in the figure, step S10 comprises: the name arranging each catalogue is called the version number of the version of its correspondence, three versions are such as had to be respectively 1.0,2.0,3.0, three catalogues are then named to be respectively 1.0,2.0,3.0, file A, B, C of version 1.0 being run needs are saved in catalogue 1.0 times, version 2 .0 is run file A, B, C of needing and is saved in catalogue 2.0 times, version 3 .0 is run file A, B, C of needing and is saved in catalogue 3.0 times.The method of the present embodiment is simple, can distinguish the single version software of different editions easily.
Preferably, step S10 comprises: when upgrading single version software, be saved in a catalogue by the file run needed for the single version software of redaction, is saved in another catalogue by the file run needed for the single version software of legacy version.
Preferably, when installing for calling the application program of single version software, the file run needed for the single version software of each version is saved in different catalogues respectively.
The method of previous preferred embodiment requires that user backs up the single version software of each version when upgrading single version software, can reduce the workload of set up applications like this, namely decrease the burden of application program publisher, but increase the weight of the burden of user.The method of a rear preferred embodiment can alleviate the backup burden (in fact, user does not accomplish this point usually yet) of user.
Preferably, as shown in Figure 2, step S20 comprises: when installing the application program for calling single version software, the hook of Accreditation System rank; When running application to call single version software, hook interception file access request.In Windows operating system, hook hooks the NTCreateFile function in ntdll.dll.The simple and easy realization of this preferred embodiment.
Preferably, step S30 comprises: application program accepts the selection of user to version by control; Send selected version to hook.Such as, application program can provide three buttons, is 1.0,2.0,3.0 respectively, and when user presses the button of 1.0, then the version number of expecting that user call the single version software of 1.0 passes " 1.0 " and sends hook to.
Preferably, step S30 also comprises: file access request is redirected to the file of the same name under catalogue corresponding to version by hook.Such as, file access request all for this single version software is redirected to catalogue 1.0 by hook, thus the version of the single version software of application call becomes 1.0, instead of the version that the registration table of operating system is given tacit consent to.
Fig. 3 shows the schematic diagram of the version treating apparatus according to the embodiment of the present invention, comprising:
Preserve module 10, be saved in different catalogues respectively for the file run needed for the single version software of each version;
Blocking module 20, for tackling the file access request of single version software;
Redirection module 30, for being redirected to the catalogue expected corresponding to version by file access request.
The version treating apparatus of the present embodiment overcomes the single version software of prior art cannot the problem that coexists of multi version, thus improves the compatibility of infosystem.
Preferably, blocking module 20 comprises: Registering modules, for when installing the application program for calling single version software, and the hook of Accreditation System rank; Hook, for when running application to call single version software, interception file access request.
As can be seen from the above description, the file that each version of single version software comprises is recorded by the above embodiments of the present invention, and these files is placed into one with under the catalogue of version number's name.When certain application program needs the software calling particular version, when application program launching, the hook of a registration system level, the file access request that capturing operation system is all.When application call during an interface of single version software, pass through hook, the request of single version Bootload alternative document can be intercepted and captured, according to the needs of application program to software version, this file access request is reoriented to the file under indicated release catalogue, allow single version software under the situation not changing native codes, realize multiple version access control.
Obviously, those skilled in the art should be understood that, above-mentioned of the present invention each module or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on network that multiple calculation element forms, alternatively, they can realize with the executable program code of calculation element, thus they storages can be performed by calculation element in the storage device, or they are made into each integrated circuit modules respectively, or the multiple module in them or step are made into single integrated circuit module to realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, 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 amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (8)

1., for a version disposal route for single version software, it is characterized in that, comprising:
When installing for calling the application program of described single version software, the file run needed for the described single version software of each version is saved in different catalogues respectively;
When upgrading described single version software, the file run needed for the described single version software of redaction is saved in a catalogue, the file run needed for the described single version software of legacy version is saved in another catalogue;
Tackle the file access request of described single version software;
Described file access request is redirected to the catalogue expected corresponding to version.
2. method according to claim 1, is characterized in that, the file run needed for the described single version software of each version is saved in different catalogues respectively and comprises:
The name of catalogue described in each is set and is called the version number of the version of its correspondence.
3. method according to claim 1, is characterized in that, the file access request tackling described single version software comprises:
When installing the application program for calling described single version software, the hook of Accreditation System rank;
When running described application program to call described single version software, described file access request tackled by described hook.
4. method according to claim 3, is characterized in that, described hook is tackled described file access request and comprised:
Described hook hooks the NTCreateFile function in ntdll.dll.
5. method according to claim 3, is characterized in that, is redirected to by described file access request and expects that the catalogue corresponding to version comprises:
Described application program accepts the selection of user to described version by control;
Send selected version to described hook.
6. method according to claim 5, is characterized in that, is redirected to by described file access request and expects that the catalogue corresponding to version also comprises:
Described file access request is redirected to the file of the same name under catalogue corresponding to described version by described hook.
7., for a version treating apparatus for single version software, it is characterized in that, comprising:
Preserving module, for when installing for calling the application program of described single version software, the file run needed for the described single version software of each version being saved in different catalogues respectively; When upgrading described single version software, the file run needed for the described single version software of redaction is saved in a catalogue, the file run needed for the described single version software of legacy version is saved in another catalogue;
Blocking module, for tackling the file access request of described single version software;
Redirection module, for being redirected to the catalogue expected corresponding to version by described file access request.
8. device according to claim 7, is characterized in that, described blocking module comprises:
Registering modules, for when installing the application program for calling described single version software, the hook of Accreditation System rank;
Described hook, for when running described application program to call described single version software, tackles described file access request.
CN201110177640.6A 2011-06-27 2011-06-27 For version disposal route and the device of single version software Expired - Fee Related CN102855144B (en)

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 CN102855144A (en) 2013-01-02
CN102855144B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001067379A2 (en) * 2000-03-09 2001-09-13 Exent Technologies, Inc. Registry emulation

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN102855144A (en) 2013-01-02

Similar Documents

Publication Publication Date Title
US10320940B1 (en) Managing generic data
US7720931B2 (en) System and method of remotely managing and loading artifacts
US20090254927A1 (en) Techniques For Deploying Virtual Software Applications On Desktop Computers
WO2015050588A2 (en) Method and system for combining multiple applications into a single binary file while maintaining per process sandboxing
CN109814948B (en) Method and device for hook on native layer function based on xposed framework and electronic device
US20080091808A1 (en) System and method of remotely managing and loading artifacts
EP3509270A1 (en) Data backup method and device, storage medium and electronic apparatus
CN102968321B (en) Application program erecting device and application program installation method
CN102567055A (en) Satisfying application dependencies
CN109104412A (en) Account right management method, management system and computer readable storage medium
US20110219019A1 (en) System And Method For Providing Network-Based Services To Users With High Availability
CN102170473A (en) Resource sharing system, mobile terminal and resource sharing method
CN105631312A (en) Method and system for processing rogue programs
US20160188310A1 (en) Information processing apparatus, control method for information processing apparatus, and storage medium of program for executing control method
CN101895883B (en) Smart card supporting authentication arithmetic update and method for updating authentication arithmetic
CN104636154B (en) Application program installation method and device
CN102855144B (en) For version disposal route and the device of single version software
CN104239508A (en) Data query method and data query device
US20110016175A1 (en) Method for realization of thin client and client terminal and server for same
CN103389905A (en) Plug-in loading method and plug-in loading system
US20140033204A1 (en) Background Services Launcher For Dynamic Service Provisioning
CN105224340B (en) The method and system of business paper injection attachment management
CN112256351A (en) Implementation method of Feign component, micro-service calling method and device
CA2892715C (en) System and method for unifying the listing and launching of applications and packages spread across multiple domains
CN110865848B (en) Component interception method and terminal equipment

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