Jump to content

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:

DirCreate

24-FileInstall

RunWait

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?

Link to comment
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

Link to comment
Share on other sites

My guess is that the files you are installing are that size.

As I understand it, compiles autoit scripts are the size of its text + au3 interpreter, which in no way would amount to that.

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Link to comment
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 ****

#AutoIt3Wrapper_Outfile=C:\Users\xx\Desktop\AutoITTest\AdobeReader9.4MUIUpdate\AdobeReaderMUI940_x86.exe

#AutoIt3Wrapper_Compression=4

#AutoIt3Wrapper_UseX64=n

#AutoIt3Wrapper_Res_Comment=

#AutoIt3Wrapper_Res_Fileversion=1.0.0.0

#AutoIt3Wrapper_Res_Language=1033

#AutoIt3Wrapper_res_requestedExecutionLevel=requireAdministrator

#AutoIt3Wrapper_Res_File_Add=1028.mst

#AutoIt3Wrapper_Res_File_Add=1030.mst

#AutoIt3Wrapper_Res_File_Add=1031.mst

#AutoIt3Wrapper_Res_File_Add=1033.mst

#AutoIt3Wrapper_Res_File_Add=1034.mst

#AutoIt3Wrapper_Res_File_Add=1035.mst

#AutoIt3Wrapper_Res_File_Add=1036.mst

#AutoIt3Wrapper_Res_File_Add=1040.mst

#AutoIt3Wrapper_Res_File_Add=1041.mst

#AutoIt3Wrapper_Res_File_Add=1042.mst

#AutoIt3Wrapper_Res_File_Add=1043.mst

#AutoIt3Wrapper_Res_File_Add=1044.mst

#AutoIt3Wrapper_Res_File_Add=1046.mst

#AutoIt3Wrapper_Res_File_Add=1053.mst

#AutoIt3Wrapper_Res_File_Add=2052.mst

#AutoIt3Wrapper_Res_File_Add=abcpy.ini

#AutoIt3Wrapper_Res_File_Add=AcroRead.msi

#AutoIt3Wrapper_Res_File_Add=AcroRead.sms

#AutoIt3Wrapper_Res_File_Add=AdbeRdr940.bat

#AutoIt3Wrapper_Res_File_Add=AdbeRdrUpd940_mui.mst

#AutoIt3Wrapper_Res_File_Add=AdbeRdrUpd940_mui_cum.msp

#AutoIt3Wrapper_Res_File_Add=Data1.cab

#AutoIt3Wrapper_Res_File_Add=Setup.exe

#AutoIt3Wrapper_Res_File_Add=setup.ini

#AutoIt3Wrapper_Au3Check_Stop_OnWarning=y

#AutoIt3Wrapper_Run_Tidy=y

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

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

AutoIt Version: 3.3.6.1

Author: myName

Script Function:

Template AutoIt script.

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

; Script Start - Add your code below here

Opt("TrayIconHide", 1)

DirCreate("C:\Windows\Temp\AdbeRdrupd940_mui")

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)

post-61180-0-56770900-1289512308_thumb.j

Link to comment
Share on other sites

  • Developers

You are adding them twice in this way.

Get rid of the "#AutoIt3Wrapper_Res_File_Add=" lines as they have no purpose.

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...