Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I avoid "Windows protected your PC" problem when my friends try to use my executables?

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?

like image 210
Aldin322 Avatar asked Oct 23 '25 19:10

Aldin322


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

When you click more info, enter image description here

you will be met with

enter image description here

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?

like image 106
InKryption Avatar answered Oct 26 '25 09:10

InKryption


Its due to windows built-in security feature. Try not to send .exe but send your code and your friend could compile it at their own. Windows just not authenticating it, as the source is not verified, according to your friend OS.

like image 28
Shagufta Jabeen Avatar answered Oct 26 '25 09:10

Shagufta Jabeen