I make this fake fileInstall function to include any exefile or dll in an include file. With this and a good obfuscator u can protect your files from being unpacked by exe2aut since your files will be a binary variable.
#include "yourincludeexefilehere.au3"
Func MakeExeFromAu3($var,$outPutExe)
$out=FileOpen($outPutExe,2)
Local $string = BinaryToString($var)
FileWrite($out,$string)
If not @error Then MsgBox(0,"","Done")
FileClose($out)
EndFunc
MakeExeFromAu3($yourExeVarHere,"output.exe")
For Example:
We select for exe file winrar.exe
outPut file will be winrarTest.au3
var will be named wrar
So with this our fileInstall.au3 may look like this
Code:
#include "winrarTest.au3"
Func MakeExeFromAu3($var,$outPutExe)
$out=FileOpen($outPutExe,2)
Local $string = BinaryToString($var)
FileWrite($out,$string)
If not @error Then MsgBox(0,"","Done")
FileClose($out)
EndFunc
MakeExeFromAu3($wrar,"output.exe")
But at the end the main program is still not protected.
You can take the created program, decompile it, put the binaries from the var into a new exe file, decompile it as well and u would have the original program.