Application Starting - Restarting
-
Hi, I have developed an application that runs on the client machine throughout the System lifetime. Now its like, i want to sometimes update this application with newer versions. Please, i want some suggestions on how to perform this kind of activity. Do I need to run, one more program or what? Please help Sameer
-
Hi, I have developed an application that runs on the client machine throughout the System lifetime. Now its like, i want to sometimes update this application with newer versions. Please, i want some suggestions on how to perform this kind of activity. Do I need to run, one more program or what? Please help Sameer
A typically used technique is that program A starts B passing to B it's process handle and then exits. B waits on the handle and keeps waiting till A exits. Then B copies the new file over the existing file and restarts A and then exits. Nish
Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.
-
A typically used technique is that program A starts B passing to B it's process handle and then exits. B waits on the handle and keeps waiting till A exits. Then B copies the new file over the existing file and restarts A and then exits. Nish
Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.
Nish - Native CPian wrote: B waits on the handle and keeps waiting till A exits Thanx for the help, but how can B wait till A exits, I mean how to do that?? Sameer
-
Nish - Native CPian wrote: B waits on the handle and keeps waiting till A exits Thanx for the help, but how can B wait till A exits, I mean how to do that?? Sameer
Sameer Maggon wrote: but how can B wait till A exits, B should call WaitForSingleObject on A's process handle which A should pass to B Nish
Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.