diff --git a/Autounattend.template.xml b/Autounattend.template.xml index 515e027..2b77984 100644 --- a/Autounattend.template.xml +++ b/Autounattend.template.xml @@ -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;