Open LaviniaC opened 8 years ago
ShortCutFile is only set when the shortcut is already existing, and GetShortcutsForExecutable returns the shortcut that would be created. Or are you saying that you want to know where we would put the shortcut?
Yes, I would. In my particular case I just want to change a small part of it (a rename). I see no harm in having it set
@LaviniaC I think you'll probably have to return it as a separate thing, but I'm totally :+1: for the idea. Can you submit a PR to this effect?
I am not sure that it is setting set if already existing ...
mgr.CreateShortcutsForExecutable("Startup.exe", ShortcutLocation.Desktop | ShortcutLocation.StartMenu, false, null, null);
var test = mgr.GetShortcutsForExecutable("Startup.exe", ShortcutLocation.Desktop | ShortcutLocation.StartMenu | ShortcutLocation.Startup, null).ToList();
I run the above lines, and still in the GetShortcutsForExecutable results ShortCutFile is empty
It calculates, logs it but does not set it.