Welcome! Log In Create A New Profile

Advanced

Program update itself

Posted by joe crevino 
joe crevino
Program update itself
March 10, 2009 04:40PM
I know I can do this using the windev installer but ....
Is there a way to have a program check on the network to see if a file has been updated than copy then new update and restart the program. The problem is I cannot copy over a open file.

joe crevino
Paulo Oliveira
Re: Program update itself
March 10, 2009 05:02PM
the only way i know is using two programs, i don't konw how to close the WDL by command.
In your main program check the content of the network file and if you decide for update use exerun to start the other program and end your main program, after the copy do the oposite.
Jeff Graham
Re: Program update itself
March 10, 2009 06:34PM
Hi Joe,

One idea would be to create a scheduled task specifying a simple executable that copies over the executable that you are running and then launches again. The scheduled task can be set up to execute once in 5 seconds and then close the running application.

We have the code for setting up scheduled tasks if you need an example.

Jeff
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: