[go: up one dir, main page]

CN100464299C - A method for updating computer software - Google Patents

A method for updating computer software Download PDF

Info

Publication number
CN100464299C
CN100464299C CNB2006100891853A CN200610089185A CN100464299C CN 100464299 C CN100464299 C CN 100464299C CN B2006100891853 A CNB2006100891853 A CN B2006100891853A CN 200610089185 A CN200610089185 A CN 200610089185A CN 100464299 C CN100464299 C CN 100464299C
Authority
CN
China
Prior art keywords
file
file name
application program
count
actual
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
CNB2006100891853A
Other languages
Chinese (zh)
Other versions
CN1904835A (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.)
Feitian Technologies Co Ltd
Original Assignee
Beijing Feitian Technologies 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 Beijing Feitian Technologies Co Ltd filed Critical Beijing Feitian Technologies Co Ltd
Priority to CNB2006100891853A priority Critical patent/CN100464299C/en
Publication of CN1904835A publication Critical patent/CN1904835A/en
Application granted granted Critical
Publication of CN100464299C publication Critical patent/CN100464299C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

为了解决卸载某一应用程序而不影响其它应用程序使用的问题,本发明提供了一种计算机软件更新的方法,该方法安装部分步骤为:安装应用程序,将应用程序中的文件名称存入包含文件名称和文件名称计数的已创建或新创建的文件列表中,比对应用程序中的文件名称与文件列表中的文件名称是否相同,根据比对结果对文件名称的计数作修改标记,并将应用程序中的实际文件复制到操作系统中;卸载部分步骤为:检索需要卸载的应用程序中的文件名称,并将该文件名称的计数作与安装时互逆的修改标记,然后判断该文件名称的计数是否为初始值,若是,则删除相应的文件名称、文件名称的计数和实际的文件,否则,保留相应的文件名称、文件名称的计数和实际的文件。

Figure 200610089185

In order to solve the problem of uninstalling a certain application program without affecting the use of other application programs, the present invention provides a method for updating computer software. The installation part of the method is as follows: install the application program, and store the file name in the application program into a file containing In the created or newly created file list of file name and file name count, compare whether the file name in the application program is the same as the file name in the file list, modify the count of the file name according to the comparison result, and set The actual files in the application are copied to the operating system; the uninstallation part is as follows: retrieve the file name in the application to be uninstalled, and make the count of the file name a modification mark reciprocally with that of the installation, and then judge the file name Whether the count of is the initial value, if so, delete the corresponding file name, the count of the file name and the actual file, otherwise, keep the corresponding file name, the count of the file name and the actual file.

Figure 200610089185

Description

