Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
iex instead of &
  • Loading branch information
zooba committed Feb 27, 2024
commit 69b0c53d7f3ed7b84df7759be00c04a539f4f80b
7 changes: 4 additions & 3 deletions windows-release/test-msi.ps1
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
param ([string]$SetupExe)

Write-Host "##[section]Install Python"
$SetupCmd = "$SetupExe /passive /log ""C:\Logs\install\log.txt"" " + `
$SetupArgs = "$SetupExe " + `
"/passive /log ""C:\Logs\install\log.txt"" " + `
"TargetDir=C:\Python " + `
"Include_debug=1 " + `
"Include_symbols=1 " + `
"InstallAllUsers=${env:InstallAllUsers} " + `
"${env:IncludeFreethreadedOpt}"
Write-Host "##[command]$SetupCmd"
& $SetupCmd
iex $SetupCmd
if (!$?) { exit $LASTEXITCODE }

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