简体   繁体   English

自动 Py-to-Exe | 签署 Windows EXE 文件

[英]Auto-Py-to-Exe | Signing a Windows EXE file

For the purpose of making a small piece of software for a friend to study I created a little GUI application with pysimplegui.为了制作一个小软件供朋友学习,我用pysimplegui创建了一个小GUI应用程序。 Because he is not really tech-savy and still has a Win7, I tried to pack it as.exe ahead and then also created an installer and gave it via USB to him.因为他不是很精通技术并且仍然有Win7,所以我尝试将其打包为.exe,然后还创建了一个安装程序并通过USB将其提供给他。 Unfortunately his Anti-Virus pops up and he gets sort of scared and didn't know what to do.不幸的是,他的防病毒软件弹出,他有点害怕,不知道该怎么办。 Figured out I could resolve it by signing the code with makecert but have to somehow get the key to be installed on his PC also.发现我可以通过使用 makecert 签署代码来解决它,但还必须以某种方式获取要安装在他的 PC 上的密钥。

Is there a way to implement that in the installer to spare him going through the technicalities?有没有办法在安装程序中实现这一点,以免他经历技术问题?

I used the Auto-Py-To-Exe application to convert the python file btw and InnoSetup to create the Installer --- Before handing over, I did try it on a clean Windows7 VM and it worked after using the installer (thought the Registry wanted to get it installed properly).我使用 Auto-Py-To-Exe 应用程序来转换 python 文件 btw 和 InnoSetup 以创建安装程序 --- 在移交之前,我确实在干净的 Windows7 VM 上尝试了它,并且在使用安装程序后它工作(认为注册表想要正确安装它)。

Remove code from your program that may be harmful从您的程序中删除可能有害的代码

Then virus detection software should ignore.那么病毒检测软件应该忽略。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM