Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
654 views
in Technique[技术] by (71.8m points)

python - Pyinstaller .exe throws Windows Defender [no publisher]

I developed a Python code and I converted it to an .exe with pyinstaller but the problem is that there is no publisher so each time a computer 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 something or how to implement Publisher in pyinstaller?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...