(string exeName, string shortcutArgs)
| 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 | { |
nothing calls this directly
no test coverage detected