diff --git a/DesktopNotifications.Windows/WindowsApplicationContext.cs b/DesktopNotifications.Windows/WindowsApplicationContext.cs index bd11e5e..61fc5ea 100644 --- a/DesktopNotifications.Windows/WindowsApplicationContext.cs +++ b/DesktopNotifications.Windows/WindowsApplicationContext.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Diagnostics; using System.IO; using System.Runtime.InteropServices; @@ -34,20 +34,7 @@ namespace DesktopNotifications.Windows SetCurrentProcessExplicitAppUserModelID(aumid); - using var shortcut = new ShellLink - { - TargetPath = mainModule.FileName, - Arguments = string.Empty, - AppUserModelID = aumid - }; - - var appData = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData); - var startMenuPath = Path.Combine(appData, @"Microsoft\Windows\Start Menu\Programs"); - var shortcutFile = Path.Combine(startMenuPath, $"{appName}.lnk"); - - shortcut.Save(shortcutFile); - return new WindowsApplicationContext(appName, aumid); } } -} \ No newline at end of file +}