Skip to content

Commit 8e87884

Browse files
committed
Using Utils.BuildArguments to create arguments string for MSI installer causes issues so reverted that change. This fixes #664.
1 parent 1251544 commit 8e87884

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

AutoUpdater.NET/DownloadUpdateDialog.cs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -230,18 +230,11 @@ private void WebClientOnDownloadFileCompleted(object sender, AsyncCompletedEvent
230230
FileName = "msiexec"
231231
};
232232

233-
var arguments = new Collection<string>
234-
{
235-
"/i",
236-
tempPath
237-
};
238-
233+
processStartInfo.Arguments = $"/i \"{tempPath}\"";
239234
if (!string.IsNullOrEmpty(installerArgs))
240235
{
241-
arguments.Add(installerArgs);
236+
processStartInfo.Arguments += $" {installerArgs}";
242237
}
243-
244-
processStartInfo.Arguments = Utils.BuildArguments(arguments);
245238
}
246239

247240
if (AutoUpdater.RunUpdateAsAdmin)

0 commit comments

Comments
 (0)