Install winget after refreshing environment

This commit is contained in:
Manuel Thalmann 2024-03-11 12:14:51 +01:00
parent 8c028ee27a
commit 7bcac96d7a

View file

@ -224,15 +224,15 @@ iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocola
Import-Module $env:ChocolateyInstall/helpers/chocolateyProfile.psm1;
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"';
refreshenv;
if (-not $(Get-Command winget))
{
choco install -y winget;
}
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"';
refreshenv;
cd C:/;
git clone https://git.nuth.ch/manuth/PortValhalla.git;
cd PortValhalla;</CommandLine>