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);