Move NuGet provider installation to prerequisites

This commit is contained in:
Manuel Thalmann 2023-07-19 09:41:22 +02:00
parent 117157a861
commit c098b6060c
2 changed files with 4 additions and 2 deletions
scripts/Windows/Scripts

View file

@ -1,4 +1,8 @@
#!/bin/pwsh
if (-not (powershell -c Get-PackageProvider -ListAvailable NuGet)) {
powershell -c Install-PackageProvider -Name NuGet -Force;
}
foreach ($module in @("PSWindowsUpdate", "KnownFolders"))
{
if (-not (Get-Module -ListAvailable $module))