mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-31 05:03:22 +08:00
Add -NoProfile and -ExecutionPolicy Bypass in powershell call
This commit is contained in:
parent
186a2cf88b
commit
e9b0de9d68
@ -188,7 +188,7 @@ function vcpkgInvokeCommandClean()
|
||||
$command = "& `"$cleanEnvScript`"; & `"$executable`" $arguments"
|
||||
$bytes = [System.Text.Encoding]::Unicode.GetBytes($command)
|
||||
$encodedCommand = [Convert]::ToBase64String($bytes)
|
||||
$arg = "-encodedCommand $encodedCommand"
|
||||
$arg = "-NoProfile -ExecutionPolicy Bypass -encodedCommand $encodedCommand"
|
||||
|
||||
$process = Start-Process -FilePath powershell.exe -ArgumentList $arg -PassThru -NoNewWindow
|
||||
Wait-Process -InputObject $process
|
||||
|
Loading…
x
Reference in New Issue
Block a user