Followers 0

# Compiling Error.

## 6 posts in this topic

Hi all, I've recently come to start learning about AutoIt (its a great program btw ) my script runs fine, but i try to compile it to an .exe and i get an error.

Aut2Exe Error

Error: Unable to read in AutoIt stub file. (AutoItSC.bin).

Can someone help me to fix this?

##### Share on other sites

#2 ·  Posted (edited)

Welcome,

Hmm, is the file even there?

Run this to check

Global $bin_beta = False,$bin_prod = False
Global $reg_key = RegRead('HKLM\SOFTWARE\AutoIt v3\AutoIt', 'InstallDir') If Not @error Then If FileExists($reg_key) Then
If FileExists($reg_key & '\Aut2Exe\AutoItSC.bin') Then$bin_prod = True
EndIf
If FileExists($reg_key & '\beta\Aut2Exe\AutoItSC.bin') Then$bin_beta = True
EndIf
EndIf
MsgBox(0x40000, 'AutoItSC.bin', 'Production = ' & $bin_prod & @CRLF & _ 'Beta = ' &$bin_beta)
EndIf
Edited by MHz

##### Share on other sites

I have the same problem.

Error: Unable to read in AutoIT stub file. (AutoItSC.bin). When i tried to make an .exe

Yesterday I installed AutoIT V3 It alworks fine. Compiling worked fine too.

Today the error occured. I must say I think it has to do something with AVG. That also starts today with the virus alert. Sometimes at the same time when i compile the AutoIT and AVG report an error and a Virus alert.

Tried to reinstall AutoIT and stopped the AVG. No result only no Virus warnings

Zorrinde

##### Share on other sites

I tried to run that script, but it came up production=false beta=false.

##### Share on other sites

I tried to run that script, but it came up production=false beta=false.

Thanks. I would consider that of recent events occurring, that your Antivirus may have deleted the file. Try to install AutoIt again and see if it returns the AutoItSC.bin file. If your AV has updated definitions then the install may work good for you.

##### Share on other sites

Hey thanks alot, that seemed to work. Hopefully it stays like that .