0

I wrote a little python script. The purpose of the script is a creation of excel file with a list of files in directory and subfolders. I wrote it on latest pycharm on win 10 and compiled to .exe with pyinstall.

On my win 10 system it's run well, but on some other machines it give a mistake : "operation did not complete successfully because the file contains a virus" and erase it.

Of-course if I turn off windows defender it work, but how can I solve the problem without turning off the defender?

Thanks !

  • 1
    Does this answer your question? [Program made with PyInstaller now seen as a Trojan Horse by AVG](https://stackoverflow.com/questions/43777106/program-made-with-pyinstaller-now-seen-as-a-trojan-horse-by-avg) – wovano Sep 08 '21 at 09:13

1 Answers1

0

You can try to build PyInstaller's bootloader from source. It will (hopefully) reduce the possibility of your application being detected by antivirus software.
To do this, you can follow the documentation here.

In short, you can:

git clone --depth=1 https://github.com/pyinstaller/pyinstaller
cd pyinstaller/bootloader
python waf all
cd ../
pip install .

Make sure you have one of the c compiler (MSVC or MinGW) first.

If you want to know if your program is flagged by antivirus software as suspicious, you can upload your .exe to virustotal .

gfdsweds
  • 322
  • 3
  • 11