-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Add option to specify winget install directory #201
Comments
I agree -- the specification of the install drive would be very helpful. It would be nice if the drive could be specified:
I believe it would be better to separate the PATH issue from this feature request. I can think of several instances where updating the PATH may not be desired. |
For individual invocations, you can use: Not all installers support passing an install location on the command line, so this won't guarantee things though. |
Can we push manifest authors more to support "--location" parameter? Eg. require that packages which do not support "--location" must declare lack of support, so that winget knows whether any given package supports it. If "--location" was specified, but package does not support it, winget could return an error, or optionally ask "This package does not support --location parameter, do you want to continue installation in the default location? (y/N)" I do not like winget silently ignoring my "--location" parameter and installing in the default location. |
That would be awesome if you could do that! I only have a 128 GB M2 SSD where Windows is installed. So because of that I have to install all my programms on my secondary SATA SSD drive to "D:/Program Files" or "D:/Program Files (x86)" which has 2 TB capacity. Physically separating my programms from my OS also means less pain if I have to reinstall Windows. |
Should this issue not be closed since you can now achieve it with https://github.com/microsoft/winget-cli/blob/master/doc/Settings.md#default-install-root ? |
Thanks for calling this out. |
I'm pretty confused by the closure of this issue.
As it stands now, there does not appear to be any way of specifying a default install location for any non-portable packages (where a different setting is used). Setting Am I completely missing something? |
One year later, only SEVEN packages have So there's still not a way to specify a install directory? |
Description of the new feature/enhancement
I usually install certain programs onto a secondary
D:
drive, so it would be nice if I could specify a different location than default. This is mainly for when I have a smaller SSD and larger hard disk side by sideProposed technical implementation details (optional)
Some form of system-wide configuration to set default install location.
Certain programs I would like to install in the default location however (things that I want to run off of the SSD), so there should be a flag that can override default configured install location. Ideally any specified location should be added to the PATH so that I know I have access to whatever I install.
The text was updated successfully, but these errors were encountered: