From 882b3c12a05cbe88a40e0cd28a09b73c710da3df Mon Sep 17 00:00:00 2001 From: crschnick Date: Sat, 24 Jun 2023 09:09:08 +0000 Subject: [PATCH] Fix for spaces in ps1 script --- get-xpipe.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/get-xpipe.ps1 b/get-xpipe.ps1 index cf1f09946..86cb2a87d 100644 --- a/get-xpipe.ps1 +++ b/get-xpipe.ps1 @@ -192,7 +192,8 @@ Request-File -Url $XPipeDownloadUrl -File $file Write-Host "Installing XPipe ..." # Wait for completion -Start-Process -FilePath "msiexec" -Wait -ArgumentList "/i", "$file", "/quiet" +# The file variable can contain spaces, so we have to accommodate for that +Start-Process -FilePath "msiexec" -Wait -ArgumentList "/i", "`"$file`"", "/quiet" # Update current process PATH environment variable $env:Path=(