Skip to content

Winget configure does not support 'scope' #5722

@novinxy

Description

@novinxy

Relevant area(s)

WinGet CLI

Description of the new feature / enhancement

Hi,

I wanted to execute following winget configuration file:

properties:
  configurationVersion: 0.1.0
  resources:
    - resource: WinGetPackage
      id: DotNet 8 (x86)
      settings:
        id: Microsoft.DotNet.Runtime.8
        source: winget
        useLatest: true
        scope: user

Unfortunately that didn't work:

WinGetPackage [DotNet 8 (x86)]
  The configuration unit failed while attempting to test the current system state.
The property 'scope' cannot be found on this object. Verify that the property exists and can be set.
<See the log file for additional details>
Some of the configuration was not applied successfully.

Proposed technical implementation details

I would love if Microsoft.WinGet.DSC ad scope option that will enable to specify if package should be installed for the user or the machine

It will enable far wider use of both winget configure and using Microsoft.WinGet.DSC to configure machines.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-FeatureThis is a feature request for the Windows Package Manager client.Resolution-DuplicateIssue is a duplicate

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions