microsoft / microsoft/winget-cli

Can not install a program to setting location

Open
#4,660 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Brief description of your issue

I can install a program to the location by winget install wechat -l 'D:\softwares' or winget install wechat --location 'D:\softwares'.
The command installed the program to C: ,not the named path.

Steps to reproduce

winget install wechat -l 'D:\softwares'

Expected behavior

installed to user path as command

Actual behavior

the path changed into C:

Environment
Windows 程序包管理器 v1.2.10691
版权所有 (C) Microsoft Corporation。保留所有权利。

Windows: Windows.Desktop v10.0.22631.3880
程序包: Microsoft.DesktopAppInstaller v1.17.10691.0

日志: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir

链接
----------------------------------------------------------------------------
隐私声明             https://aka.ms/winget-privacy
许可协议             https://aka.ms/winget-license
第三方声明           https://aka.ms/winget-3rdPartyNotice
主页                 https://aka.ms/winget
Windows 应用商店条款 https://www.microsoft.com/en-us/storedocs/terms-of-sale

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 running winget install wechat -l 'D:\softwares' or the equivalent --location command on the reported environment, then trace how the requested location is handled. Done means the program is installed under the supplied path rather than on C:.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.