Add a warning about what software will be installed.

master
Zed A. Shaw 13 hours ago
parent f3c1bbc28f
commit e93dc46116
  1. 16
      base.ps1

@ -221,7 +221,6 @@ function Install-WinUtilWinget {
}
}
$isAdmin = [System.Security.Principal.WindowsPrincipal]::new(
[System.Security.Principal.WindowsIdentity]::GetCurrent()).
IsInRole('Administrators')
@ -236,6 +235,10 @@ if(-not $isAdmin) {
)
}
Write-Warning "About to install winget"
Read-Host -Prompt "Press any key to continue, or CTRL-C to abort" | Out-Null
Start-Process -Wait @params
Write-Host "Admin stuff done..."
} else {
@ -255,6 +258,17 @@ $installs=@(
'Microsoft.VCRedist.2015+.x64'
)
$choco_installs=@('geany','geany-plugins','winlibs')
Write-Warning "About to install the following software:"
Write-Warning "-----------------------------------------"
foreach($pkg in $installs) { Write-Host $pkg }
foreach($pkg in $choco_installs) { Write-Host $pkg }
Write-Warning "-----------------------------------------"
Write-Warning "This will use winget and chocolatey to do the installs."
Read-Host -Prompt "Press any key to continue, or CTRL-C to abort" | Out-Null
foreach($pkg in $installs) {
Start-Process -NoNewWindow -Wait winget -ArgumentList 'install',$pkg
}

Loading…
Cancel
Save