I do it almost the same way..<div><br></div><div>App.exe renames itself to App_old.exe while its running. then it downloads app.exe</div><div>each time app.exe starts it deletes any app_old.exe that exist. This way you never need to run a different file.. </div>
<div>effectively its the same thing. </div><div><br></div><div>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.<br>
<br><div class="gmail_quote">On Wed, Jan 19, 2011 at 11:42 AM, Robert martin <span dir="ltr"><<a href="mailto:rob@chreos.co.nz">rob@chreos.co.nz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div bgcolor="#ffffff" text="#000000">
Hi<br>
<br>
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.<br>
<br>
This is a general overview of the solution...<br>
<br>
1) Download new version with '_UPD' filename. <br>
2) Close and run '_UPD' version.<br>
3) UPD version then copies itself over normal file, closes and runs
normal file<br>
<br>
Thanks<br>
Rob<div><div></div><div class="h5"><br>
<pre cols="72"></pre>
<br>
On 19/01/2011 11:30 a.m., Kyley Harris wrote:
</div></div><blockquote type="cite"><div><div></div><div class="h5">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..
<div>
<br>
</div>
<div>I'd like to know of the feature too if anyone has seen it,
for curiosity sake. <br>
<br>
<div class="gmail_quote">On Wed, Jan 19, 2011 at 9:54 AM, Robert
martin <span dir="ltr"><<a href="mailto:rob@chreos.co.nz" target="_blank">rob@chreos.co.nz</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">Hi all<br>
<br>
I remember there was a simple way to tell windows (I think
it was a copy<br>
command) that on the next reboot file x should be replaced
with new<br>
version of file x. I did a quick search but didn't see it
(there is<br>
something the Microsoft mentions but it is not officially
supported and<br>
involves editing a ini file (<a href="http://support.microsoft.com/kb/139086" target="_blank">http://support.microsoft.com/kb/139086</a>)
).<br>
<br>
I just wondered if anyone here knows what it is :)<br>
<br>
Thanks<br>
Rob<br>
_______________________________________________<br>
NZ Borland Developers Group - Delphi mailing list<br>
Post: <a href="mailto:delphi@delphi.org.nz" target="_blank">delphi@delphi.org.nz</a><br>
Admin: <a href="http://delphi.org.nz/mailman/listinfo/delphi" target="_blank">http://delphi.org.nz/mailman/listinfo/delphi</a><br>
Unsubscribe: send an email to <a href="mailto:delphi-request@delphi.org.nz" target="_blank">delphi-request@delphi.org.nz</a>
with Subject: unsubscribe<br>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
Kyley Harris<br>
Harris Software<br>
+64-21-671-821<br>
</div>
<pre><fieldset></fieldset>
_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: <a href="mailto:delphi@delphi.org.nz" target="_blank">delphi@delphi.org.nz</a>
Admin: <a href="http://delphi.org.nz/mailman/listinfo/delphi" target="_blank">http://delphi.org.nz/mailman/listinfo/delphi</a>
Unsubscribe: send an email to <a href="mailto:delphi-request@delphi.org.nz" target="_blank">delphi-request@delphi.org.nz</a> with Subject: unsubscribe</pre>
<br>
<fieldset></fieldset>
<br>
</div></div><p color="#000000" align="left">No virus found in
this message.<br>
Checked by AVG - <a href="http://www.avg.com" target="_blank">www.avg.com</a><br>
Version: 10.0.1191 / Virus Database: 1435/3388 - Release Date:
01/18/11</p>
</blockquote>
</div>
<br>_______________________________________________<br>
NZ Borland Developers Group - Delphi mailing list<br>
Post: <a href="mailto:delphi@delphi.org.nz">delphi@delphi.org.nz</a><br>
Admin: <a href="http://delphi.org.nz/mailman/listinfo/delphi" target="_blank">http://delphi.org.nz/mailman/listinfo/delphi</a><br>
Unsubscribe: send an email to <a href="mailto:delphi-request@delphi.org.nz">delphi-request@delphi.org.nz</a> with Subject: unsubscribe<br></blockquote></div><br><br clear="all"><br>-- <br>Kyley Harris<br>Harris Software<br>
+64-21-671-821<br>
</div>