A kind of method of updating computer software
Technical field
The invention belongs to computer software fields, particularly a kind of method of updating computer software.
Background technology
For computer software, the many application programs with equal modules may be packaged into a plurality of products, and its core is identical, different just installation interface parts.But the user of purchase applications might not understand this situation, when the user is installed in these application programs in the same operating system, some functions of modules unanimity in possible these application programs, and its file name also is consistent, so when the user need unload a certain application program, often also can the file delete that title is identical in other application program be fallen, cause other application program normally not use.
For example: the user has installed application A on its computing machine, comprise file A1, A2, A3 etc. in the application A, need set up applications B now, comprise file A1, A4, A5 etc. among the application program B, after two application A, B install, the A1 of application program B new clothes will cover original A1 so, if we need unload application program B, file A1 will be unloaded, and consequently original application A of installing can not normally be used.
Summary of the invention
In order to overcome when the user unloads a certain application program, it is deleted that other application program has the file of same file name, the problem that causes other application program normally not use, the invention provides a kind of method of updating computer software, described method comprises installation and unloads two parts that the mounting portion comprises the steps:
Steps A: set up applications;
Step B: whether listed files is arranged in the checked operation system,,, then create the listed files of a new counting that comprises file name and file name, then execution in step C if do not have if having then execution in step C;
Step C: whether more identical with file name in the described listed files than the file name in the application programs, if two file names are identical, if execution in step D then is two file name differences, then execution in step E;
Step D: with the counting that has the same file title in the described listed files mark that makes an amendment, and the actual file in the application program copied in the operating system, the actual file new with version covers the old file of version;
Step e: the file name in the application program is deposited in the described listed files, and the counting of the file name that newly deposits in is the mark that makes an amendment on the basis of predetermined initial value, and the actual file in the application program is copied in the operating system;
The unloading part comprises the steps:
Step F: unloading application program;
Step G: retrieval needs the file name in the application program of unloading in listed files, and the counting of the file name that retrieves is made modification mark reciprocal when installing;
Step H: whether the counting of judging file name in the described listed files is initial value, if initial value is then deleted corresponding file name, the counting of file name and the actual file in the operating system in the described listed files; If be not initial value, then keep corresponding file name, the counting of file name and the actual file in the operating system in the described listed files.
Beneficial effect: when having a plurality of application program with same file title in the same operating system, the method that the application of the invention provides has guaranteed to unload a certain application program and the use that can not influence other application program.
Description of drawings
Fig. 1 is the method mounting portion principle flow chart of a kind of updating computer software of the present invention;
Fig. 2 is the method unloading part principle flow chart of a kind of updating computer software of the present invention;
Fig. 3 is the method mounting portion process flow diagram of a kind of updating computer software of the present invention;
Fig. 4 is the method unloading part process flow diagram of a kind of updating computer software of the present invention.
Embodiment
The operating process of the method for a kind of updating computer software of the present invention comprises the two large divisions, i.e. mounting portion and unloading part.
The mounting portion principle process may further comprise the steps as shown in Figure 1:
Step 101: beginning is installed;
Step 102: set up applications;
Whether step 103: checking has listed files;
Step 104:, then create listed files if do not have;
Step 105: the file name in the application program is deposited in the listed files, and to the counting of each file name mark that on the basis of initial value, makes an amendment;
Step 106:, then file name in the application program and the file name in the listed files are compared if having;
Step 107: judge whether the file name in the application program has identical with file name in the listed files;
Step 108: if do not have, then corresponding different file name in the application program is deposited in the listed files, and on the basis of initial value, counts, at last with the file copy of reality in operating system;
Step 109: if having, the mark that then counting of corresponding identical file name in the listed files made an amendment, and the new actual file of version covers the old actual file of version;
Step 110: installation procedure finishes.
Unloading part principle process may further comprise the steps as shown in Figure 2:
Step 201: unloading beginning;
Step 202: unloading application program;
Step 203: the file name in listed files in the retrieve application;
Step 204: the counting of the file name that retrieves is made modification mark reciprocal when installing;
Step 205: whether the counting of judging the file name that retrieves in listed files is initial value;
Step 206: if not, actual file in the file name that corresponding counting was not an initial value during then document retaining was tabulated and corresponding counts and the operating system;
Step 207: if then corresponding counting is file actual in the file name of initial value and corresponding counts and the operating system in the deleted file tabulation;
Step 208: finish unloading.
The invention will be further described below in conjunction with the drawings and specific embodiments, but not as a limitation of the invention.
The method installation procedure part of a kind of updating computer software of the present invention may further comprise the steps as shown in Figure 3:
Step 301: beginning is installed;
Step 302: set up applications A;
Step 303: be not checked through listed files;
Step 304: create new listed files, see table 1 for details;
File name Counting
Table 1
Step 305: the file name A1 in the application A, A2, A3 are deposited in the listed files, and the counting of each file name is added 1 on the basis of initial value 0, we adopt the form of "+1 " mark that makes an amendment here, can certainly adopt " 1 " or " *2 " etc. the mark that makes an amendment sees table 2 for details, with the file copy of reality in operating system;
File name Counting
A1 0+1
A2 0+1
A3 0+1
Table 2
Step 306: set up applications B;
Step 307: be checked through listed files, the file name in the file name A1 among the application program B, A4, A5 and the listed files table 2 is compared;
Step 308: judge whether the file name among the application program B has identical with file name in the listed files;
Step 309: the file name in the file name A4 among the application program B, A5 and the listed files is inequality, then A4, A5 are deposited in the listed files, and on the basis of initial value 0, add 1 counting, at last with the file copy of reality in operating system, see table 3 for details;
File name Counting
A1 0+1
A2 0+1
A3 0+1
A4 0+1
A5 0+1
Table 3
Step 310: the file name A1 among the application program B is identical with A1 in the listed files, and then the counting with file name A1 correspondence in the listed files table 3 adds 1 again, sees table 4 for details, and the new actual file of version covers the old actual file of version;
File name Counting
A1 0+1+1
A2 0+1
A3 0+1
A4 0+1
A5 0+1
Table 4
Step 311: installation procedure finishes.
The method unloading flow process part of a kind of updating computer software of the present invention may further comprise the steps as shown in Figure 4:
Step 401: unloading beginning;
Step 402: unloading application A;
Step 403: the file name A1 in listed files table 4 among the retrieve application A, A2, A3;
Step 404: after retrieving, the counting of A1, A2, A3 is subtracted 1;
Step 405: whether the counting of judging A1, A2, A3 is initial value 0;
Step 406: the counting of the file name A1 correspondence in the listed files is 1, rather than initial value 0, then actual file in the counting of document retaining title A1 and correspondence thereof and the operating system;
File name Counting
A1 0+1
A2 0
A3 0
A4 0+1
A5 0+1
Table 5
Step 407: the counting of the file name A2 in the listed files table 5, A3 correspondence is an initial value 0, then file name A2, the A3 in the deleted file tabulation table 5 and counting accordingly, the actual file of file name A2, A3 correspondence in the deletion action system obtains table 6 simultaneously;
File name Counting
A1 0+1
A4 0+1
A5 0+1
Table 6
Step 408: finish unloading.
We are when also listed files increases a new file name when mounted, the counting of its correspondence is set to initial value, whether the counting of directly judging the file name that retrieves when unloading is initial value, if, then delete file actual in the counting of corresponding file title, file name and the operating system, if not, then keep file actual in corresponding file title and the operating system, and the counting of file name made modification mark reciprocal when installing, so also can realize purpose of the present invention.
Above-described embodiment, the present invention embodiment a kind of more preferably just, the common variation that those skilled in the art carries out in the technical solution of the present invention scope and replacing all should be included in protection scope of the present invention.

