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); }
public static void CreateShortcutForThisExe(this IUpdateManager This) { This.CreateShortcutsForExecutable(Path.GetFileName( Assembly.GetEntryAssembly().Location), ShortcutLocation.Desktop | ShortcutLocation.StartMenu, Environment.CommandLine.Contains("squirrel-install") == false); }
public void SetRunOnWindowsStartup(string arguments = null) { _updateManager.CreateShortcutsForExecutable( Assembly.GetEntryAssembly().Location, ShortcutLocation.Startup, false, arguments, null); }
public static void CreateShortcutForThisExe(this IUpdateManager This) { This.CreateShortcutsForExecutable(Path.GetFileName(Assembly.GetEntryAssembly().Location), ShortcutLocations.Defaults, !Environment.CommandLine.Contains("squirrel-install"), null, null); }