Article View: borland.public.cppbuilder.nativeapi
Article #11309Re: Automatic Software Update
From: Malcolm Smith
Date: Wed, 18 Feb 2004 19:40
Date: Wed, 18 Feb 2004 19:40
34 lines
2176 bytes
2176 bytes
I have a function like this in my MJFSecurity suite. I have a pair of components that talk to each other and a helper application. The main application launches the helper, the helper waits for the main exe to close after being told the helper is available. The helper then applies the patch file and the main exe is launched again. -- --- Malcolm Smith MJ Freelancing http://www.mjfreelancing.com Borland Technology Partner "Curt" <a@aol.com> wrote in message news:40332606$1@newsgroups.borland.com... > I have an application with a (half working) automatic update feature. When > requested, the app goes to a web site and downloads any updated files to a > temporary directory on the PC. My problem is that I can't find a way to > reliably install the updates because the application itself has a lock on > the underlying executable file. I've thought of firing up a script which > sleeps for a few seconds in order to allow the application to exit but that > doesn't seem like the best solution. > > Ideally, I would like to close the application, update the files and then > automatically restart the updated application. > > Thanks, > Curt > > >
Technical Details
Message-ID:
<4033bf8e@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<40332606$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,96d6688d5f3db8a7 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-02-18 12:00:37 PST Reply-To: "Malcolm Smith" <mjfreelancing@optusnet.com.au> From: "Malcolm Smith" <mjfreelancing@optusnet.com.au> Newsgroups: borland.public.cppbuilder.nativeapi References: <40332606$1@newsgroups.borland.com> Subject: Re: Automatic Software Update Date: Thu, 19 Feb 2004 06:40:02 +1100 Lines: 36 Organization: MJ Freelancing X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 211.30.147.112 Message-ID: <4033bf8e@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1077133198 211.30.147.112 (18 Feb 2004 11:39:58 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail