From 307915eca675a80c6e580bbad3baf5a85e5962bf Mon Sep 17 00:00:00 2001 From: padartamas Date: Mon, 28 Aug 2023 23:48:44 +0200 Subject: [PATCH] Fix: GitHub update --- MndpTray/MndpTray.Core/Visual/NotifyContext.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MndpTray/MndpTray.Core/Visual/NotifyContext.cs b/MndpTray/MndpTray.Core/Visual/NotifyContext.cs index 5dc7819..bb10dd8 100644 --- a/MndpTray/MndpTray.Core/Visual/NotifyContext.cs +++ b/MndpTray/MndpTray.Core/Visual/NotifyContext.cs @@ -95,7 +95,7 @@ private void Update_Click(object sender, System.EventArgs e) if (res == DialogResult.Yes) { byte[] data = Update.Methods.DownloadBinary(url); - Update.Methods.UpdateProgram(Path.GetFullPath(System.AppContext.BaseDirectory), data); + Update.Methods.UpdateProgram(Path.GetFullPath(Environment.ProcessPath), data); MessageBox.Show("Update successful, please restart application!", "Update", MessageBoxButtons.OK, MessageBoxIcon.Information); }