When you compile the script, you are not compiling the source files necessary for the installation. You're just compiling the script. You have to supply the executable for the installation and make references to there location in the script. An AutoIT script is just a gloried batch file.