Update Install-WinUtilWinget.ps1 (#4302)

* Update Install-WinUtilWinget.ps1

* Update Install-WinUtilWinget.ps1

* Update Install-WinUtilWinget.ps1

* Update Install-WinUtilWinget.ps1

* Update Install-WinUtilWinget.ps1
This commit is contained in:
Gabi
2026-04-07 20:50:05 +03:00
committed by GitHub
parent e077fc7e21
commit 0cd971d992

View File

@@ -12,10 +12,8 @@ function Install-WinUtilWinget {
}
Write-Host "WinGet is not installed. Installing now..." -ForegroundColor Red
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
Install-PackageProvider -Name NuGet -Force
Install-Module Microsoft.WinGet.Client -Force
Import-Module Microsoft.WinGet.Client
Repair-WinGetPackageManager
Install-Module -Name Microsoft.WinGet.Client -Force
Repair-WinGetPackageManager -AllUsers
}