File tree 1 file changed +4
-3
lines changed 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
param ([string ]$SetupExe )
2
2
3
3
Write-Host " ##[section]Install Python"
4
- $SetupCmd = " $SetupExe /passive /log "" C:\Logs\install\log.txt"" " + `
4
+ $SetupArgs = " $SetupExe " + `
5
+ " /passive /log "" C:\Logs\install\log.txt"" " + `
5
6
" TargetDir=C:\Python " + `
6
7
" Include_debug=1 " + `
7
8
" Include_symbols=1 " + `
8
9
" InstallAllUsers=${env: InstallAllUsers} " + `
9
10
" ${env: IncludeFreethreadedOpt} "
10
11
Write-Host " ##[command]$SetupCmd "
11
- & $SetupCmd
12
+ iex $SetupCmd
12
13
if (! $? ) { exit $LASTEXITCODE }
13
14
14
15
Write-Host " ##[command]dir C:\Python"
@@ -87,5 +88,5 @@ if (-not $env:SkipTests) {
87
88
Write-Host " ##[section]Uninstall Python"
88
89
$UninstallCmd = " $ ( SetupExe) /passive /uninstall /log C:\Logs\uninstall\log.txt"
89
90
Write-Host " ##[command]$UninstallCmd "
90
- & $UninstallCmd
91
+ iex $UninstallCmd
91
92
if (! $? ) { exit $LASTEXITCODE }
You can’t perform that action at this time.
0 commit comments