Add Updater.exe that can update to latest release and debug

This commit is contained in:
Kamil Trzciński 2022-12-11 02:35:46 +01:00
parent 275ce48509
commit 2259e17b21
18 changed files with 623 additions and 59 deletions

View file

@ -19,6 +19,7 @@ namespace FanControl
Text += " v" + Application.ProductVersion.ToString();
Instance.Open(Text, true, "Global\\FanControlOnce");
Instance.RunUpdater(Text);
if (Instance.WantsRunOnStartup)
startupManager.Startup = true;
@ -147,6 +148,9 @@ namespace FanControl
private void fanLoopTimer_Tick(object sender, EventArgs e)
{
if (fanControl is null)
return;
SharedData_Update();
fanControl.Update(Visible);
}
@ -184,5 +188,10 @@ namespace FanControl
toolStripMenuItemAlwaysOnTopContext.Checked = TopMost;
Settings.Default.AlwaysOnTop = toolStripMenuItemAlwaysOnTop.Checked;
}
private void checkForUpdates_Click(object sender, EventArgs e)
{
Instance.RunUpdater(Text, true);
}
}
}