mirror of
https://github.com/Baipyrus/dotfiles.git
synced 2024-12-26 11:21:46 +00:00
17 lines
450 B
PowerShell
17 lines
450 B
PowerShell
function InstallPackages
|
|
{
|
|
choco.exe install (Get-Content ./util/chocolatey.list)
|
|
}
|
|
|
|
function ChocolateyInstall
|
|
{
|
|
$install = Read-Host "Install as Administrator now? [Y/n]"
|
|
if ($install.ToLower() -eq 'n')
|
|
{ return
|
|
}
|
|
|
|
# Start admin process, import this script, run 'InstallPackages' function
|
|
Start-Process powershell.exe -Verb RunAs `
|
|
-ArgumentList "-C", "'Import-Module ./util/chocolatey.psm1; InstallPackages'"
|
|
}
|