Skip to content
This repository has been archived by the owner on Feb 19, 2019. It is now read-only.

[BUG] Upgrade from 0.9.8.23 to 0.9.8.24-beta1 cannot find Update-SessionEnvironment when using cmd.exe #459

Closed
ferventcoder opened this issue Apr 15, 2014 · 3 comments
Assignees

Comments

@ferventcoder
Copy link
Contributor

Windows 7 SP1
No reboot between installs.

Copying the contents of 'C:\Chocolatey\lib\chocolatey.0.9.8.24-beta1\tools\chocolateyInstall' to 'C:\Chocolatey'.
Chocolatey is now ready.
You can call chocolatey from anywhere, command line or powershell by typing choco.
Run choco /? for a list of functions.
You may need to shut down and restart powershell and/or consoles first prior to using chocolatey.

The ERROR(s):
The term 'Update-SessionEnvironment' is not recognized as the name of a cmdlet,
function, script file, or operable program. Check the spelling of the name, or i
f a path was included, verify that the path is correct and try again.
Command 'install' failed (sometimes this indicates a partial failure). Additional info/packages: chocolatey
The batch file cannot be found.

@jberezanski
Copy link
Contributor

This reminded me of a problem I had encountered some time ago but forgot to report (#460). If Update-SessionEnvironment is new in 0.9.8.24 and is used in its chocolateyInstall.ps1, this is a similar issue.

@ferventcoder
Copy link
Contributor Author

This only happens when called from command shell and not powershell.

@ferventcoder
Copy link
Contributor Author

Fixed in a081b15

ferventcoder added a commit to ferventcoder/chocolatey that referenced this issue Jun 16, 2014
…tion"

Do not remove the module that you imported, it will cause errors as chocolatey
attempts to finish running after upgrading itself.
ferventcoder added a commit to ferventcoder/chocolatey that referenced this issue Jun 16, 2014
* stable:
  (chocolatey-archiveGH-460) Fix for "Package depending on newer chocolatey is installed using existing chocolatey"
  (chocolatey-archiveGH-459) Fix for "Cannot find Update-SessionInformation"
  (maint) formatting
  (chocolatey-archiveGH-153)(chocolatey-archiveGH-134) Update PATH on cmd.exe
  (maint) ensure powershell module loading preference is on
@ferventcoder ferventcoder changed the title [BUG] Upgrade from 0.9.8.23 to 0.9.8.24-beta1 cannot find Update-SessionEnvironment [BUG] Upgrade from 0.9.8.23 to 0.9.8.24-beta1 cannot find Update-SessionEnvironment when using cmd.exe Jun 17, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants