Hi all,
Not exactly a Delphi specific question - but there's loads of talent on this forum, so.....
Got a reverse TCP client/server program set working fine (one client, multiple servers), and now I want to set up an auto-update process, so that if I update the server program that resides in the same folder as the client, the client will distribute it to each of the other servers. That part is easy. What I'm unsure of is how does each server program, after receiving an update of itself, manage terminating itself, and having Windows run the new version?
Obviously I could write a script that runs each time Windows boots, but this is not quick enough, as some of the machines may be servers.
One thought I had was to run a Delphi helper application that runs all the time with the server programs, and watches out for a new version of the server being delivered - and it would then ask the server application to terminate, do the deleting and renaming, and launch the new version. While it works in theory, I find having a separate program running all the time just for this task very inefficient. Updates may only happen once every year for all I know.
Does anyone have any thoughts to help me out?
Much appreciated.
Not exactly a Delphi specific question - but there's loads of talent on this forum, so.....
Got a reverse TCP client/server program set working fine (one client, multiple servers), and now I want to set up an auto-update process, so that if I update the server program that resides in the same folder as the client, the client will distribute it to each of the other servers. That part is easy. What I'm unsure of is how does each server program, after receiving an update of itself, manage terminating itself, and having Windows run the new version?
Obviously I could write a script that runs each time Windows boots, but this is not quick enough, as some of the machines may be servers.
One thought I had was to run a Delphi helper application that runs all the time with the server programs, and watches out for a new version of the server being delivered - and it would then ask the server application to terminate, do the deleting and renaming, and launch the new version. While it works in theory, I find having a separate program running all the time just for this task very inefficient. Updates may only happen once every year for all I know.
Does anyone have any thoughts to help me out?
Much appreciated.