diff --git a/base.ps1 b/base.ps1 index 11c8e49..a2870b6 100644 --- a/base.ps1 +++ b/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 }