I do it almost the same way.. App.exe renames itself to App_old.exe while its running. then it downloads app.exe each time app.exe starts it deletes any app_old.exe that exist. This way you never need to run a different file.. effectively its the same thing.
by doing it this way users on a network share always get the latest copy, even if people are still running in memory the old copy. The Old copy will be deleted as soon as all running instances are stopped and someone runs the new version. On Wed, Jan 19, 2011 at 11:42 AM, Robert martin <r...@chreos.co.nz> wrote: > Hi > > I didn't know you could rename an file currently in use. I wonder if that > works with Dlls as well. Anyway I am sure there is a way but I have > actually pretty much solved my issue (which was have a running app update > itself) using a similar method. > > This is a general overview of the solution... > > 1) Download new version with '_UPD' filename. > 2) Close and run '_UPD' version. > 3) UPD version then copies itself over normal file, closes and runs normal > file > > Thanks > Rob > > > On 19/01/2011 11:30 a.m., Kyley Harris wrote: > > I have to say that I'm lazy and rename an inuse file and then create the > file that has the name I want. Then I clean up the _old.??? later down the > track after a reboot etc. That way (for exes) the new file is available to > anyone without a reboot.. > > I'd like to know of the feature too if anyone has seen it, for curiosity > sake. > > On Wed, Jan 19, 2011 at 9:54 AM, Robert martin <r...@chreos.co.nz> wrote: > >> Hi all >> >> I remember there was a simple way to tell windows (I think it was a copy >> command) that on the next reboot file x should be replaced with new >> version of file x. I did a quick search but didn't see it (there is >> something the Microsoft mentions but it is not officially supported and >> involves editing a ini file (http://support.microsoft.com/kb/139086) ). >> >> I just wondered if anyone here knows what it is :) >> >> Thanks >> Rob >> _______________________________________________ >> NZ Borland Developers Group - Delphi mailing list >> Post: delphi@delphi.org.nz >> Admin: http://delphi.org.nz/mailman/listinfo/delphi >> Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: >> unsubscribe >> > > > > -- > Kyley Harris > Harris Software > +64-21-671-821 > > > _______________________________________________ > NZ Borland Developers Group - Delphi mailing list > Post: delphi@delphi.org.nz > Admin: http://delphi.org.nz/mailman/listinfo/delphi > Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: > unsubscribe > > > > No virus found in this message. > Checked by AVG - www.avg.com > Version: 10.0.1191 / Virus Database: 1435/3388 - Release Date: 01/18/11 > > > _______________________________________________ > NZ Borland Developers Group - Delphi mailing list > Post: delphi@delphi.org.nz > Admin: http://delphi.org.nz/mailman/listinfo/delphi > Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: > unsubscribe > -- Kyley Harris Harris Software +64-21-671-821
_______________________________________________ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: unsubscribe