Only install winget
if necessary
This commit is contained in:
parent
e927f6b438
commit
8c028ee27a
1 changed files with 5 additions and 1 deletions
|
@ -224,7 +224,11 @@ iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocola
|
||||||
|
|
||||||
Import-Module $env:ChocolateyInstall/helpers/chocolateyProfile.psm1;
|
Import-Module $env:ChocolateyInstall/helpers/chocolateyProfile.psm1;
|
||||||
|
|
||||||
|
if (-not $(Get-Command winget))
|
||||||
|
{
|
||||||
choco install -y winget;
|
choco install -y winget;
|
||||||
|
}
|
||||||
|
|
||||||
choco install -y git --params='/WindowsTerminalProfile /DefaultBranchName:main';
|
choco install -y git --params='/WindowsTerminalProfile /DefaultBranchName:main';
|
||||||
choco install -y powershell-core --install-arguments='"ADD_FILE_CONTEXT_MENU_RUNPOWERSHELL=1 ADD_EXPLORER_CONTEXT_MENU_OPENPOWERSHELL=1 REGISTER_MANIFEST=1 USE_MU=1 ENABLE_MU=1"';
|
choco install -y powershell-core --install-arguments='"ADD_FILE_CONTEXT_MENU_RUNPOWERSHELL=1 ADD_EXPLORER_CONTEXT_MENU_OPENPOWERSHELL=1 REGISTER_MANIFEST=1 USE_MU=1 ENABLE_MU=1"';
|
||||||
refreshenv;
|
refreshenv;
|
||||||
|
|
Loading…
Reference in a new issue