Alright I use Visual Basic 6 and I was wondering how I would implement an automatic update feature in my programs. What ive done so far is host (on my webserver) a currentversion.txt with the current version inside. then i have the new exe uploaded too. I used microsoft's INET control to open the txt file, see if it is the current version, and if it is, to download the exe file. Only problem is, inet is so fucken screwed up, sometimes it works, sometimes it dosent. while its running the whole program freezes, etc etc.
my other question would be, once it downloads the new EXE how would it automaticaly replace the old exe with the new one?
Thanks guys.
I think there is a GetInternetFile function google it and use Kill to delete the old one.
Quote from: Warrior on October 09, 2004, 07:25 PM
I think there is a GetInternetFile function google it and use Kill to delete the old one.
K ill try
how would i get the version of a 3rd party exe?
GetExeVersion?
Quote from: phvckmeh on October 09, 2004, 08:35 PM
how would i get the version of a 3rd party exe?
GetExeVersion?
If you are trying to update your own program why would you need to get the version of a 3rd party exe? Aren't you interested in your programs version? In that case isn't there like an "App.Version" method or something?
Quote from: Tuberload on October 09, 2004, 09:08 PM
Quote from: phvckmeh on October 09, 2004, 08:35 PM
how would i get the version of a 3rd party exe?
GetExeVersion?
If you are trying to update your own program why would you need to get the version of a 3rd party exe? Aren't you interested in your programs version? In that case isn't there like an "App.Version" method or something?
Yes but i made the updater.exe seperate. So then i could download and replace the old bot.exe
Seems like a waste to download a whole exe file just to check its version.
Quote from: Banana fanna fo fanna on October 09, 2004, 10:05 PM
Seems like a waste to download a whole exe file just to check its version.
i download a txt file, then comapre the version stated in the txt file to the version i checked from the bot.exe, and if there is a new version avalible i would then proceed to download the new exe
I do this for my customers on two of my client applications. On a shared network directory there is an INI file telling the version number and EXE name, such as:
[General]
Version=3.7
EXEName=\\xyzapps\thisprog\exe\GroksApp3.7.exe
The client checks his own version number and compares it to the version number claimed to be required by the INI. If the INI version is DIFFERENT (as opposed to just greater-than), the client renames itself to GroksApp.tmp (first deleting any existing GroksApp.tmp), then downloads the correct version from the server to the client. When copying to the client, it renames it to GroksApp.exe, regardless of the version.
This way if you put a version out there that has bugs, you can quickly roll-back to a previous version by changing the version number back one or two.
im kinda trying to do the same thing..
what im doing is when somebody types '/getbot' it downloads the bot for them..
what im trying to do is replace the old bot.. with the new bot.. but i dont really know how -.-
I did it almost the same way grok did but I read the Version from a .txt ,closed bot.exe, ran the Patcher.exe , deleted Bot.exe , downloaded new Bot.exe opened bot