Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Software upgrading method

A software upgrade and file technology, applied in software deployment and other directions, can solve problems such as file redundancy, increased burden on implementers, and inability to overwrite files in upgrade packages, and achieve the effect of eliminating file occupancy.

Pending Publication Date: 2019-07-23
厦门天锐科技股份有限公司
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

After the upgrade is complete, a large number of backup files are left, resulting in redundant files in the installation directory. It seems that the entire installation directory is disorganized
[0010] 3) The file occupation makes it impossible to upgrade
[0011] Some files are in the writing state, the system cannot rename the file due to the protection of the file, because the file name fails, the file of the upgrade package cannot be overwritten, and the upgrade cannot be performed normally, which will inevitably cause some functions to fail
[0012] 4) Secondary problems caused by redundant backup files
[0013] After the upgrade is successful, the backup file will be deleted in the next upgrade. If the deletion fails, the original file cannot be replaced with the backup file, and the upgrade file cannot be released.
[0014] 5) The database file cannot be backed up
[0017] 1) New version installation problems caused by incomplete uninstallation
[0018] If during the program upgrade process, some DLLs are injected into other processes, and they are not pulled out, pulling them out may cause other problems. The DLL cannot be deleted. At this time, if the program is uninstalled, the DLL will not be able to The problem of deleting, and then installing a new version will lead to DLL redundancy problems, and the main module and each DLL are not unified, affecting the normal operation of program functions
[0019] 2) Increase the difficulty of user operation
[0020] If the number of user terminals reaches a certain number, uninstalling and then installing at this time will undoubtedly add a heavy burden to the implementation personnel, and the inconvenience in operation will take a lot of time to complete
[0021] With the increase in the complexity of applications in some fields, operations such as drivers and database writing are added to the programs, and the complexity of program upgrades continues to increase. In this way, program upgrades can no longer be completed only by renaming or uninstalling and reinstalling. Can meet the needs, needs to be improved

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Software upgrading method
  • Software upgrading method
  • Software upgrading method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0036] The technical solutions and beneficial effects of the present invention will be described in detail below in conjunction with the accompanying drawings.

[0037] This embodiment mainly adopts Windows API—MoveFileEx, which will be introduced below.

[0038] MoveFileEx is an extended function of the MoveFile function, which is also used to move files, but it adds some functions. The prototype of the MoveFileEx function is as follows:

[0039] BOOL MoveFileEx(LPCTSTR lpExistingFileName, LPCTSTR lpNewFileName, DWORD dwFlags);

[0040] The first parameter is the name of the file to be moved, the second is the name of the file after the move, and the last parameter determines how to move.

[0041] Look carefully at the possible values ​​of the last parameter, one of which is MOVEFILE_DELAY_UNTIL_REBOOT, which is described in MSDN as follows:

[0042] The function does not move the file until the operating system is restarted. The system moves the file immediately after AUT...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a software upgrading method. The software upgrading method comprises the following steps: step 1, dividing a program installation directory into hierarchical structures; and step 2, replacing the original installation file with the updating component at a proper time, and backing up the original installation file. By means of the method, reliable upgrading can be achieved,file occupation in the upgrading process is avoided, and meanwhile program running interruption is avoided.

Description

technical field [0001] The invention relates to a software upgrading method. Background technique [0002] The current software upgrade methods are as follows: [0003] Method 1: Rename all the files in the installation path to bak files, and decompress the installation files to the target path; the next time you start, the non-bak files will be automatically started. [0004] Method 2: Stop the original installation program, and then install another program. [0005] For method one, there are the following disadvantages: [0006] 1) The module loading error caused the program to crash [0007] During the operation of the main frame program, due to the deprecation of functions, the functional modules may be released and reloaded, or the main frame will be loaded into a certain module when some services are running. Since the upgrade package has been executed and the new module has replaced the old module, the main frame will inevitably load new components. If the new DL...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/65
CPCG06F8/65
Inventor 邱志斌涂高元郭永兴陆云燕朱代旺时宜
Owner 厦门天锐科技股份有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products