Jump to content
Sign in to follow this  

Size of EXE huge

Recommended Posts

I created a simple script to drop some files in the windows temp then run a batch file. I used highest compression. The total size of all the files plus the au3 file is 286MB. The final EXE file is 559MB

Consists of:




Wrapper settings, Compile with Options: compression highest, x86, exe, use UPX, requireAdminstrator, extra files-24 added, Run AUECheck, Run Tidy

That's it.

Why is the final file so huge?

Share this post

Link to post
Share on other sites

Are you using any #includes in your script? If so, when you compile it it will add in all of the included files to your exe unless you add this line "#Obfuscator_Parameters=/om /striponly" at the top of your script. Just a thought.

If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Share this post

Link to post
Share on other sites

No, here it is. Files were added on the Res Add Files tab (see attached). Is this wrong?

#Region ;**** Directives created by AutoIt3Wrapper_GUI ****


































#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****

#cs ----------------------------------------------------------------------------

AutoIt Version:

Author: myName

Script Function:

Template AutoIt script.

#ce ----------------------------------------------------------------------------

; Script Start - Add your code below here

Opt("TrayIconHide", 1)


FileInstall(".\1028.mst", "c:\windows\temp\AdbeRdrUpd940_mui\1028.mst", 1)

FileInstall(".\1030.mst", "c:\windows\temp\AdbeRdrUpd940_mui\1030.mst", 1)

FileInstall(".\1031.mst", "c:\windows\temp\AdbeRdrUpd940_mui\1031.mst", 1)

FileInstall(".\1033.mst", "c:\windows\temp\AdbeRdrUpd940_mui\1033.mst", 1)

FileInstall(".\1034.mst", "c:\windows\temp\AdbeRdrUpd940_mui\1034.mst", 1)

FileInstall(".\1035.mst", "c:\windows\temp\AdbeRdrUpd940_mui\1035.mst", 1)

FileInstall(".\1036.mst", "c:\windows\temp\AdbeRdrUpd940_mui\1036.mst", 1)

FileInstall(".\1040.mst", "c:\windows\temp\AdbeRdrUpd940_mui\1040.mst", 1)

FileInstall(".\1041.mst", "c:\windows\temp\AdbeRdrUpd940_mui\1041.mst", 1)

FileInstall(".\1042.mst", "c:\windows\temp\AdbeRdrUpd940_mui\1042.mst", 1)

FileInstall(".\1043.mst", "c:\windows\temp\AdbeRdrUpd940_mui\1043.mst", 1)

FileInstall(".\1044.mst", "c:\windows\temp\AdbeRdrUpd940_mui\1044.mst", 1)

FileInstall(".\1046.mst", "c:\windows\temp\AdbeRdrUpd940_mui\1046.mst", 1)

FileInstall(".\1053.mst", "c:\windows\temp\AdbeRdrUpd940_mui\1053.mst", 1)

FileInstall(".\2052.mst", "c:\windows\temp\AdbeRdrUpd940_mui\2052.mst", 1)

FileInstall(".\abcpy.ini", "c:\windows\temp\AdbeRdrUpd940_mui\abcpy.ini", 1)

FileInstall(".\AcroRead.msi", "c:\windows\temp\AdbeRdrUpd940_mui\AcroRead.msi", 1)

FileInstall(".\AcroRead.sms", "c:\windows\temp\AdbeRdrUpd940_mui\AcroRead.sms", 1)

FileInstall(".\AdbeRdrUpd940_mui.mst", "c:\windows\temp\AdbeRdrUpd940_mui\AdbeRdrUpd940_mui.mst", 1)

FileInstall(".\AdbeRdrUpd940_mui_cum.msp", "c:\windows\temp\AdbeRdrUpd940_mui\AdbeRdrUpd940_mui_cum.msp", 1)

FileInstall(".\Data1.cab", "c:\windows\temp\AdbeRdrUpd940_mui\Data1.cab", 1)

FileInstall(".\Setup.exe", "c:\windows\temp\AdbeRdrUpd940_mui\Setup.exe", 1)

FileInstall(".\Setup.ini", "c:\windows\temp\AdbeRdrUpd940_mui\Setup.ini", 1)

FileInstall(".\AdbeRdr940.bat", "c:\windows\temp\AdbeRdrUpd940_mui\AdbeRdr940.bat", 1)

RunWait(@ComSpec & " /c " & "c:\windows\temp\AdbeRdrUpd940_mui\AdbeRdr940.bat", "", @SW_HIDE)


Share this post

Link to post
Share on other sites

Ok, so using the command FileInstall also adds the files to the build. I thought you had to 1. add the files to the build, then 2. have a command saying where to extract them to use. This one command does both?

Share this post

Link to post
Share on other sites

Yes, FileInstall does both for you. That's why the first parameter has to be a literal path, and not a variable, because it is actually used at Compile Time to find the file, and add it to the final exe.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...