예제 #1
0
        internal void RemoveShortcuts()
        {
            if (!Enabled)
            {
                return;
            }

            _updateManager.RemoveShortcutsForExecutable(_executableFilename, ShortcutLocation.StartMenu);
            _updateManager.RemoveShortcutsForExecutable(_executableFilename, ShortcutLocation.Desktop);
            _updateManager.RemoveShortcutsForExecutable(_executableFilename, ShortcutLocation.Startup);
        }
예제 #2
0
 public static void RemoveShortcutForThisExe(this IUpdateManager This)
 {
     This.RemoveShortcutsForExecutable(
         Path.GetFileName(Assembly.GetEntryAssembly().Location),
         ShortcutLocation.Desktop | ShortcutLocation.StartMenu);
 }