diff --git a/NotificationTool/MainForm.cs b/NotificationTool/MainForm.cs index 57d5ff8..a041489 100644 --- a/NotificationTool/MainForm.cs +++ b/NotificationTool/MainForm.cs @@ -2,6 +2,7 @@ using DesktopBridge; using Microsoft.Win32; using System; +using System.Reflection; using System.Windows.Forms; namespace NotificationTool @@ -99,7 +100,7 @@ private void SetStartup() if (runAtStartup.Checked) { - rk.SetValue(this.Text, Application.ExecutablePath); + rk.SetValue(this.Text, Assembly.GetExecutingAssembly().Location); } else {