mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2026-04-11 17:37:18 +10:00
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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user