You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How can I use UpdateManager.CreateShortcutsForExecutable with onlyUpdate = true #1050
// NB: If we've already installed the app, but the shortcut
// NB: If we've already installed the app, but the shortcut
// is no longer there, we have to assume that the user didn't
// want it there and explicitly deleted it, so we shouldn't
// annoy them by recreating it.
I'm trying to update the shortcuts for a project installed by squirrel, and I'd like to leverage this option for CreateShortcutsForExecutable to only update the shortcuts (so we don't end up recreating shortcuts after the user has deleted them). Currently we execute squirrel with --createShortcut= to generate the shortcuts in the start menu and desktop. Unfortunately though without making additional changes, this means we end up recreating the shortcuts even if a user deletes them.
Would it be reasonable to expose this option under the --createShortcut= flag somehow? Possible as an additional flag --only-update following it? I'd like to avoid recreating the same logic in my own update code if I can build on what already exists in squirrel.
Activity
Thieum commentedon May 2, 2019
@shimika There is a comment in the code explaining the behavior of this flag when used with CreateShortcutsForExecutable:
Squirrel.Windows/src/Squirrel/UpdateManager.ApplyReleases.cs
Line 214 in de5baa9
Does it clarify the intent of this flag?
vidia commentedon Oct 14, 2020
I have a similar desire as the OP here.
I'm trying to update the shortcuts for a project installed by squirrel, and I'd like to leverage this option for
CreateShortcutsForExecutableto only update the shortcuts (so we don't end up recreating shortcuts after the user has deleted them). Currently we execute squirrel with--createShortcut=to generate the shortcuts in the start menu and desktop. Unfortunately though without making additional changes, this means we end up recreating the shortcuts even if a user deletes them.Would it be reasonable to expose this option under the
--createShortcut=flag somehow? Possible as an additional flag--only-updatefollowing it? I'd like to avoid recreating the same logic in my own update code if I can build on what already exists in squirrel.