Emiel Wieldraaijer Posted August 4, 2007 Share Posted August 4, 2007 Hi All, Windows XP SP2 Dutch AutoIt 3.2.4.9 / 3.2.5.1 Beta Wrapper 1.9.2 When i use FileInstall ("any.exe", @ScriptDir & "\any.exe",1) the executable created is smaller then when i use FileInstall ("CompletePathTo\any.exe", @ScriptDir & "\any.exe",1) Best regards, Emiel Best regards,Emiel Wieldraaijer Link to comment Share on other sites More sharing options...
Developers Jos Posted August 4, 2007 Developers Share Posted August 4, 2007 (edited) Moving this to Support since its a question not a bug report. You will have to provide more information like how much its bigger before I can say that it sounds correct. Are you also sure it picks up the same any.exe ? Edited August 4, 2007 by JdeB 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 More sharing options...
Emiel Wieldraaijer Posted August 4, 2007 Author Share Posted August 4, 2007 (edited) Indeed the same exe same path Test.au3 is in c:\test 7za.exe is in c:\test for example 7za.exe v4.32 which is 199168 bytes when is use c:\test\7za.exe the exe created is 406575 bytes when is use it without the path the exe created is 407553 bytes.. done it several times .. when using more exe files which are embedded in the created exe the size increases much and much more .. but if it's normal.. then it's no bug .. but i think it's strange embedding the same exe .. creates a different size executable afterwards Thnx Emiel Edited August 4, 2007 by Emiel Wieldraaijer Best regards,Emiel Wieldraaijer Link to comment Share on other sites More sharing options...
Developers Jos Posted August 4, 2007 Developers Share Posted August 4, 2007 Indeed the same exe same path Test.au3 is in c:\test 7za.exe is in c:\testfor example 7za.exe v4.32 which is 199168 byteswhen is use c:\test\7za.exe the exe created is 406575 bytes when is use it without the path the exe created is 407553 bytes.. done it several times .. when using more exe files which are embedded in the created exe the size increases much and much more .. but if it's normal.. then it's no bug .. but i think it's strange embedding the same exe .. creates a different size executable afterwardsThnxEmielAgree it is strange that when using the same EXE and no change to compression settings or UPX usage ... need to do some testing to see if I see the same...The only real difference is the lenght of the string in the FileInstall() statement ... 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 More sharing options...
Developers Jos Posted August 4, 2007 Developers Share Posted August 4, 2007 (edited) just created 2 test scripts in the AutoIt3 program dir : FileInstall("autoit3.exe", @TempDir & "\Autoit3.exe") FileInstall("C:\Program Files\AutoIt3\autoit3.exe", @TempDir & "\Autoit3.exe") They both generated more or less the same size EXE ... First: 492,888 Second: 492,915 Edited August 4, 2007 by JdeB 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 More sharing options...
Emiel Wieldraaijer Posted August 4, 2007 Author Share Posted August 4, 2007 Ok .. they are allmost the same in size.. but not the same and the same exe is embedded.. so it think it's a little bug .. when i make a little program with different languages and several pictures embedded .. i want to place the language/images and program files in a different folder.. i'll have more structure in my own folder listing .. when i do this my exe files increases from 1100kb to approx 1300kb i think it's a big difference.. the same files are embedded .. but the created executable are different in size.. so i think it's a bug .. Thnx Emiel Best regards,Emiel Wieldraaijer Link to comment Share on other sites More sharing options...
Developers Jos Posted August 4, 2007 Developers Share Posted August 4, 2007 (edited) Ok .. they are allmost the same in size.. but not the same and the same exe is embedded.. so it think it's a little bug ..Why ?The difference between the 2 files is 27 Bytes.The difference in the Source lenght is 25 Bytes.Added 4 more FileInstalls with different files in the same directory ... result:Test1 594,795Test2 594,664 Diff 131 Bytes5 * 25 = 125 Bytes Edited August 4, 2007 by JdeB 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 More sharing options...
PsaltyDS Posted August 4, 2007 Share Posted August 4, 2007 (edited) Ok .. they are allmost the same in size.. but not the same and the same exe is embedded.. so it think it's a little bug .. when i make a little program with different languages and several pictures embedded .. i want to place the language/images and program files in a different folder.. i'll have more structure in my own folder listing .. when i do this my exe files increases from 1100kb to approx 1300kb i think it's a big difference.. the same files are embedded .. but the created executable are different in size.. so i think it's a bug .. Thnx EmielIf the difference is just the length of the source file name string, that's not a bug at all, not even a little one. But the difference you specified in post #4 is almost 1KB. Did you select no decompile (and/or use Obsfucate)? I'm thinking there might be some overhead to the encryption of the longer string that exaggerates the difference. Edited August 4, 2007 by PsaltyDS Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
Emiel Wieldraaijer Posted August 4, 2007 Author Share Posted August 4, 2007 @JdeB Indeed if you look at it that way.. sourcecode increases also .. @PsaltyDS Indeed the file is changed with Obsfucate but the example isn't Ok if you all say so .. adding the same files to the executable creates different sizes based on the path used .. is no bug .. then it's not .. but i think it's strange so i won't use paths anymore in my scripts.. thnx all for explaining it Emiel Best regards,Emiel Wieldraaijer Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now