From 05fbec0cff07cf12adcff23255ddb67a5d193e1c Mon Sep 17 00:00:00 2001 From: Kevin Hahn Date: Mon, 9 Dec 2024 11:28:19 +0700 Subject: [PATCH] don't reference the install path when making shortcut since it will change after an update --- .../FwLiteDesktop/Platforms/Windows/WindowsShortcutService.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/backend/FwLite/FwLiteDesktop/Platforms/Windows/WindowsShortcutService.cs b/backend/FwLite/FwLiteDesktop/Platforms/Windows/WindowsShortcutService.cs index a8795986e..e757bf66b 100644 --- a/backend/FwLite/FwLiteDesktop/Platforms/Windows/WindowsShortcutService.cs +++ b/backend/FwLite/FwLiteDesktop/Platforms/Windows/WindowsShortcutService.cs @@ -13,7 +13,6 @@ public void Initialize(IServiceProvider services) var package = Package.Current; IShellLink link = (IShellLink)new ShellLink(); link.SetPath($@"shell:AppsFolder\{package.Id.FamilyName}!App"); - link.SetIconLocation(Path.Combine(package.InstalledLocation.Path, "logo_light.ico"), 0); var file = (IPersistFile)link; file.Save(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), "FieldWorks Lite.lnk"), false);