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
{{ message }}
This repository has been archived by the owner on Feb 19, 2019. It is now read-only.
When I ran the install today (the iex from the web page) I got an error near the end of the install and the powershell I ran it from ended up with the wrong value set in $env:ChocolateyInstall
AFAICT Initialize-ChocolateyPath shouldn't be setting this env var and should stick with just PATH things.
It would seem to make more sense (AFAICT) to set that env var around line 120 after we've finished the if/else and we know the right path is in the $chocolateyPath variable, so we could write it then:
$env:ChocolateyInstall = $chocolateyPath
The text was updated successfully, but these errors were encountered:
By the way, what is the actual value of the environment variable on the machine? Closing and reopening powershell and calling this might be sufficient to get the machine value.
Yeah, sorry, should have mentioned that - the actual value written with SetEnvironmentVariable is fine, and new shells (cmd, powershell, etc) have the right value. :)
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When I ran the install today (the iex from the web page) I got an error near the end of the install and the powershell I ran it from ended up with the wrong value set in $env:ChocolateyInstall
Output: http://pastebin.com/raw.php?i=Ur3efL95
The cause (AFAICT) is line 238 of the chocolateysetup.psm1
Source location: https://github.com/chocolatey/chocolatey/blob/master/nuget/tools/chocolateysetup.psm1#L238
That sets the env var to the bin subdir instead of the correct dir, so my powershell (after running the install) had this value:
AFAICT Initialize-ChocolateyPath shouldn't be setting this env var and should stick with just PATH things.
It would seem to make more sense (AFAICT) to set that env var around line 120 after we've finished the if/else and we know the right path is in the $chocolateyPath variable, so we could write it then:
The text was updated successfully, but these errors were encountered: