8000 iex instead of & · python/release-tools@69b0c53 · GitHub
[go: up one dir, main page]

Skip to content

Commit 69b0c53

Browse files
committed
iex instead of &
1 parent fb7d895 commit 69b0c53

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

windows-release/test-msi.ps1

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
param ([string]$SetupExe)
22

33
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"" " + `
56
"TargetDir=C:\Python " + `
67
"Include_debug=1 " + `
78
"Include_symbols=1 " + `
89
"InstallAllUsers=${env:InstallAllUsers} " + `
910
"${env:IncludeFreethreadedOpt}"
1011
Write-Host "##[command]$SetupCmd"
11-
& $SetupCmd
12+
iex $SetupCmd
1213
if (!$?) { exit $LASTEXITCODE }
1314

1415
Write-Host "##[command]dir C:\Python"
@@ -87,5 +88,5 @@ if (-not $env:SkipTests) {
8788
Write-Host "##[section]Uninstall Python"
8889
$UninstallCmd = "$(SetupExe) /passive /uninstall /log C:\Logs\uninstall\log.txt"
8990
Write-Host "##[command]$UninstallCmd"
90-
& $UninstallCmd
91+
iex $UninstallCmd
9192
if (!$?) { exit $LASTEXITCODE }

0 commit comments

Comments
 (0)
0