Created
August 18, 2022 07:05
-
-
Save ihaveamac/8a889a0bd6980a8af713a666709d01ed to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$UsedPath = Get-ChildItem -Path . -Name "UsedInstallers" | |
if (!$UsedPath) { | |
$UsedPath = New-Item -ItemType Directory -Name "UsedInstallers" | |
} | |
Write-Host $UsedPath | |
Get-ChildItem -Filter 'python-*.exe' | ForEach { | |
#$Command = ".\$_ /passive InstallAllUsers=1 CompileAll=1 Include_doc=0 Include_debug=1 Include_symbols=1" | |
#$Command = ".\$_ /?" | |
#Write-Host $Command | |
#Invoke-Expression "$Command" | |
Start-Process -FilePath $_ -ArgumentList @('/passive', 'InstallAllUsers=1', 'CompileAll=1', 'Include_doc=0', 'Include_debug=1', 'Include_symbols=1') -Wait | |
Move-Item -Path $_ -Destination $UsedPath | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment