Add console output to prerequisites
This commit is contained in:
parent
c098b6060c
commit
1e807ee800
1 changed files with 3 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
#!/bin/pwsh
|
||||
if (-not (powershell -c Get-PackageProvider -ListAvailable NuGet)) {
|
||||
Write-Host "Installing NuGet PackageProvider";
|
||||
powershell -c Install-PackageProvider -Name NuGet -Force;
|
||||
}
|
||||
|
||||
|
@ -7,12 +8,14 @@ foreach ($module in @("PSWindowsUpdate", "KnownFolders"))
|
|||
{
|
||||
if (-not (Get-Module -ListAvailable $module))
|
||||
{
|
||||
Write-Host "Installing PowerShell Module $module";
|
||||
Install-Module -AcceptLicense -Force "$module";
|
||||
}
|
||||
}
|
||||
|
||||
foreach ($nativeModule in @("PinnedItem")) {
|
||||
if (-not (powershell -c Get-Module -ListAvailable $nativeModule)) {
|
||||
Write-Host "Installing Windows PowerShell Module $nativeModule";
|
||||
powershell -c Install-Module -Force "$nativeModule";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue