microsoft / microsoft/winget-cli

Support install location via import

Open
#1,582 7 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Command-Import Issue-Feature
Dominant language
C++
Stars
26.4k
Forks
1.8k
Avg merge
1d 11h
Merged PRs (30d)
15

Description

Is the following command possible?

winget import -i <import-file> —location <path>

If not, how can I use the import command to control where it should be installed?

Originally posted by @PhilippBaumi in https://github.com/microsoft/winget-cli/discussions/1521#discussioncomment-1467325

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the winget import -i <import-file> --location <path> command and how imported package options are passed to installers. Clarify whether import should apply one location to all packages and how packages that do not support custom locations should behave; done means the expected behavior is implemented and covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.