Repository navigation
Description
Relevant area(s)
WinGet CLI
Relevant command(s)
winget install
Brief description of your issue
In a Windows Sandbox instance launched by SandboxTest.ps1, the winget.exe failed to download installer file with proper name.
Manually check $env:TEMP\WinGet\<package_identifier_and_version>\ folder, the installer file was named with its SHA256 value WITHOUT PROPER FILE EXTENSION. This caused the downloaded installer file cache unable to be found by following steps. The package can't be successfully installed.
Steps to reproduce
- Make sure you've cloned microsoft/winget-pkgs and checked out the latest
masterbranch. - Try
Tools/SandboxTest.ps1 <any local manifest folder>to install a local manifest inside Sandbox instance.
Expected behavior
The package should be installed as expected. For portable executables, the downloaded package should be automatically added to $env:PATH and an ARP Entry should be written into the Windows Registry.
Actual behavior
The inferred installer file will be shown as downloaded and hash value verified.
But NO ARP ENTRIES will be shown, EVEN IF it's a portable executable (ARP Entries should be written by winget.exe itself).
Environment
Windows 程序包管理器(预览) v1.29.50-preview
版权所有 (C) Microsoft Corporation。保留所有权利。
Windows: Windows.Desktop v10.0.26100.8117
系统体系结构: X64
软件包: Microsoft.DesktopAppInstaller v1.29.50.0
Winget 目录
-------------------------------------------------------------------------------------------------------------------
日志 %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
用户设置 %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json
可移植链接目录(用户) %LOCALAPPDATA%\Microsoft\WinGet\Links
可移植链接目录(计算机) C:\Program Files\WinGet\Links
可移植包根目录(用户) %LOCALAPPDATA%\Microsoft\WinGet\Packages
可移植包根目录 C:\Program Files\WinGet\Packages
可移植包根目录 (x86) C:\Program Files (x86)\WinGet\Packages
安装程序下载 %USERPROFILE%\Downloads
配置模块 %LOCALAPPDATA%\Microsoft\WinGet\Configuration\Modules
链接
----------------------------------------------------------------------------
隐私声明 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
管理员设置 状态
------------------------------------------------
LocalManifestFiles 已启用
BypassCertificatePinningForMicrosoftStore 已禁用
InstallerHashOverride 已禁用
LocalArchiveMalwareScanOverride 已启用
ProxyCommandLineOptions 已禁用
DefaultProxy 已禁用
Activity
Dragon1573 commentedon Apr 2, 2026
Important
It seems this issue only happens when invoking
winget.exe -m <local_manifest_folder>.When using
winget.exe upgradeorwinget installwith remote sources (mostlywinget), no errors occur.Dragon1573 commentedon Apr 2, 2026
Test with local manifests
Test with
wingetremote sourceDragon1573 commentedon Apr 3, 2026
All latest 5 versions of
winget.exefailed to install local manifests. Can't sure if it's a severe bug of Windows Sandbox instance only.Dragon1573 commentedon Apr 3, 2026
On Windows 11 Pro WorkStation host device, the latest pre-release version
v1.29.50-previewalso failed to install package properly.CC JohnMcPMS Kaleb Luedtke (@Trenly) Demitrius Nelon (@denelon) Muhammad Danish (@mdanish-kh) 🙏🏼
Dragon1573 commentedon Apr 3, 2026
👀 On another Windows 11 Pro host device,
v1.29.50-previewworks fine ...It's really weird ...
Dragon1573 commentedon Apr 3, 2026
Console logs
KarbitsCode commentedon May 15, 2026
Ah, so this is what happened, I also got affected to this bug, I was so confused why winget suddenly won't install anything.