Updatecheck: Find a batchfile-solution to replace the running exe with a downloaded build.

TODO: find some sleep command for the batch file, as we sometimes get "access denied" while trying to overwrite the just terminated exe. Seems like taskkill doesn't close all handles itself.
This commit is contained in:
Ansgar Becker
2008-02-23 00:54:02 +00:00
parent 700ac08264
commit 9f23a9b313
7 changed files with 204 additions and 17 deletions

View File

@ -35,7 +35,8 @@ uses
data_sorting in '..\..\source\data_sorting.pas' {DataSortingForm},
runsqlfile in '..\..\source\runsqlfile.pas' {RunSQLFileForm},
createdatabase in '..\..\source\createdatabase.pas' {CreateDatabaseForm},
updatecheck in '..\..\source\updatecheck.pas' {frmUpdateCheck};
updatecheck in '..\..\source\updatecheck.pas' {frmUpdateCheck},
updatedownload in '..\..\source\updatedownload.pas' {frmUpdateDownload};
{$R *.RES}

View File

@ -1,4 +1,4 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ProjectGuid>{53d02113-9bb2-4326-83eb-53734f07dae7}</ProjectGuid>
<MainSource>heidisql.dpr</MainSource>
@ -137,6 +137,9 @@
<DCCReference Include="..\..\source\updatecheck.pas">
<Form>frmUpdateCheck</Form>
</DCCReference>
<DCCReference Include="..\..\source\updatedownload.pas">
<Form>frmUpdateDownload</Form>
</DCCReference>
<DCCReference Include="..\..\source\usermanager.pas">
<Form>UserManagerForm</Form>
</DCCReference>