Pyinstaller .exe抛出Windows Defender [无发布者] [英] Pyinstaller .exe throws Windows Defender [no publisher]

查看:295
本文介绍了Pyinstaller .exe抛出Windows Defender [无发布者]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发了一个python代码,并使用pyinstaller将其转换为exe,但问题是没有发布者,因此每次有计算机运行我的程序时,Windows Defender都会发出警报,提示没有发布者,因此该程序不确定...是否有人知道如何将.exe的发布者从无更改为某物,或如何在pyinstaller中实现Publisher?

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 ?

非常感谢。
Julien

Thanks a lot. Julien

推荐答案

简短的答案是,这与PyInstaller无关。在最新版本的Windows中,任何exe都是一个普遍问题。您需要立即对自己的exe进行代码签名。这确实是一种赚钱的计划,但可以掩盖安全性。

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.

例如,您可以从digicert购买证书。它们是MS会自动识别的大型授权代理之一。
https://www.digicert.com/code-signing

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

或其他选项的Google代码签名。

Or Google "code signing" for other options.

您也可以免费进行自我签名。请查看以下SO帖子:
签名Windows EXE文件

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

自签名的问题是用户必须先安装您的自定义密钥才能识别已签名的exe。但是...如果您想省去一些麻烦,有一些技巧可以先进行静默安装。

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.

这篇关于Pyinstaller .exe抛出Windows Defender [无发布者]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