private void ExecuteRunOnStartupCommand(bool runOnStartup) { if (runOnStartup) { RegistryHelper.AddStartupKey(); } else { RegistryHelper.RemoveStartupKey(); } }
private static void OnAppUpdate(Version version, UpdateManager mgr) { mgr.CreateShortcutsForExecutable(AssemblyHelper.AppFileName, ShortcutLocations, true); mgr.CreateUninstallerRegistryEntry(); if (RegistryHelper.HasStartupKey) { RegistryHelper.AddStartupKey(); } MessageBoxHelper.Info(string.Format("New version (v{0}) installed.", AssemblyHelper.FileVersionInfo.ProductVersion)); }