Winget-cli: Add option to specify winget install directory

Created on 19 May 2020  路  2Comments  路  Source: microsoft/winget-cli

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 side

Proposed 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.

Issue-Feature Size-S

All 2 comments

I agree -- the specification of the install drive would be very helpful. It would be nice if the drive could be specified:

  1. On all winget installs via a settings file
  2. With the ability to override on a per winget install call

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:
-l,--location Location to install to (if supported)

Not all installers support passing an install location on the command line, so this won't guarantee things though.

Was this page helpful?
0 / 5 - 0 ratings