winget-cli icon indicating copy to clipboard operation
winget-cli copied to clipboard

[bug] Conan cannot be installed through Winget due to Windows defender blocking AppInstallerCLI.exe

Open aminya opened this issue 4 years ago • 4 comments

Environment Details (include every applicable attribute)

  • Operating System+version: Win 11
  • Compiler+version: -
  • Conan version: 1.41.0
  • Python version: 3.9

Steps to reproduce (Include if Applicable)

Try to install Conan using Winget.

I use the protected folders feature of Windows Defender, but the Conan installer should not need to modify those folders! Also, the warning that I get is also related to the protected folders.

Logs (Executed commands with output) (Include/Attach if Applicable)

Blocked: AppInstallerCLI.exe Blocked by: Attack surface reduction Rule: Use advanced protection against ransomware Affected: C:\Users\aminy\AppData\Local\Temp\WinGet\JFrog.Conan.1.41.0.exe

https://docs.microsoft.com/en-us/microsoft-365/security/defender-endpoint/troubleshoot-asr?view=o365-worldwide

The link says that this only applies to Enterprise Windows, although I am on a normal edition.

image

> winget --info
Windows Package Manager v1.1.12701
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22000.194
Package: Microsoft.DesktopAppInstaller v1.16.12701.0

Logs: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir

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

Mirror of https://github.com/conan-io/conan/issues/9777

aminya avatar Oct 12 '21 09:10 aminya

If you drag and drop the installer into your Downloads folder, does it work? (This doesn't solve your problem, but I'm curious if Defender has trouble with the installer itself or with where it is)

jedieaston avatar Oct 12 '21 11:10 jedieaston

Yes. I am able to install Conan using Chocolatey.

aminya avatar Oct 12 '21 11:10 aminya

@aminya is this only blocking Conan? Or are other installs blocked as well?

denelon avatar Oct 12 '21 15:10 denelon

Only Conan. I also got a dialogue error saying something like: the path does not exist.

aminya avatar Oct 12 '21 17:10 aminya

@aminya this issue is quite old and several releases of WinGet have come and gone. Is this still happening?

denelon avatar Jul 20 '23 00:07 denelon

I have not tested, but I don't think it is relevant now

aminya avatar Jul 26 '23 07:07 aminya