• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 187
  • Last Modified:

How to update a program frome remote computer

What ways are there to remote a program in some computer from remote?
0
michali
Asked:
michali
1 Solution
 
alexoCommented:
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.
0
 
jkrCommented:
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?
0
 
WxWCommented:
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 .
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
michaliAuthor Commented:
jkr- how exactly the service is work?
by whom it is signalled and how it updates the program?
0
 
jkrCommented:
>>by whom it is signalled and how it updates the program?

It is by a 'helper' app that uses an IPC channel to initiate the update - this app can either be started manually or by the setup program that installs a newer component on the server...
0
 
jkrCommented:
Wel, you should have *asked* if you had more questions on this, so I might have been more helpful than a 'C' ... (thanx anyway ;-)
0
 
michaliAuthor Commented:
you are right.
I will remember this for next time.
0

Featured Post

2018 Annual Membership Survey

Here at Experts Exchange, we strive to give members the best experience. Help us improve the site by taking this survey today! (Bonus: Be entered to win a great tech prize for participating!)

Tackle projects and never again get stuck behind a technical roadblock.
Join Now