michali
asked on
How to update a program frome remote computer
What ways are there to remote a program in some computer from remote?
I've done sth. like this by having a service runnig on the client which initiates the update when it's signalled to. Is this what you thought of?
I have a upd.ini in the server . Each time the program loads it downloads the ini and checks if newer version . If exist , prompts user and starts download .
ASKER
jkr- how exactly the service is work?
by whom it is signalled and how it updates the program?
by whom it is signalled and how it updates the program?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Wel, you should have *asked* if you had more questions on this, so I might have been more helpful than a 'C' ... (thanx anyway ;-)
ASKER
you are right.
I will remember this for next time.
I will remember this for next time.
For example, if you want the client program to upgrade itself, it can download the revised program from the server with a different name (since you cannot overwrite a running file, and even if you could - you'd like to preserve the original in case the download fails to complete) and replace it at next startup by means of MoveFileEx() or WININIT.INI
Another option is to partition your app into several DLLs, then FreeLibrary() and replace the needed DLL.
If you wanted to do something else, please elaborate.