Claims (1)

1.一种计算机软件更新的方法,其特征在于,所述方法包括安装和卸载两个部分,安装部分包括如下步骤:1. A method for updating computer software, characterized in that, the method comprises two parts of installation and unloading, and the installation part comprises the steps: 步骤A:安装应用程序;Step A: Install the application; 步骤B:检查操作系统中是否有文件列表,如果有则执行步骤C,如果没有,则创建一个新的包括文件名称和文件名称的计数的文件列表,然后执行步骤C;Step B: check whether there is a file list in the operating system, if there is, then perform step C, if not, then create a new file list including the file name and the count of the file name, and then perform step C; 步骤C:比对应用程序中的文件名称与所述文件列表中的文件名称是否相同,如果两个文件名称相同,则执行步骤D,如果两个文件名称不同,则执行步骤E;Step C: Check whether the file names in the application program are the same as the file names in the file list, if the two file names are the same, then perform step D, and if the two file names are different, then perform step E; 步骤D:将所述文件列表中具有相同文件名称的计数作修改标记,并将应用程序中的实际文件复制到操作系统中,用版本新的实际文件覆盖版本旧的文件;Step D: mark the counts with the same file name in the file list as modification marks, copy the actual files in the application program to the operating system, and overwrite the old files with the new actual files; 步骤E:将应用程序中的文件名称存入所述文件列表中,新存入的文件名称的计数是在预定初始值的基础上作修改标记,并将应用程序中的实际文件复制到操作系统中;Step E: Store the file names in the application program into the file list, the count of the newly stored file names is to make a modification mark on the basis of the predetermined initial value, and copy the actual files in the application program to the operating system middle; 卸载部分包括如下步骤:The uninstallation part includes the following steps: 步骤F:卸载应用程序;Step F: Uninstall the application; 步骤G:在文件列表中检索需要卸载的应用程序中的文件名称,并将检索到的文件名称的计数作与安装时互逆的修改标记;Step G: Retrieve the file name in the application program that needs to be uninstalled in the file list, and set the count of the retrieved file name as a modification mark that is reciprocal to that during installation; 步骤H:判断所述文件列表中文件名称的计数是否为初始值,若为初始值,则删除所述文件列表中相应的文件名称、文件名称的计数和操作系统中的实际文件;若不为初始值,则保留所述文件列表中相应的文件名称、文件名称的计数和操作系统中的实际文件。Step H: judging whether the count of the file name in the file list is the initial value, if it is the initial value, then delete the corresponding file name in the file list, the count of the file name and the actual file in the operating system; if not Initial value, the corresponding file name in the file list, the count of the file name and the actual file in the operating system are kept.
CNB2006100891853A 2006-08-08 2006-08-08 A method for updating computer software Expired - Fee Related CN100464299C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006100891853A CN100464299C (en) 2006-08-08 2006-08-08 A method for updating computer software

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006100891853A CN100464299C (en) 2006-08-08 2006-08-08 A method for updating computer software

Publications (2)

Publication Number Publication Date
CN1904835A CN1904835A (en) 2007-01-31
CN100464299C true CN100464299C (en) 2009-02-25

Family

ID=37674106

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006100891853A Expired - Fee Related CN100464299C (en) 2006-08-08 2006-08-08 A method for updating computer software

Country Status (1)

