From f331f906f46848a89470ba016492540c80cbd70b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luc=20=E2=99=A5?= Date: Tue, 21 Oct 2025 16:08:39 +0200 Subject: [PATCH] Fix updater download file creation --- Desktop/Services/Updater.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Desktop/Services/Updater.cs b/Desktop/Services/Updater.cs index e237675..692065b 100644 --- a/Desktop/Services/Updater.cs +++ b/Desktop/Services/Updater.cs @@ -269,7 +269,11 @@ public async Task DoUpdate() await using (var stream = await download.Content.ReadAsStreamAsync()) { - await using var fStream = new FileStream(_setupFilePath, FileMode.OpenOrCreate); + await using var fStream = new FileStream( + _setupFilePath, + FileMode.Create, + FileAccess.Write, + FileShare.None); var relativeProgress = new Progress(downloadedBytes => DownloadProgress.Value = ((double)downloadedBytes / totalBytes) * 100);