Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure chocolatey is installed into the lib folder during initial install #414

Closed
dhilgarth opened this issue Sep 20, 2015 · 7 comments
Closed

Comments

@dhilgarth
Copy link

  1. Start cmd.exe as Administrator
  2. Execute install code from chocolatey.org
  3. Start powershell from the same command prompt (might be optional)
  4. Execute choco upgrade chocolatey

Result:

PS C:\Windows\system32> choco upgrade chocolatey
Chocolatey v0.9.9.8
Upgrading the following packages:
chocolatey
By upgrading you accept licenses for the packages.
chocolatey is not installed. Installing...

@aronovgj
Copy link

Start powershell from the same command prompt

doesn't it say that you might have to close and open command prompt in order for it to work right after you have installed it?

@dhilgarth
Copy link
Author

Well, it obviously works, doesn't it? If it wouldn't, I would by unable to execute choco upgrade chocolatey.

@ferventcoder
Copy link
Member

Known issue, but may not be logged. Partly because it is being bootstrapped by the install script and doesn't get the pkg into the lib folder correctly (chocolatey.org install script, so goes to chocolatey.org repo).

@ferventcoder ferventcoder changed the title Upgrading chocolatey right after installing it reports chocolatey not being installed Ensure chocolatey is installed into the lib folder during initial install Sep 25, 2015
@ferventcoder ferventcoder self-assigned this Sep 25, 2015
@ferventcoder ferventcoder added this to the 0.9.9.9 milestone Sep 25, 2015
@ferventcoder
Copy link
Member

@ferventcoder
Copy link
Member

As of right now, if you install chocolatey using the install bootstrapper script from chocolatey.org, it will do the right thing.

@ferventcoder
Copy link
Member

Thanks for getting this issue written up!

ferventcoder added a commit that referenced this issue Sep 25, 2015
Ensure downloaded chocolatey package is copied to
`$env:ChocolateyInstall\lib\chocolatey\chocolatey.nupkg` when
initially installing Chocolatey onto a machine.
ferventcoder added a commit that referenced this issue Sep 25, 2015
* stable:
  (GH-414) Ensure choco pkg is known as installed
  (GH-422) export cmdlets
  (doc)(GH-424) Update legacy instructions
@dhilgarth
Copy link
Author

Sure. Thanks for fixing it :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants