private void cbSendToMenu_CheckedChanged(object sender, EventArgs e) { if (loaded) { ShortcutHelpers.SetShortcut(cbSendToMenu.Checked, Environment.SpecialFolder.SendTo); } }
private void cbStartWithWindows_CheckedChanged(object sender, EventArgs e) { if (loaded) { //RegistryHelper.SetStartWithWindows(cbStartWithWindows.Checked); ShortcutHelpers.SetShortcut(cbStartWithWindows.Checked, Environment.SpecialFolder.Startup, "-silent"); } }
public static void CreateStartupShortcut(bool create) { //RegistryHelper.SetStartWithWindows(cbStartWithWindows.Checked); string filePath; #if STEAM filePath = Helpers.GetAbsolutePath("../ShareX_Launcher.exe"); #else filePath = Application.ExecutablePath; #endif ShortcutHelpers.SetShortcut(create, Environment.SpecialFolder.Startup, filePath, "-silent"); }
public static bool CreateSendToMenuButton(bool create) { return(ShortcutHelpers.SetShortcut(create, Environment.SpecialFolder.SendTo, Application.ExecutablePath)); }
public static void CreateStartupShortcut(bool create) { ShortcutHelpers.SetShortcut(create, Environment.SpecialFolder.Startup, GetStartupTargetPath(), "-silent"); }