Windows defender prevents compilation Topic is solved

Ask for help, how to use AHK_H, etc.
User avatar
Brazolek123
Posts: 187
Joined: 06 Jun 2016, 16:02

Windows defender prevents compilation

Post by Brazolek123 » 26 Jun 2022, 05:15

So look, for x64 executable I use AutoHotkeySC.bin. This file is marked 26/68 on VirusTotal. Since the project is opensource and I don't have similar issues for x32 compiler I assume these are all false positives.

In the Windows Virus and Threat protection I already marked both compiler and destination paths as excluded from scanning. Thing is during compilation a temp .exe file is created in the Temp directory to be moved to destination path as soon as compilation is done. The problem is immediately after creation this temp file is scanned and removed, so the compilation process cannot succeed.

Excluding the Temp directory from scanning doesn't seem to be a good practice. Is there any tip you can give me in this situation, so I can compile it successfully?

TAC109
Posts: 1096
Joined: 02 Oct 2013, 19:41
Location: New Zealand

Re: Windows defender prevents compilation  Topic is solved

Post by TAC109 » 26 Jun 2022, 16:14

Rather than attempting to exclude the various files, it is better to just exclude the Ahk2Exe executable as a Process. This then additionally excludes the various files used by the process.
My scripts:-
XRef - Produces Cross Reference lists for scripts
ReClip - A Text Reformatting and Clip Management utility
ScriptGuard - Protects Compiled Scripts from Decompilation
I also maintain Ahk2Exe

Post Reply

Return to “Ask for Help”