2024-11-24 20:14:55 +00:00
|
|
|
function InstallPackages
|
|
|
|
{
|
|
|
|
choco.exe install (Get-Content ./util/chocolatey.list)
|
|
|
|
}
|
|
|
|
|
|
|
|
function ChocolateyInstall
|
|
|
|
{
|
2024-11-24 20:42:00 +00:00
|
|
|
$install = Read-Host "Install Chocolatey Packages now? [Y/n]"
|
2024-11-24 20:14:55 +00:00
|
|
|
if ($install.ToLower() -eq 'n')
|
|
|
|
{ return
|
|
|
|
}
|
|
|
|
|
|
|
|
# Start admin process, import this script, run 'InstallPackages' function
|
2024-11-24 20:35:50 +00:00
|
|
|
Start-Process powershell.exe -Verb RunAs -Wait `
|
2024-11-24 20:51:25 +00:00
|
|
|
-ArgumentList "-ExecutionPolicy", "Bypass", `
|
2024-11-24 21:12:09 +00:00
|
|
|
"-C", "'Import-Module ./util/chocolatey.psm1; InstallPackages'"
|
2024-11-24 20:14:55 +00:00
|
|
|
}
|