< Back

Test-ChocolateyInstall

Mon Jan 13, 2020 1:41 am

NAME Test-ChocolateyInstall



SYNOPSIS

Test if the Chocolatey Software is installed.





SYNTAX

Test-ChocolateyInstall [[-InstallDir] <String>] [<CommonParameters>]





DESCRIPTION

To test whether the Chocolatey Software is installed, it first look for the Command choco.exe.

It then check if it's installed in the InstallDir path, if provided.





PARAMETERS

-InstallDir <String>

To ensure the software is installed in the given directory. If not specified,

it will only test if the commadn choco.exe is available.



Required? false

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

System.Boolean





NOTES





General notes



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Test-ChocolateyInstall #Test whether the Chocolatey Software is installed















RELATED LINKS