diff --git a/Update/96px.ico b/Update/96px.ico index b17a6f70..1eb8f4a6 100644 Binary files a/Update/96px.ico and b/Update/96px.ico differ diff --git a/Update/Update.cs b/Update/Update.cs index 2d5a278d..e03f6d41 100644 --- a/Update/Update.cs +++ b/Update/Update.cs @@ -29,6 +29,8 @@ public Update() { if (DialogResult.Yes == MessageBox.Show("检查到新版本,是否更新?", "更新", MessageBoxButtons.YesNo)) { + try { foreach (Process p in Process.GetProcessesByName("devcpp")) p.Kill(); } catch { } + if (lasterVersion - currentVersion >= 2) { fullUpdate = true; @@ -37,7 +39,8 @@ public Update() else updater.Download(baseUrl + "Build/devcpp_i.zip", DownloadProgressCallback, DownloadCompletedCallback); } } - else Application.Exit(); + + Application.Exit(); } private void Update_Load(object sender, EventArgs e) { } diff --git a/update.exe b/update.exe index b2d932e5..10cfd69a 100644 Binary files a/update.exe and b/update.exe differ