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".
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.
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.
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.
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.
Easiest steps I've found to work around this issue:
cd c:\users\user\downloads\
heroku-x64.exe
or heroku-x86.exe
for 64-bit or 32-bit respectivelyOther 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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With