mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2026-08-09 17:41:14 +10:00
* Clean up analyzer warnings * Align analyzer warning cleanup policy * Run PSScriptAnalyzer directly in unittests workflow * Bind lazy-rendered buttons to click handlers * Remove WinUtil performance tracing * Fix Win11 ISO creator temp directory reuse
17 lines
459 B
PowerShell
17 lines
459 B
PowerShell
function Install-WinUtilChoco {
|
|
|
|
<#
|
|
|
|
.SYNOPSIS
|
|
Installs Chocolatey if it is not already installed
|
|
|
|
#>
|
|
if ((Test-WinUtilPackageManager -choco) -eq "installed") {
|
|
return
|
|
}
|
|
|
|
Write-Host "Chocolatey is not installed. Installing now..."
|
|
$installScript = Invoke-WebRequest -Uri https://community.chocolatey.org/install.ps1 -UseBasicParsing
|
|
Invoke-Command -ScriptBlock ([scriptblock]::Create($installScript.Content))
|
|
}
|