Skip to content

Commit

Permalink
don't reference the install path when making shortcut since it will c…
Browse files Browse the repository at this point in the history
…hange after an update
  • Loading branch information
hahn-kev committed Dec 9, 2024
1 parent 224388d commit 05fbec0
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 05fbec0

Please sign in to comment.