When my friends try to open the executable resulting from building my project (i.e. a ".exe"), they take the error "Windows protected your PC".
Both my c++ and python projects cannot be executed on my friends' computers because of the error.
How can I allow it?
-
2More importantly, why doesn't this block occur on "professional" software? How can we make software that isn't blocked?birgersp– birgersp2021-09-05 17:51:02 +00:00Commented Sep 5, 2021 at 17:51
3 Answers
This isn't an error; this is a design choice by Microsoft to protect those of us who are not tech-savvy (i.e. potentially your friends). And although it is a little bit annoying, it is not actually a roadblock.
you will be met with
and thus be able to run the program by clicking "Run anyway", despite Microsoft's warning, because you know for a fact that the program is safe - or in this case, your friends know that the program is safe, because you probably don't have any malicious intent.
... Or do you?
4 Comments
You need to disable the windows smart screen to run unpublished apps in Windows 10. Follow the below steps for Windows 8 or 10. https://www.howtogeek.com/75356/how-to-turn-off-or-disable-the-smartscreen-filter-in-windows-8/
Or you can surf the internet for disabling the windows smartscreen with yours or your friends OS build number.

