Skip to content

Instantly share code, notes, and snippets.

@ihaveamac
Created August 18, 2022 07:05
Show Gist options
  • Save ihaveamac/8a889a0bd6980a8af713a666709d01ed to your computer and use it in GitHub Desktop.
Save ihaveamac/8a889a0bd6980a8af713a666709d01ed to your computer and use it in GitHub Desktop.
$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