Use /passive mode instead of /quite mode

pull/24356/head
Lidi Zheng 4 years ago
parent 81abd221d3
commit faad140178
  1. 5
      tools/internal_ci/helper_scripts/install_python_interpreters.ps1

@ -35,7 +35,7 @@ function Install-Python {
Write-Host "Python installer $PythonInstallerPath validated."
# Installs Python
& $PythonInstallerPath /quiet InstallAllUsers=1 PrependPath=1 Include_test=0 TargetDir=$PythonInstallPath
& $PythonInstallerPath /passive InstallAllUsers=1 PrependPath=1 Include_test=0 TargetDir=$PythonInstallPath
if (-Not $?) {
throw "The Python installation exited with error!"
}
@ -50,9 +50,6 @@ function Install-Python {
Wait-Process -Name $PythonInstaller -Timeout 300
Write-Host "Installation process exits normally."
ls "C:\"
ls "$PythonInstallPath"
ls "$PythonInstallPath\python.exe"
# Validate Python binary
$PythonBinary = "$PythonInstallPath\python.exe"
& $PythonBinary -c 'print(42)'

Loading…
Cancel
Save