mirror of
https://github.com/ChrisTitusTech/winutil
synced 2026-04-05 22:28:31 +00:00
* cleaned up typo, fixes, grammatical and other related fixes (#2) * typo in Lightshot app name * remove trailing comma in applications.json * consistent capitalization of Windows, WinGet - only user-facing text - includes update to devdocs-generator.ps1, so docs for tweaks modifying registry will have `Windows settings` rather than `windows settings` * various fixes for typos, style, punctuation and capitalization * capitalize 'AM' * Update README.md change formatting for GitHub UI interaction form code format (` `) to bold md Co-authored-by: Jay <65828559+Jay-o-Way@users.noreply.github.com> * typos and wording in docs --------- Co-authored-by: Jay <65828559+Jay-o-Way@users.noreply.github.com>
22 lines
570 B
PowerShell
22 lines
570 B
PowerShell
function Install-WinUtilWinget {
|
|
<#
|
|
|
|
.SYNOPSIS
|
|
Installs WinGet if not already installed.
|
|
|
|
.DESCRIPTION
|
|
installs winGet if needed
|
|
#>
|
|
if ((Test-WinUtilPackageManager -winget) -eq "installed") {
|
|
return
|
|
}
|
|
|
|
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
|
|
}
|