|
|
@ -221,7 +221,6 @@ function Install-WinUtilWinget { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$isAdmin = [System.Security.Principal.WindowsPrincipal]::new( |
|
|
|
$isAdmin = [System.Security.Principal.WindowsPrincipal]::new( |
|
|
|
[System.Security.Principal.WindowsIdentity]::GetCurrent()). |
|
|
|
[System.Security.Principal.WindowsIdentity]::GetCurrent()). |
|
|
|
IsInRole('Administrators') |
|
|
|
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 |
|
|
|
Start-Process -Wait @params |
|
|
|
Write-Host "Admin stuff done..." |
|
|
|
Write-Host "Admin stuff done..." |
|
|
|
} else { |
|
|
|
} else { |
|
|
@ -255,6 +258,17 @@ $installs=@( |
|
|
|
'Microsoft.VCRedist.2015+.x64' |
|
|
|
'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) { |
|
|
|
foreach($pkg in $installs) { |
|
|
|
Start-Process -NoNewWindow -Wait winget -ArgumentList 'install',$pkg |
|
|
|
Start-Process -NoNewWindow -Wait winget -ArgumentList 'install',$pkg |
|
|
|
} |
|
|
|
} |
|
|
|