internal void RemoveShortcuts() { if (!Enabled) { return; } _updateManager.RemoveShortcutsForExecutable(_executableFilename, ShortcutLocation.StartMenu); _updateManager.RemoveShortcutsForExecutable(_executableFilename, ShortcutLocation.Desktop); _updateManager.RemoveShortcutsForExecutable(_executableFilename, ShortcutLocation.Startup); }
public static void RemoveShortcutForThisExe(this IUpdateManager This) { This.RemoveShortcutsForExecutable( Path.GetFileName(Assembly.GetEntryAssembly().Location), ShortcutLocation.Desktop | ShortcutLocation.StartMenu); }