void LaunchInstalledExecutable(string currentExecutableFile) { try { processManager.LaunchFileWithAdministrativeRights(InstallationInformation.TargetExecutableFile, $"postinstall \"{currentExecutableFile}\""); } catch (Win32Exception) { processManager.CloseCurrentProcess(); } }
public async Task Start( params string[] arguments) { await Prepare(arguments); if (startupPreparationOperation.ShouldTerminate) { logger.Verbose("The startup preparation operation signalled a termination request. Will quit process."); processManager.CloseCurrentProcess(); return; } await postPreparationOperation.RunAsync(); await mainWindowPreparationOperation.RunAsync(); }