Article View: borland.public.cppbuilder.nativeapi
Article #5535Re: Updating Application
From: Michael Gillen
Date: Fri, 05 Aug 2005 18:53
Date: Fri, 05 Aug 2005 18:53
20 lines
1719 bytes
1719 bytes
Mike King wrote: > How can I make a program that updates it's self? In other words, it will need to download the > new EXE then replace the old one with the new one, but I can't modify a running program. How is > this done? TWebUpdate from http://www.tmssoftware.com/ is an option. Although, it would be easy to do yourself. Download a file with update info and see if it's the program needs to be updated. if so... Download the new program Either extract from your resource or download a "renaming program" or create a batch file Launch the "renaming program" and exit the renaming program or batch file: while program.exe exists, try to delete it When the program.exe no longer exists, rename the downloaded program to program.exe and launch it. -- -Michael Gillen
Technical Details
Message-ID:
<42f3b5b1$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!atl-c02.usenetserver.com!news.usenetserver.com!atl-c07.usenetserver.com!news.usenetserver.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<42ee62a7@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,7171097dce7fbc5a X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Michael Gillen" <michael@gillenconsultinggroup-nospam.com> Subject: Re: Updating Application Newsgroups: borland.public.cppbuilder.nativeapi References: <42ee62a7@newsgroups.borland.com> User-Agent: XanaNews/1.17.5.7 NNTP-Posting-Host: 67.122.199.249 Message-ID: <42f3b5b1$1@newsgroups.borland.com> Date: 5 Aug 2005 11:53:37 -0700 X-Trace: newsgroups.borland.com 1123268017 67.122.199.249 (5 Aug 2005 11:53:37 -0700) Lines: 20 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!atl-c02.usenetserver.com!news.usenetserver.com!atl-c07.usenetserver.com!news.usenetserver.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail