Skip to content

Winget Installer Blocked by Microsoft Defender SmartScreen #319

Open
@harkabeeparolus

Description

@harkabeeparolus

Steps to reproduce

  1. Use Windows 11.
  2. Type winget install vim.vim
Downloading https://github.com/vim/vim-win32-installer/releases/download/v9.0.1672/gvim_9.0.1672_x64.exe
  ██████████████████████████████  10.4 MB / 10.4 MB
Successfully verified installer hash
Starting package install...
The installer will request to run as administrator, expect a prompt.
Successfully installed

It says successful, but nothing happens. No prompts, no windows, nothing.

However, when I download the exe file (gvim_9.0.1672_x64.exe) and run it from the web browser or Windows file manager, I do get an error message -- the following popup, and the only option is a button that says "Don't run":

Windows protected your PC

Microsoft Defender SmartScreen prevented an unrecognized app from starting. Running this app might put your PC at risk.

App:  gvim_9.0.1672_x64.exe 
Publisher:  Unknown publisher 

[Don’t run]

So winget fails because the executable is blocked.

Expected behaviour

I expected the installer to run.

  • The unsigned installers keep being blocked by Microsoft Defender SmartScreen.
  • All the signed installers seem to work normally.

For this reason, I suspect that the published winget package should use a signed installer, to avoid being blocked by Windows.

Version of Vim

9.0.1672

Environment

Windows version: Windows 11, 22H2 (OS Build 22621.1992)

Installer package: gvim_9.0.1672_x64.exe

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions