diff --git a/scripts/Windows/Scripts/Choco.ps1 b/scripts/Windows/Scripts/Choco.ps1 new file mode 100644 index 00000000..99b89e5e --- /dev/null +++ b/scripts/Windows/Scripts/Choco.ps1 @@ -0,0 +1,15 @@ +<# + .SYNOPSIS + Checks whether the specified package has been installed using Chocolatey. + + .PARAMETER Name + The name of the package to check. +#> +function Test-ChocoSoftware { + [OutputType([bool])] + param( + [string] $Name + ); + + -not [string]::IsNullOrEmpty((choco list --limit-output --exact $name)); +}