Chocolatey installation detected, but choco not recognized windows 11

I’m trying to install Tidal Cycles on my Windows 11 machine but am hitting some roadblocks. Total amateur here and am worried about potentially destroying machine, so figured I’d get some external support before doing something dumb.

Following the installation instructions here: Windows | Tidal Cycles .

I accidentally ran Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('``https://chocolatey.org/install.ps1``')) in non-administrator mode first and got some message that I may have to exit and try again in admin mode. Or at least, I think that’s what the message was. I exited out pretty quick and didn’t think much of it. When I opened and ran the same in admin mode, I get the following message:

WARNING: An existing Chocolatey installation was detected. Installation will not continue. This script will not overwrite existing installations. If there is no Chocolatey installation at 'C:\ProgramData\chocolatey', delete the folder and attempt the installation again.

I try to run the next command from the Tidal Cycles install guide: choco install tidalcycles and get the following message: choco : The term 'choco' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

So, chocolatey is installed somewhere but not recognized when I try to run it? When I search “chocolatey” in C: drive I find a single file here C:\Windows\WinSxS\wow64_microsoft.powershell.pester_31bf3856ad364e35_10.0.22621.4541_none_be65f16a23cd04e0\chocolateyInstall.ps1 with a date from a couple years ago. I also don’t have a “C:/ProgramData/chocolatey” path anywhere, as the chocolatey install message would suggest.

I googled about how to uninstall chocolatey to try this whole process again, but I get some concerning messages that lead me to believe that chocolatey may actually be core to my machine and just deleting this install file could mess stuff up.

I really want to mess around with Tidal though, so I’d love to figure this out. Has anyone else dealt with this?

Just had a quick look and I might be wrong, but I think the reason is this: there’s a function called `Test-ChocolateyInstalled` in the https://community.chocolatey.org/install.ps1 file, which apparently checks, if “choco” is in your PATH variable and if “ChocolateyInstall” exists as an environment variable. Apparently that’s the case on your end. So, look up how to edit environment variables in Windows, if you don’t know how (there’s probably a bunch of YT videos on that) and then delete the variable “ChocolateyInstall“, if you see it, and then find the PATH variable, hit ‘edit’ and check if there’s anything choco related in there and delete the respective line. (Ah, and note that you have two PATH env variables on windows, one system-wide and one user-scoped; so best check both, hehe).