Skip to content

Commit ebe045a

Browse files
committed
Installer improvements (Closes #1203) (#1207)
1 parent 5298ab1 commit ebe045a

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Daybreak.Installer/Program.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ static void RenderProgressBar(int currentStep, int totalSteps, int barSize)
3131
await Task.Delay(5000);
3232
}
3333

34+
while (Process.GetProcessesByName("gw").FirstOrDefault()?.HasExited is false)
35+
{
36+
Console.WriteLine($"Detected Guild Wars process is still running. Waiting 5s and retrying");
37+
await Task.Delay(5000);
38+
}
39+
3440
if (File.Exists(updatePkg))
3541
{
3642
Console.WriteLine("Unpacking files...");

Daybreak/Services/Updater/ApplicationUpdater.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ internal sealed class ApplicationUpdater(
5454

5555
private readonly static ProgressUpdate ProgressInitialize = new(0, "Initializing update");
5656
private readonly static ProgressUpdate ProgressCheckLatest = new(0, "Checking latest version");
57-
private readonly static ProgressUpdate ProgressFinalize = new(1, "Downloaded update. Please restart Daybreak to finalize the update");
57+
private readonly static ProgressUpdate ProgressFinalize = new(1, "Downloaded update. Please close any running Guild Wars instances and restart Daybreak to finalize the update");
5858
private static ProgressUpdate ProgressDownload(double progress) => new(progress, "Downloading update");
5959

6060
private readonly static TimeSpan DownloadInfoUpdateInterval = TimeSpan.FromMilliseconds(16);

0 commit comments

Comments
 (0)