Install NuGet globally
This commit is contained in:
parent
dc78526f6e
commit
3826985e22
|
@ -19,7 +19,7 @@ Start-SoftwareInstaller @args @parameters -Installer {
|
|||
$module = $Context.Name;
|
||||
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue