![]() ![]() ![]() The program is a windowless application with only one Main procedure. This is the code for the auto update program. The auto update program receives several parameters from the program to be updated and performs the auto update necessary and after that launches the updated system. If the program version is lower than the one read the program downloads the auto update program and launches it and the function returns True, which means that an auto update will run and the current program should be closed. The AutoUpdate function will check the version with the one read from a file located in a web site. In the program that you want to be auto updateable, you just need to call the AutoUpdate function in the Main procedure. ![]() A code that doesn't need change when used by different systems and could be compiled in a library.Ability to upgrade the system and also the auto update program.Some points that I'd like to have in an auto update program are: Looking through the internet, I couldn't find any code that I could use in my projects in a simple way, so I decided to write my own code. Today a lot of systems offer the ability to auto update, what makes the programmer's and the user's life easier. The worst scenario is when you need to make a database change, and all the users are required have the latest version, otherwise the system will crash. I've been developing client/server systems for a long time, and the worst part of the software life cycle is to update it in all users' machine. This code was written to be used in a controlled environment (intranet) and is not intended to be used through the internet due to security issues. The auto update is transparent to the user and checks for new updates every time the user launches the program. This code enables an application to update itself when there is a new version available. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |