Skip to content

[Sandbox Test]: WinGet failed to download installer file with proper name #6121

@Dragon1573

Description

@Dragon1573

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

  1. Make sure you've cloned microsoft/winget-pkgs and checked out the latest master branch.
  2. 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                              已禁用

Metadata

Metadata

Assignees

No one assigned

    Labels

    Command-InstallIssue related to WinGet InstallIssue-BugIt either shouldn't be doing this or needs an investigation.Needs-TriageIssue needs to be triaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions