Pyinstaller .exe throws Windows Defender [no publisher]

筅森魡賤 提交于 2019-12-03 22:49:48

问题


I developped a python code an i converted it to a exe with pyinstaller but the problem is that there is no publisher so each time a coputer runs my program, Windows Defender throws an alert that says that there is no publisher so the program is not sure... Does anyone know how to change the publisher of an .exe from none to somthing or how to implement Publisher in pyinstaller ?

Thanks a lot. Julien


回答1:


The short answer is that this has nothing to do with PyInstaller. It's a general issue with any exe in recent versions of Windows. You need to "code sign" your exe's now. It's really a money making scheme masked as a security enhancement.

As as example, you can purchase a cert from digicert. They're one of the big authorizing agents which MS will recognize automatically. https://www.digicert.com/code-signing

Or Google "code signing" for other options.

You can also self-sign for free. Check out this SO post: Signing a Windows EXE file

The problem with self-signing is that the user has to install your custom key first to recognize your signed exes. But... there are some tricks to silently install that first, if you want to go through the hassle to save a few bucks.



来源:https://stackoverflow.com/questions/44377666/pyinstaller-exe-throws-windows-defender-no-publisher

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!