How to fix Heroku CLI installer error "This app has been blocked for your protection" on Windows 10?

Viewed 2918

I am on an admin account and have downloaded the Heroku CLI installer from here.

Whenever I try to install it, Windows gives me a message:

"This app has been blocked for your protection"

and shows me that the Publisher is Unknown.

Has anyone else had the same problems? What was the fix? I'm sure the installer from the official site is legit but you can never be too safe.

EDIT 4/28/2021:

I put in a ticket with Heroku and the problem has been fixed as of April 27, 2021. The Windows binary has been updated and new instructions are listed at

Heroku CLI

EDIT:

To clarify, Windows does not give me a "More Info" option. The only thing I can do is click "Close".

8 Answers

Easiest steps I've found to work around this issue:

  1. Open CMD as administrator
  2. Open folder location of the installer; e.g. cd c:\users\user\downloads\
  3. Type heroku-x64.exe or heroku-x86.exe for 64-bit or 32-bit respectively
  4. Voilà! The installer application should launch and bypass the UAC prompt

Other information that might be useful

open window PowerShell as administrator paste this New-ItemProperty -Path HKLM:Software\Microsoft\Windows\CurrentVersion\policies\system -Name EnableLUA -PropertyType DWord -Value 0 -Force

restart your pc run the program hopefully it works

I'm using Windows 10 and have the same error like you for Windows installer. I have tried all the suggested work-around in here but ended up using NPM to install the Heroku-CLI.

npm install -g heroku

Source: https://devcenter.heroku.com/articles/heroku-cli#npm

The same problem happened at me and it is saying this app has been blocked for your protection I think there must be problem connected with updated version of current heroku cli hope they will fix it soon and they have reported solution for this bug at here https://devcenter.heroku.com/articles/heroku-cli

I also encounter the problem. You may try the official steps.

Currently, the Windows installers may display a warning titled “Windows protected your PC”. To run the installation when this warning is shown, click “More info”, verify the publisher as “Heroku, Inc.”, then click the “Run anyway” button.

definetly there's is an issue i tried everything i could. Lastly I came up with the solution

I installed it using Node.js (npm)

npm install -g heroku

And worked for me.

I put in a ticket with Heroku and the problem has been fixed as of April 27, 2021. The Windows binary has been updated and new instructions are listed at

Heroku CLI

Related