> Hi all! I have an old executable file in my computer and how can I
> update/replce/overwrite it with the new exe file located in the server
> I'm connecting to. It's like I want it to get the new exe file and
> replace it before executing the application. The same concept with
> updating new virus definitions in your pc. How can it check if there's
> a newer version of the exe file?
Virus defs are different. An exe locks itself while running so you can't
simply over-write it with a newer version. Seems like everyone has their own
way of doing it. One way is to separate the "update check" from the app
itself.. So, if the app is called "AppB.exe", you create another one called
"AppA.exe" that only has two jobs. Those job are... to look at the server
for a newer version of "AppB.exe" and installed it if found. Once "AppA"
either updates or finds that it doesn't need an update, it launches "AppB"
(that's it's second job). Doing this is pretty easy and straight forward.

Signature
Ken Halter - MS-MVP-VB - http://www.vbsight.com
Please keep all discussions in the groups..