Install NuGet globally

This commit is contained in:
Manuel Thalmann 2024-09-30 05:00:42 +02:00
parent dc78526f6e
commit 3826985e22

View file

@ -19,7 +19,7 @@ Start-SoftwareInstaller @args @parameters -Installer {
$module = $Context.Name; $module = $Context.Name;
if ({ $null = powershell -c "Get-PackageProvider -ListAvailable $providerName"; $? }) { if ({ $null = powershell -c "Get-PackageProvider -ListAvailable $providerName"; $? }) {
$null = powershell -c "Install-PackageProvider -Force $providerName"; $null = powershell -c "Install-PackageProvider -Force $providerName -Scope AllUsers";
} }
& $Context.Installer @PSBoundParameters; & $Context.Installer @PSBoundParameters;