microsoft / microsoft/winget-cli
`winget configure` fails if `Microsoft.DSC` pre-requisites are not met
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 26.4k
- Forks
- 1.8k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 15
Description
Relevant area(s)
WinGet CLI
Relevant command(s)
winget configure
Brief description of your issue
winget configure -f foo.winget doesn't work if DSC prerequisites are not met in a fresh install of Windows 11. Error:
The configuration unit failed due to an internal error: -532462766
The following works (user is admin):
winget install Microsoft.DSC
winget configure -f foo.winget
Steps to reproduce
It's unclear whether the resources in the .winget configuration file make any difference, but my impression is they don't. Issue can be consistenty reproduced as above.
Expected behavior
A fresh install of Windows should be configurable via winget configure -f foo.winget alone, no previous steps required.
Actual behavior
Additional steps required to set up fresh Windows install via winget configure as above.
Environment
Windows Package Manager v1.12.470
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.26200.7922
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.27.470.0
Winget Directories
-----------------------------------------------------------------------------------------------------------------------
Logs %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Diag…
User Settings %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\sett…
Portable Links Directory (User) %LOCALAPPDATA%\Microsoft\WinGet\Links
Portable Links Directory (Machine) C:\Program Files\WinGet\Links
Portable Package Root (User) %LOCALAPPDATA%\Microsoft\WinGet\Packages
Portable Package Root C:\Program Files\WinGet\Packages
Portable Package Root (x86) C:\Program Files (x86)\WinGet\Packages
Installer Downloads %USERPROFILE%\Downloads
Configuration Modules %LOCALAPPDATA%\Microsoft\WinGet\Configuration\Modules
Links
---------------------------------------------------------------------------
Privacy Statement https://aka.ms/winget-privacy
License Agreement https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale
Admin Setting State
--------------------------------------------------
LocalManifestFiles Disabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride Disabled
LocalArchiveMalwareScanOverride Disabled
ProxyCommandLineOptions Disabled
DefaultProxy Disabled
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce winget configure -f foo.winget on a fresh Windows 11 installation, first without and then with winget install Microsoft.DSC. Compare the behavior and error details, then trace how winget configure handles missing DSC prerequisites; done means the configuration works without the separate prerequisite installation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100