microsoft / microsoft/winget-cli

Improvements to make Repair a more complete bootstrapping solution

Open
#4,947 1 comment 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

Description of the new feature / enhancement

Suggestions from one of our very dedicated users:

  1. Register for the user (when appropriate) after Repair -AllUsers
    a. While the provisioning step does this eventually, it is not synchronous and can break scripts that want to immediately use winget
  2. Ensure that Repair also installs the winget-cli source package. a. This is actually a workaround for an OS issue that prevents winget.exe from installing it in certain scenarios
    b. An alternative solution would be to move away from installing it at all and have all code paths use the unpackaged path (this does have a performance cost though)
  3. Fix Win32Exception An error occurred trying to start process 'winget.exe' error the first time Repair -AllUsers is run
    a. Possibly only repros in the headless scenario
  4. Repair -Force should bypass checks and attempt to install everything

They also suggest effectively #4390 , but including all PowerShell modules.

Proposed technical implementation details

No response

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 Repair -AllUsers and Repair -Force entry points, then compare their behavior with the provisioning step and the winget-cli source package installation. The issue names no files or tests; done would require resolving the four listed Repair behaviors and evaluating the proposed inclusion of all PowerShell modules.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, powershell
Domain
cli, operating-systems
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.