From 3e471ac619b064f67148671372493b2964a5d2be Mon Sep 17 00:00:00 2001 From: Yaniv Marom Nachumi Date: Sun, 28 Feb 2021 15:55:08 +0200 Subject: [PATCH] Fix - Unzip action failed when installing to C:/Program Files/.... --- CustomActionFastMsi/CustomAction.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CustomActionFastMsi/CustomAction.cs b/CustomActionFastMsi/CustomAction.cs index 125546b..be01fd6 100644 --- a/CustomActionFastMsi/CustomAction.cs +++ b/CustomActionFastMsi/CustomAction.cs @@ -42,7 +42,7 @@ public static ActionResult FastUnzip(Session session) proc.StartInfo.RedirectStandardOutput = true; proc.StartInfo.RedirectStandardError = true; proc.StartInfo.FileName = Path.Combine(assemblyFolder , "7z.exe"); - proc.StartInfo.Arguments = string.Format("x {0} -aoa -o\"{1}\"", zipFile, Path.Combine(targetDir, appName)); + proc.StartInfo.Arguments = string.Format("x \"{0}\" -aoa -o\"{1}\"", zipFile, Path.Combine(targetDir, appName)); proc.EnableRaisingEvents = true; proc.OutputDataReceived += new DataReceivedEventHandler(OutputHandler); proc.ErrorDataReceived += new DataReceivedEventHandler(ErrorHandler);