diff --git a/AutoUpdater.NET/DownloadUpdateDialog.cs b/AutoUpdater.NET/DownloadUpdateDialog.cs index 2507b2f..e63e58f 100644 --- a/AutoUpdater.NET/DownloadUpdateDialog.cs +++ b/AutoUpdater.NET/DownloadUpdateDialog.cs @@ -230,18 +230,11 @@ private void WebClientOnDownloadFileCompleted(object sender, AsyncCompletedEvent FileName = "msiexec" }; - var arguments = new Collection - { - "/i", - tempPath - }; - + processStartInfo.Arguments = $"/i \"{tempPath}\""; if (!string.IsNullOrEmpty(installerArgs)) { - arguments.Add(installerArgs); + processStartInfo.Arguments += $" {installerArgs}"; } - - processStartInfo.Arguments = Utils.BuildArguments(arguments); } if (AutoUpdater.RunUpdateAsAdmin)