winget-cli icon indicating copy to clipboard operation
winget-cli copied to clipboard

If an application does not support the location parameter and its passed or the path provided is invalid user should be prompted

Open arthurcaccavo opened this issue 3 years ago • 1 comments

Description of the new feature / enhancement

The location parameter indicates the path a user wants to download an app to, if it's not possible to use that parameter or its invalid formatted one should be prompted if it's okay to install to a default path. The unprompted default is not optimal as the reason to why one would want that could be many and packages don't inform their support of location beforehand.

Proposed technical implementation details

No response

arthurcaccavo avatar Aug 23 '22 14:08 arthurcaccavo

This feature would be quite important when downloading multiple apps (e.g. via a batch file or script), if a few of the apps refuse to be installed at the designated place it gets messy very quickly.

Silther avatar Sep 05 '22 07:09 Silther

It can already be specified if an application is known to not support the location parameter - https://github.com/microsoft/winget-cli/blob/73f05cdf9b72eed991ccc5609f459f385cb9ec2f/schemas/JSON/manifests/v1.4.0/manifest.installer.1.4.0.json#L456-L467

The other problem is that sometimes the installers do support the location parameter but the switch just isn't known. Changing the default behavior to prompt if the package isn't known for certain to support the location parameter would be breaking

Trenly avatar Mar 10 '23 22:03 Trenly