You can find his blog here, and his contribution on Microsoft Technet's forums here. The original script comes from Ingo Karstein, but the development seems to have halted in 2017.
The compiled script and additional files added with FileInstall are compressed with my own (Jon) compression scheme.An update to PS2EXE tool (all versions are open-source): The /bin switch is redundant as of version 3.3.10.0 and has been removed from this list. The /ansi and /unicode switches are redundant as of version 3.3.0.0. They will be ignored if used and have been removed from this list. The /pass and /nodecompile switches are redundant as of version 3.2.8.1. Use the /x86 and /圆4 parameters to explicitly specify the output. With the exception of /in all switches are optional.īy default, the 32-bit compiler produces a 32-bit binary and the 64-bit compiler produces a 64-bit binary. Long filenames should be enclosed in double-quotes like "C:\Program Files\Test\3". Will result in the creation of a unicode c:\myscript.exe with normal compression which will use the default AutoIt icon for use on win_32 systems. Will result in the creation of c:\myapp.exe with normal compression which will use the specified icon and be compiled for use on 圆4 system architecture. in c:\3 /out c:\myapp.exe /icon c:\myicon.ico /圆4 Specifies that the script should be compiled as a Windows application. Specifies that the script should be compiled as a Console application. Specifies that the script should be compiled for use on systems with x86 (32-bit) architecture. Specifies that the script should be compiled for use on systems with 圆4 (64-bit) architecture.
Specifies that the file should be compressed with UPX after compilation. Specifies that the file should not be compressed with UPX after compilation. It must be a number between 0 (none) and 4 (maximum). Specifies the compression level to be used when encoding the script (This is NOT related to UPX). Specifies the path and file name of the icon to use for the compiled file. Specifies the path and file name when creating an *.a3x file. Specifies the path and name of the compiled file. Specifies the path and file name of the bin file to be used to compile the file. The Aut2Exe.exe program can be run from the command line as follows:Īut2exe. When compiling in this way, Aut2Exe uses current icon/compression settings (from the last time Aut2Exe was run manually as in method 1). The file will be silently compiled with the same filename - just with a. Right-click the file to access the pop-up menu.ģ. You still need to have it accessible on the target machine but just AutoIt3.exe.ġ. Smaller files as they don't include the AutoIt3.exe in each compiled script.
a3x contains the script itself with all referred #include plus the FileInstall files. They should be run with AutoIt.exe filename.a3x. However, no matter what compression level you select the decompression speed (when the. As with all compression routines the better the compression you The only other option you might wish to change is the compression level (especially if using FileInstall to add extra files).
exe - just browse to the icon you want (some example icons are supplied in Program Files\AutoIt3\Aut2Exe\Icons).Ħ. If you like you can change the icon of the resulting. Use the Browse buttons to select your input (.au3) and output (.exe) files.ĥ. The main Aut2Exe interface should appear.Ĥ. Open the Start Menu and browse to the AutoIt v3 group.ģ.
Only available if full install performed.ġ.
a3x file can be included in another script or run by an AutoIt interpreter - either Autoit3.exe itself or another compiled script with the AutoItExecuteAllowed flag set.Ĭaution: the script to be compiled must be free of syntax error as the compilation process does not check the syntax.Īut2Exe can be used in three ways: Method 1 - Start Menu Depending on the compilation option chosen, this " compiled" script will either be inserted into the resources of a stand-alone executable interpreter which will run it directly or saved in. In that way none of these additional files are required at runtime. The compilation process converts the script and its #include files, plus any files added by the FileInstall function, into a tokenised form which is then compressed and encrypted. au3 script and compile it into a standalone executable this executable can be used without the need for AutoIt to be installed and without the need to have AutoIt3.exe on the machine. Compiling Scripts with Aut2Exe Compiling Scripts with Aut2Exe