Bug for restarting app when exe path has spaces (fixes #144)

This commit is contained in:
Caelan Sayler
2023-04-26 10:55:46 +01:00
parent 2f27e5d84c
commit 02527ee4bc

View File

@@ -8,8 +8,8 @@ using System.Threading;
using System.Threading.Tasks;
using Microsoft.Win32;
using Squirrel.NuGet;
using Squirrel.SimpleSplat;
using Squirrel.Shell;
using Squirrel.SimpleSplat;
using Squirrel.Sources;
namespace Squirrel
@@ -323,7 +323,7 @@ namespace Squirrel
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);