Re: Close application for update

From: J French (erewhon_at_nowhere.com)
Date: 03/09/04


Date: Tue, 9 Mar 2004 11:05:18 +0000 (UTC)

On Tue, 9 Mar 2004 08:12:11 +0000 (UTC), erewhon@nowhere.com (J
French) wrote:

>On Mon, 8 Mar 2004 13:08:17 -0500, "Christian Charest"
><ccharest@mtq.gouv.qc.ca> wrote:
>
>>I am programming an Update module : i download and extract all the files
>>necessary in a folder MJ in the root of the application but in order to
>>replace the main exe i need to close it first. I tried to execute a batch
>>file then close the App, copy the files and open it again in the batch file
>>but it doesn't work. Now i am building an other app that would kill the Main
>>process, copy the file and then reopen the main process but i don't know how
>>to kill a specifique process using delphi. If you have any idea plz help me!

Alternatively find its Window Handle and send it a WM_CLOSE
or a WM_SYSCOMMAND with SC_CLOSE



Relevant Pages

  • Re: How to deploy real cert in packaged .exe (VS 2005, .net cf 2.0 sp2, WM 5.0)
    ... ..exe for the mobile device I developed an app for. ... You can run a batch file after you've built your project/solution or as part ... Or do I do the signing using the the tools they send me? ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Quit my vb6 dll but keep myHelp.chm open
    ... kill an Exe and it kills its kids ... just clone your EXE ... DLL running after the App has terminated. ...
    (microsoft.public.vb.general.discussion)
  • Close application for update
    ... necessary in a folder MJ in the root of the application but in order to ... copy the files and open it again in the batch file ... Now i am building an other app that would kill the Main ...
    (alt.comp.lang.borland-delphi)
  • Re: Application starts too soon
    ... The application runs froma a batch file. ... The batch file has my exe followed by a Shutdown command ... think the app tries to run, encounters an error, and exits. ... the app runs fine if I manually launch it after the command prompt ...
    (microsoft.public.windowsxp.embedded)
  • OpenWith External App Get ID To CLose
    ... I want my VB6 app to start an external .exe, get some thing back so that ... close but if it does not close then kill it. ... The problem is a little more complicated since I need to use openwith. ... my app would use openwith to open a text like file. ...
    (microsoft.public.vb.general.discussion)