Re: Internet update component



This code will restart running app.

procedure RestartApplication;
var
AppName : PChar;
begin
AppName := PChar(Application.ExeName);
ShellExecute(Application.Handle, 'open', AppName, nil, nil,
SW_SHOWNORMAL) ;
Application.Terminate;
end;




On Thu, 8 Nov 2007 14:11:52 +0100, "Peter Everix"
<peter.everix@xxxxxxxxxx> wrote:

Don't you have problems with replacing the exe file because it is still
running ?
.