Write-Output"Chocolatey is not installed on this system."
}
# Warning message and user confirmation
$warningMessage="WARNING: This script will uninstall Chocolatey and remove all related files, folders, and registry settings. Do you want to proceed? (Y/N)"
$userResponse=Read-Host-Prompt$warningMessage
if($userResponse-eq'Y'-or$userResponse-eq'y'){
# Check if Chocolatey is installed before uninstalling chocolatey-gui