You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When determining the location of choco.exe, look more for the choco.exe to exist versus just directories (as the directories may not get cleaned up).
The order is wrong and we should look for c:\programdata\chocolatey before the c:\chocolatey - there was an original reason for that order, but I don't remember if it is still valid or not.
Fall back to ChocolateyInstall Environment variable if the default path is not found
We can probably instead look for file existence instead of just the folder for a more comprehensive check
The current check only looks for the existence of directories with
fallback to a default location if it doesn't find any. The first check
against the environment variable may be incorrect if an old environment
variable is still lingering and can cause issues in finding the proper
provider location.
Check in a very explicit order for the existence of the choco.exe binary,
starting with default install, then the environment variable, then the old
default location, followed by the last check in the AllUsersProfile location
if nothing else can be found.
When determining the location of choco.exe, look more for the choco.exe to exist versus just directories (as the directories may not get cleaned up).
https://groups.google.com/d/msgid/chocolatey/a4b3c213-3a30-4932-b25a-56beed21376a%40googlegroups.com
The text was updated successfully, but these errors were encountered: