Further improvements for update handling. IO-408

This commit is contained in:
Patrick Fic
2021-01-18 15:22:47 -08:00
parent 1b4e5fb3f0
commit f41488307f
9 changed files with 56 additions and 31 deletions

View File

@@ -63,12 +63,20 @@ namespace BodyshopPartner.Utils
{
logger.Fatal("Unable to set exception for http port", Ex.ToString());
}
Utils.UpdateHandler.ToggleStartWithWindows(true);
mgr.CreateShortcutForThisExe();
},
onAppUpdate: v => mgr.CreateShortcutForThisExe(),
onAppUpdate: v => {
mgr.CreateShortcutForThisExe();
Utils.UpdateHandler.ToggleStartWithWindows(Properties.Settings.Default.StartWithWindows);
},
onAppUninstall: v => mgr.RemoveShortcutForThisExe(),
onFirstRun: () => { logger.Info("We've run for the first time."); });
onFirstRun: () =>
{
logger.Info("We've run for the first time.");
Utils.UpdateHandler.ToggleStartWithWindows(true);
});
}
}
}