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

            _updateManager.CreateShortcutsForExecutable(_executableFilename, ShortcutLocation.StartMenu, updateOnly, null, null);
            _updateManager.CreateShortcutsForExecutable(_executableFilename, ShortcutLocation.Desktop, updateOnly, null, null);
            _updateManager.CreateShortcutsForExecutable(_executableFilename, ShortcutLocation.Startup, updateOnly, null, null);
        }
예제 #2
0
 public static void CreateShortcutForThisExe(this IUpdateManager This)
 {
     This.CreateShortcutsForExecutable(Path.GetFileName(
                                           Assembly.GetEntryAssembly().Location),
                                       ShortcutLocation.Desktop | ShortcutLocation.StartMenu,
                                       Environment.CommandLine.Contains("squirrel-install") == false);
 }
예제 #3
0
 public void SetRunOnWindowsStartup(string arguments = null)
 {
     _updateManager.CreateShortcutsForExecutable(
         Assembly.GetEntryAssembly().Location,
         ShortcutLocation.Startup,
         false,
         arguments,
         null);
 }
예제 #4
0
 public static void CreateShortcutForThisExe(this IUpdateManager This)
 {
     This.CreateShortcutsForExecutable(Path.GetFileName(Assembly.GetEntryAssembly().Location), ShortcutLocations.Defaults, !Environment.CommandLine.Contains("squirrel-install"), null, null);
 }