Skip to content
This repository has been archived by the owner on Dec 15, 2020. It is now read-only.

--install-directory option does not work #35

Closed
torokmark opened this issue Sep 26, 2016 · 3 comments
Closed

--install-directory option does not work #35

torokmark opened this issue Sep 26, 2016 · 3 comments

Comments

@torokmark
Copy link

torokmark commented Sep 26, 2016

On the doc page parameter passing is used with =
From the page: Just pass --install-directory=value along while on the gif there is no = sign.
I have tried to specify the install directory with both without any luck. I have also tried to use all the others like --installdir, every single time I got the following error.

PS D:\> choco install chocolatey --installdirectory 'myfolder'
Chocolatey v0.10.1
Installing the following packages:
chocolatey;--installdirectory;myfolder
By installing you accept licenses for the packages.
chocolatey v0.10.1 already installed.
 Use --force to reinstall, specify a version to install, or try upgrade.
--installdirectory not installed. The package was not found with the source(s) listed.
 If you specified a particular version and are receiving this message, it is possible that the package name exists but t
he version does not.
 Version: ""
 Source(s): "https://chocolatey.org/api/v2/"
myfolder not installed. The package was not found with the source(s) listed.
 If you specified a particular version and are receiving this message, it is possible that the package name exists but t
he version does not.
 Version: ""
 Source(s): "https://chocolatey.org/api/v2/"

Chocolatey installed 0/3 packages. 2 packages failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Warnings:
 - chocolatey - chocolatey v0.10.1 already installed.
 Use --force to reinstall, specify a version to install, or try upgrade.

Failures
 - myfolder - myfolder not installed. The package was not found with the source(s) listed.
 If you specified a particular version and are receiving this message, it is possible that the package name exists but t
he version does not.
 Version: ""
 Source(s): "https://chocolatey.org/api/v2/"
 - --installdirectory - --installdirectory not installed. The package was not found with the source(s) listed.
 If you specified a particular version and are receiving this message, it is possible that the package name exists but t
he version does not.
 Version: ""
 Source(s): "https://chocolatey.org/api/v2/"
PS D:\>

@ferventcoder
Copy link
Member

Howdy!

Did you happen to notice that the documentation states licensed versions only? It might be helpful if we detected you passing this parameter and passed a proper error code to reduce confusion.

@torokmark
Copy link
Author

Hi,

Yes, I see. Mine is the free one.

@ferventcoder
Copy link
Member

I added better messaging for 0.10.2 - chocolatey/choco#984

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

No branches or pull requests

2 participants