Expected behavior
If the --noconsole flag is omitted then Windows run.exe is used instead of the Windows runw.exe, which doesn't cause Windows virus alerts.
The runw.exe file that needs to be updated can be found at C:\Users\welfj\AppData\Local\Programs\Python\Python39\Lib\site-packages\PyInstaller\bootloader\Windows-64bit on my computer.
Expected behavior If the --noconsole flag is omitted then Windows run.exe is used instead of the Windows runw.exe, which doesn't cause Windows virus alerts.
The runw.exe file that needs to be updated can be found at
C:\Users\welfj\AppData\Local\Programs\Python\Python39\Lib\site-packages\PyInstaller\bootloader\Windows-64bit
on my computer.Additional context This StackOverflow reply details how this issue can be fixed by compiling the bootloader binaries yourself: https://stackoverflow.com/a/52054580/13279557