Skip to content

Installer downloaded successfully and exists on disk, but installation phase fails/silently exits #6126

@WWW4R4E

Description

@WWW4R4E

Relevant area(s)

WinGet CLI

Relevant command(s)

winget install

Brief description of your issue

Image

Winget downloads the installer and verifies the hash successfully, but fails to execute the installation. The process exits silently after the download phase, even though the installer file is clearly present in the temporary directory. This issue affects multiple packages (e.g., Bun, 7zip.7zip).

Steps to reproduce

  1. Open PowerShell.
  2. Run the command: winget install Oven-sh.Bun (or other affected packages like 7zip.7zip).
  3. Wait for the download to complete and the hash to be verified.
  4. Observe that the command stops at this stage without installing the software.
  5. Manually check the temporary folder (e.g., C:\Users\123\AppData\Local\Temp\WinGet\...) and confirm that the installer file exists on the disk but was not launched.

Expected behavior

After the download and hash verification are complete, Winget should automatically execute the installer with the correct silent switches and finish the installation.

Actual behavior

The download completes (100%) and the hash matches. However, the installation phase never starts. The command line appears to hang or simply returns to the prompt without installing the application, despite the installer file being successfully downloaded to the local disk.

Environment

➜ winget --info
Windows 程序包管理器(预览) v1.29.50-preview
版权所有 (C) Microsoft Corporation。保留所有权利。

Windows: Windows.Desktop v10.0.26300.8155
系统体系结构: 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.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions