Link to home
Start Free TrialLog in
Avatar of michali
michali

asked on

How to update a program frome remote computer

What ways are there to remote a program in some computer from remote?
Avatar of alexo
alexo
Flag of Antarctica image

There are lots o ways, depends on what exactly you want to accomplish.

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.
Avatar of jkr
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?
Avatar of WxW
WxW

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 .
Avatar of michali

ASKER

jkr- how exactly the service is work?
by whom it is signalled and how it updates the program?
ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Wel, you should have *asked* if you had more questions on this, so I might have been more helpful than a 'C' ... (thanx anyway ;-)
Avatar of michali

ASKER

you are right.
I will remember this for next time.