From e7fdaa4db5bad242c5377ec7cc3b569a959a4100 Mon Sep 17 00:00:00 2001 From: Jeremy Wu Date: Tue, 9 Feb 2021 08:48:30 +1100 Subject: [PATCH] allow msi installation --- Droplex/Installer.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Droplex/Installer.cs b/Droplex/Installer.cs index a445ba1..f0cb775 100644 --- a/Droplex/Installer.cs +++ b/Droplex/Installer.cs @@ -16,10 +16,13 @@ public static class Installer /// Thrown when the installation is cancelled or unsuccessful public static async Task Install(string filepath, string installArgs) { + // For the case where path contains a comma + var path = '"' + filepath + '"'; + var psi = new ProcessStartInfo { - UseShellExecute = false, - FileName = filepath, + UseShellExecute = true, + FileName = path, Arguments = installArgs };