Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
Bug for restarting app when exe path has spaces (fixes #144)
Browse files Browse the repository at this point in the history
  • Loading branch information
caesay committed Apr 26, 2023
1 parent 2f27e5d commit 02527ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Squirrel/UpdateManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
using System.Threading.Tasks;
using Microsoft.Win32;
using Squirrel.NuGet;
using Squirrel.SimpleSplat;
using Squirrel.Shell;
using Squirrel.SimpleSplat;
using Squirrel.Sources;

namespace Squirrel
Expand Down Expand Up @@ -323,7 +323,7 @@ public static async Task<Process> RestartAppWhenExited(string exeToStart = null,
var argsArg = arguments != null ?
String.Format("-a \"{0}\"", arguments) : "";

var updateProcess = Process.Start(getUpdateExe(), String.Format("--processStartAndWait {0} {1}", exeToStart, argsArg));
var updateProcess = Process.Start(getUpdateExe(), String.Format("--processStartAndWait \"{0}\" {1}", exeToStart, argsArg));

await Task.Delay(500).ConfigureAwait(false);

Expand Down

0 comments on commit 02527ee

Please sign in to comment.