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.
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;
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.