Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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".

like image 292
Crazy_K Avatar asked Apr 19 '21 15:04

Crazy_K


People also ask

How do I check if Heroku CLI is installed or not?

To verify your CLI installation, use the heroku --version command: $ heroku --version heroku/7.0.0 (darwin-x64) node-v8.0.0 You should see heroku/x.y.z in the output. If you don’t, but you have installed the Heroku CLI, it’s possible you have an old heroku gem on your system.

How to fix this app has been blocked for your protection?

This App Has Been Blocked for Your Protection comes from Windows Defender. Method 1. Open file blocked by Windows Defender by giving it an exception. Method 2. Open the blocked file from Elevated Command Prompt. Method 3. Fix This app has been blocked for your protection via Local Group Policy. Method 4.

What is the Heroku CLI?

The Heroku CLI is built with the Open CLI Framework (oclif), developed within Heroku / Salesforce. oclif is available as a framework for any developer to build a large or a small CLI. The framework includes a CLI generator, automated documentation creation, and testing infrastructure.

How often does Heroku run a background check on a client?

This background check happens at most once every 4 hours. The heroku binary checks for an up-to-date client in ~/.local/share/heroku/client before using the originally installed client. CLI plugins allow you to extend your CLI installation.


4 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

like image 184
Levi Wilkerson Avatar answered Oct 13 '22 09:10

Levi Wilkerson


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

like image 42
Azmat e Quran Avatar answered Oct 13 '22 10:10

Azmat e Quran


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

like image 2
Zaim Avatar answered Oct 13 '22 09:10

Zaim


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

like image 1
Alijon Jumanazarov Avatar answered Oct 13 '22 10:10

Alijon Jumanazarov