Exemplo n.º 1
0
        private void CreateShortcut()
        {
            var req = new ToastRequest()
            {
                ShortcutFileName       = AppId + ".lnk",
                ShortcutTargetFilePath = Process.GetCurrentProcess().MainModule.FileName,
                AppId           = AppId,
                ActivatorId     = typeof(NotificationActivator).GUID,
                WaitingDuration = TimeSpan.Zero,
            };

            _ = ToastManager.CheckInstallShortcut(req);
        }