Fix for spaces in ps1 script

This commit is contained in:
crschnick 2023-06-24 09:09:08 +00:00
parent 7ad4dffabb
commit 882b3c12a0

View file

@ -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=(