protected override void OnRestoreFailed(Exception ex, UpdateInformation updateInformation) { base.OnRestoreFailed(ex, updateInformation); Clean().Wait(); if (LauncherRestartManager.ShowRestoreDialog(true)) { var options = CreateRestoreRestartOptions(); if (options is null) { throw ex; } ApplicationRestartManager.RestartApplication(options); } else { LauncherRegistryHelper.WriteValue(LauncherRegistryKeys.ForceRestore, true); Environment.Exit(-1); } }
public static void RestartElevated(IRestartOptions restartOptions) { ApplicationRestartManager.RestartApplication(restartOptions, true); }
protected internal void Restart(IReadOnlyList <IComponent> components) { var options = CreateRestartOptions(components); ApplicationRestartManager.RestartApplication(options); }