The command install-package <packagename> -providerName chocolatey
never seems to add anything to the PATH
envirnoment variable (Windows 10 Build 15063).
For example running
install-package docfx -providerName chocolatey
install-package wkthmltopdf -providerName chocolatey
does not do it. Where as
choco install docfx
choco install wkhtmltopdf
does it. When I run the latter the commands docfx
and wkhtmltopdf
are available in the command line.
So my question is: How is installation different when using the choco
command directly compared to install-package
and what can I do about this?
As Rob Reynolds pointed out to me on gitter that package provider is not ready for prime time:
do not use the prototype provider for OneGet/PackageManagement - it's not official, it's a non-fully featured prototype made by MS and it may have security issues. See https://github.com/chocolatey/chocolatey-oneget/issues/5#issuecomment-275404099 for details