Titano: time-lapse ecosystem (client, server, uploader) — in progress #1

Merged
Alby96 merged 204 commits from claude/keen-knuth-uhxv8w into main 2026-10-02 16:29:53 +02:00
Showing only changes of commit 028aa977f4 - Show all commits
+8 -5
View File
@@ -343,7 +343,7 @@ internal sealed class SetupViewModel : LocalizedViewModel, INotifyDataErrorInfo
if (request.Scope == InstallScope.AllUsers && !Elevation.IsElevated) if (request.Scope == InstallScope.AllUsers && !Elevation.IsElevated)
{ {
await InstallElevatedAsync(request, launch); await InstallElevatedAsync(request, program);
return; return;
} }
if (!await EnsureProgramsClosedAsync(request.Directory, InstallPlan.Programs(engine.Manifest, request.Directory))) return; if (!await EnsureProgramsClosedAsync(request.Directory, InstallPlan.Programs(engine.Manifest, request.Directory))) return;
@@ -361,8 +361,11 @@ internal sealed class SetupViewModel : LocalizedViewModel, INotifyDataErrorInfo
} }
} }
/// <summary>All users without administrator rights: an elevated copy installs with the chosen options.</summary> /// <summary>
private async Task InstallElevatedAsync(InstallRequest request, string? launch) /// All users without administrator rights: an elevated copy installs with the chosen options. This process
/// stays behind, hidden, to start <paramref name="program"/> unelevated if the copy asks for it.
/// </summary>
private async Task InstallElevatedAsync(InstallRequest request, string? program)
{ {
if (_arguments.Elevated) throw new SetupException(SetupExitCode.ElevationDeclined, "Still not elevated after relaunch."); if (_arguments.Elevated) throw new SetupException(SetupExitCode.ElevationDeclined, "Still not elevated after relaunch.");
var switches = new SetupArguments var switches = new SetupArguments
@@ -372,12 +375,12 @@ internal sealed class SetupViewModel : LocalizedViewModel, INotifyDataErrorInfo
AllUsers = true, AllUsers = true,
NoDesktopShortcut = !request.DesktopShortcuts, NoDesktopShortcut = !request.DesktopShortcuts,
NoStartMenu = !request.StartMenuShortcuts, NoStartMenu = !request.StartMenuShortcuts,
Launch = launch is not null, Launch = _launchAfter,
Language = Loc.Culture.Name, Language = Loc.Culture.Name,
}; };
var child = Elevation.Start(switches, WindowHandle) ?? throw new SetupException(SetupExitCode.ElevationDeclined, "Administrator approval declined."); var child = Elevation.Start(switches, WindowHandle) ?? throw new SetupException(SetupExitCode.ElevationDeclined, "Administrator approval declined.");
VisibilityRequested?.Invoke(this, false); VisibilityRequested?.Invoke(this, false);
Finish(await Elevation.WaitAsync(child, launch)); Finish(await Elevation.WaitAsync(child, program));
} }
private async Task UninstallAsync() private async Task UninstallAsync()