Country Link
CN (1) CN100464299C (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014117556A1 (en) * 2013-01-30 2014-08-07 腾讯科技(深圳)有限公司 Redundant file deletion method, apparatus and storage medium

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101770515B (en) * 2010-01-18 2012-01-11 杭州顺网科技股份有限公司 Data block comparison based data updating method
CN101848274A (en) * 2010-03-12 2010-09-29 深圳市同洲电子股份有限公司 Methods and devices for backup and recovery of records in mobile terminal
CN102053853A (en) * 2010-12-30 2011-05-11 北京像素软件科技股份有限公司 Version updating method of online game
CN102591680A (en) * 2011-12-19 2012-07-18 深圳桑菲消费通信有限公司 Method for automatically deleting and unloading software related files
CN105700903A (en) * 2014-11-28 2016-06-22 中兴通讯股份有限公司 User terminal upgrading method and user terminal

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003186676A (en) * 2001-12-21 2003-07-04 Ricoh Co Ltd Software uninstallation method
CN1480837A (en) * 2002-06-27 2004-03-10 System and method for setup of software applied program according to influence-free ways
US20040255290A1 (en) * 2003-06-12 2004-12-16 International Business Machines Corporation Installing fixes based on usage
JP2005025264A (en) * 2003-06-30 2005-01-27 Nec Corp Method for uninstalling software, program for executing the same and recording medium with its program stored therein
CN1645327A (en) * 2005-01-12 2005-07-27 上海科泰世纪科技有限公司 Module life period managing method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003186676A (en) * 2001-12-21 2003-07-04 Ricoh Co Ltd Software uninstallation method
CN1480837A (en) * 2002-06-27 2004-03-10 System and method for setup of software applied program according to influence-free ways
US20040255290A1 (en) * 2003-06-12 2004-12-16 International Business Machines Corporation Installing fixes based on usage
JP2005025264A (en) * 2003-06-30 2005-01-27 Nec Corp Method for uninstalling software, program for executing the same and recording medium with its program stored therein
CN1645327A (en) * 2005-01-12 2005-07-27 上海科泰世纪科技有限公司 Module life period managing method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
工控软件互操作规范OPC技术讲座 第5讲 OPC服务器与组件的安装注册. 姜捷,李京,龚建辉,凌志浩.自动化仪表,第23卷第8期. 2002 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014117556A1 (en) * 2013-01-30 2014-08-07 腾讯科技(深圳)有限公司 Redundant file deletion method, apparatus and storage medium

Also Published As

Publication number Publication date
CN1904835A (en) 2007-01-31

Similar Documents

Publication Publication Date Title
CN100464299C (en) A method for updating computer software
CN102314561B (en) Automatic analysis method and system of malicious codes based on API (application program interface) HOOK
CN103699624B (en) Browser data processing method and device
JP2012508919A (en) Application restore point
US20090187822A1 (en) System auditing for setup applications
CN101329633A (en) A software upgrading method and software upgrading device
CN101789888A (en) Detection method and device for software installation
EP2766804B1 (en) System and method of rolling upgrades of data traits
US7421560B2 (en) Method and system of computing quota usage
CN112579202B (en) Method, device, equipment and storage medium for editing server program of Windows system
CN109471799B (en) Method, device, storage medium and terminal for deploying demand environment
CN103902562A (en) Method and device for upgrading terminal databases
US7181739B1 (en) Installation relationship database
CN104408201A (en) Junk file cleaning method and device
CN102331945A (en) Application management method based on electronic store
CN115048131A (en) Desktop application program increment updating method and system based on file hash
CN110389714B (en) Method, apparatus and computer storage medium for data input and output
CN110968569B (en) Database management method, database management device, and storage medium
US7444347B1 (en) Systems, methods and computer products for compression of hierarchical identifiers
JP2013145425A (en) Application server device
CN1315043C (en) Compatibility upgrading method of embedded programm
WO2004102381A1 (en) Selective process restart based on api changes
CN117033446A (en) Deletion method, storage medium and computer equipment for database execution plan cache
CN117270931A (en) Application server patch upgrading method and device, electronic equipment and storage medium
US10324700B2 (en) Storing computing component installation information

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
C56 Change in the name or address of the patentee

Owner name: FEITIAN CHENGXIN TECHNOLOGIES CO., LTD.

Free format text: FORMER NAME: BEIJING FEITIAN CHENGXIN SCIENCE + TECHNOLOGY CO. LTD.

CP03 Change of name, title or address

Address after: 100085 Beijing city Haidian District Xueqing Road No. 9 Ebizal building B block 17 layer

Patentee after: Feitian Technologies Co.,Ltd.

Address before: 100083, Haidian District, Xueyuan Road, No. 40 research, 7 floor, 5 floor, Beijing

Patentee before: FEITIAN TECHNOLOGIES Co.,Ltd.

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: 20090225