MCPcopy Create free account
hub / github.com/Squirrel/Squirrel.Windows / Deshortcut

Method Deshortcut

src/Update/Program.cs:441–455  ·  view source on GitHub ↗
(string exeName, string shortcutArgs)

Source from the content-addressed store, hash-verified

439 }
440
441 public void Deshortcut(string exeName, string shortcutArgs)
442 {
443 if (String.IsNullOrWhiteSpace(exeName)) {
444 ShowHelp();
445 return;
446 }
447
448 var appName = getAppNameFromDirectory();
449 var defaultLocations = ShortcutLocation.StartMenu | ShortcutLocation.Desktop;
450 var locations = parseShortcutLocations(shortcutArgs);
451
452 using (var mgr = new UpdateManager("", appName)) {
453 mgr.RemoveShortcutsForExecutable(exeName, locations ?? defaultLocations);
454 }
455 }
456
457 public void ProcessStart(string exeName, string arguments, bool shouldWait)
458 {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected