Zedna Posted August 24, 2007 Share Posted August 24, 2007 If I implement this I would just add logic to check if nothing changed and skip "the removal and adding of the new directives" portion. Of course it's more elegant way doing this.This will be great if you will do it. BTW: When I'm looking at your Scite background stuff (Auto3Wrapper sources and so on) I must say it's huge project to make and maintain such big baby Thanks for all this JdeB! Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Jazkal Posted August 24, 2007 Share Posted August 24, 2007 Have no option to test x64 at this moment, but does it install in a separate directory ?JosAs far as I know, there isn't an "official" directory location for the x64 files. And there isn't a "installer" for them at the moment.Currently there are only two x64 files, which you can find here: http://www.autoitscript.com/autoit3/files/beta/autoit/x64/AutoIt3.exe AutoItSC.binI'm not sure what would be the "best" way of handling a x64 build. But possibly having them in a separate "x64" sub-folder under the mainline or beta directories would work. Then just having your compiler switch out the files, or redirecting the command line parameters to the x64 files. I can test anything you need tested. Link to comment Share on other sites More sharing options...
Zedna Posted August 30, 2007 Share Posted August 30, 2007 I have some little issues with Auto3Wrapper: This is little testing script: #include <File.au3> $file = _TempFile() FileInstall("image.png", $file) I compiled it from Scite by F7 twice: 1) image.png was present 2) image.png was missing In case 2) Aut2Exe show error messagebox with: --------------------------- Aut2Exe Error --------------------------- Error adding file: image.png --------------------------- OK --------------------------- First issue is that in case 2) Scite output window shows rc=0 from Aut2Exe Second issue is that detailed output from UPX is shown only in case 1) Here are outputs: 1) image.png was present (but details from UPX missing) >"C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /prod /CompileDefaults /in "C:\111\zz.au3" /autoit3dir "C:\Program Files\AutoIt3"+>16:10:34 Starting AutoIt3Wrapper v.1.9.3 >Running AU3Check (1.54.9.0) from:C:\Program Files\AutoIt3 +>16:10:35 AU3Check ended.rc:0 >Running:(3.2.6.0):C:\Program Files\AutoIt3\aut2exe\aut2exea.exe +>16:10:35 Aut2exe.exe ended.rc:0 >Running (3.0.0.0): C:\Program Files\AutoIt3\aut2exe\upx.exe +>16:10:36 UPX.exe ended.rc:0 +>16:10:37 AutoIt3Wrapper Finished >Exit code: 0 Time: 2.480 2) image.png was missing - shown error from Aut2Exe and details from UPX but Aut2exe.exe ended.rc:0 >"C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /prod /CompileDefaults /in "C:\111\zz.au3" /autoit3dir "C:\Program Files\AutoIt3"+>16:14:27 Starting AutoIt3Wrapper v.1.9.3 >Running AU3Check (1.54.9.0) from:C:\Program Files\AutoIt3 +>16:14:28 AU3Check ended.rc:0 >Running:(3.2.6.0):C:\Program Files\AutoIt3\aut2exe\aut2exea.exe +>16:14:48 Aut2exe.exe ended.rc:0 >Running (3.0.0.0): C:\Program Files\AutoIt3\aut2exe\upx.exe Ultimate Packer for eXecutables Copyright © 1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007 UPX 3.00w Markus Oberhumer, Laszlo Molnar & John Reiser Apr 27th 2007 File size Ratio Format Name -------------------- ------ ----------- ----------- Packed 0 files. upx: C:\111\zz.exe: FileNotFoundException: C:\111\zz.exe ->16:14:48 UPX.exe ended.rc:1 +>16:14:48 AutoIt3Wrapper Finished >Exit code: 0 Time: 20.876 Note: I'm using implicit ANSI compilation: UseAnsi=1 in "C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\autoit3wrapper.ini" Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Developers Jos Posted August 30, 2007 Author Developers Share Posted August 30, 2007 I have some little issues with Auto3Wrapper: This is little testing script: #include <File.au3> $file = _TempFile() FileInstall("image.png", $file) I compiled it from Scite by F7 twice: 1) image.png was present 2) image.png was missing In case 2) Aut2Exe show error messagebox with: First issue is that in case 2) Scite output window shows rc=0 from Aut2Exe Second issue is that detailed output from UPX is shown only in case 1) First issue: AUT2EXE returns actually a 0 with an Include error. I can add a test to ensure the output exe is created to avoid the UPX error. Second issue: I guess you mean the the UPX output is only show in case 2? This is working as designed, I only show returned text when the Upx RC not equeal to 0. 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...
Zedna Posted August 30, 2007 Share Posted August 30, 2007 (edited) First issue: AUT2EXE returns actually a 0 with an Include error. I can add a test to ensure the output exe is created to avoid the UPX error.Second issue: I guess you mean the the UPX output is only show in case 2? This is working as designed, I only show returned text when the Upx RC not equeal to 0. OK.But now I have another problem.Today I reinstaled Whole AutoIt/Scite/Auto3Library/Koda/Project Manager on my WIN98 machine to latest release/beta 3.2.6.0/3.2.7.1 and I have problem with UPX.My output EXE is not compressed by UPX although Scite output looks OK (upx rc=0). When I compress it by hand it's OK too."C:\Program Files\AutoIt3\Aut2Exe\upx.exe" is OK too.I tried in AutoIt3Wrapper.ini force UseUpx=1 and also force #AutoIt3Wrapper_UseUpx=y in scropt with no luck and also Ctrl+F7 with no luck too.Here is Scite ouput for F7:>"C:\PROGRAM FILES\AUTOIT3\SCITE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /prod /CompileDefaults /in "C:\Program Files\AutoIt3\PZ\111\azpro_verze.au3" /autoit3dir "C:\Program Files\AutoIt3"+>00:33:25 Starting AutoIt3Wrapper v.1.9.2>Running AU3Check (1.54.9.0) from:C:\Program Files\AutoIt3+>00:33:25 AU3Check ended.rc:0>Running:(3.2.6.0):C:\Program Files\AutoIt3\aut2exe\aut2exea.exe+>00:33:26 Aut2exe.exe ended.rc:0>Running (3.0.0.0): C:\Program Files\AutoIt3\aut2exe\upx.exe+>00:33:26 UPX.exe ended.rc:0+>00:33:26 AutoIt3Wrapper Finished>Exit code: 0 Time: 1.980Here is Scite ouput for Alt+F7:>"C:\PROGRAM FILES\AUTOIT3\SCITE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /beta /CompileDefaults /in "C:\Program Files\AutoIt3\PZ\111\azpro_verze.au3" /autoit3dir "C:\Program Files\AutoIt3\beta"+>00:51:55 Starting AutoIt3Wrapper v.1.9.2>Running AU3Check (1.54.9.0) from:C:\Program Files\AutoIt3\beta+>00:51:56 AU3Check ended.rc:0>Running:(3.2.7.1):C:\Program Files\AutoIt3\beta\aut2exe\aut2exea.exe+>00:51:57 Aut2exe.exe ended.rc:0>Running (3.0.0.0): C:\Program Files\AutoIt3\beta\aut2exe\upx.exe+>00:51:58 UPX.exe ended.rc:0+>00:51:58 AutoIt3Wrapper Finished>Exit code: 0 Time: 3.524Here is Scite ouput for Ctrl+F7:>"C:\PROGRAM FILES\AUTOIT3\SCITE\AutoIt3Wrapper\AutoIt3Wrapper_Gui.exe" /in "C:\Program Files\AutoIt3\PZ\111\azpro_verze.au3"+>00:30:05 Starting AutoIt3Wrapper GUI v.1.9.2+>00:31:59 Starting AutoIt3Wrapper v.1.9.2>Running AU3Check (1.54.9.0) from:C:\Program Files\AutoIt3+>00:31:59 AU3Check ended.rc:0>Running:(3.2.6.0):C:\Program Files\AutoIt3\aut2exe\aut2exea.exe+>00:32:00 Aut2exe.exe ended.rc:0>Running (3.0.0.0): C:\Program Files\AutoIt3\aut2exe\upx.exe+>00:32:00 UPX.exe ended.rc:0+>00:32:00 AutoIt3Wrapper Finished>Process failed to respond; forcing abrupt termination...>Exit code: 0 Time: 116.824Notes: - with Ctrl+F7 there is "Process failed to respond; forcing abrupt termination..."- with Alt+F7 (beta) ir's the same Can you help me? Edited August 30, 2007 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Developers Jos Posted August 31, 2007 Author Developers Share Posted August 31, 2007 (edited) I knew there was a reason for doing the FileChgDir() I am at the moment not testing any changes on WIn98 anymore when changes are made and will try to see if it can be solved.... Thanks Jos Edited August 31, 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...
Developers Jos Posted August 31, 2007 Author Developers Share Posted August 31, 2007 looks like its fixed in the current Beta version ... just have a try when you can . 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...
Jazkal Posted August 31, 2007 Share Posted August 31, 2007 looks like its fixed in the current Beta version ... just have a try when you can . Where do you find the latest Beta? I looked on the Scite4AutoIt page, and the Autoit3 Beta downloads, and couldn't find it.Thanks Link to comment Share on other sites More sharing options...
Zedna Posted August 31, 2007 Share Posted August 31, 2007 (edited) looks like its fixed in the current Beta version ... just have a try when you can . Latest beta of AutoIt3Wrapper don't work on WIN98 so I can't verify this. Problem is that it produces errorr code 259 from AU3Check then it runs but script must be finished by Ctrl+Break from Scite (standard close will not terminate it): zz.au3 - test script (it's the same with all scripts): MsgBox(0,'Title','text') Output after F5 with release version 1.9.2 (OK) >"C:\PROGRAM FILES\AUTOIT3\SCITE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "C:\111\zz.au3" /autoit3dir "C:\Program Files\AutoIt3" /UserParams +>01:20:15 Starting AutoIt3Wrapper v.1.9.2 >Running AU3Check (1.54.9.0) from:C:\Program Files\AutoIt3 +>01:20:15 AU3Check ended.rc:0 >Running:(3.2.6.0):C:\Program Files\AutoIt3\autoit3a.exe "C:\111\zz.au3" +>01:20:16 AutoIT3.exe ended.rc:0 +>01:20:18 AutoIt3Wrapper Finished >Exit code: 0 Time: 3.846 Output after F5 with beta version 1.9.3 (ERR) >"C:\PROGRAM FILES\AUTOIT3\SCITE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "C:\111\zz.au3" /autoit3dir "C:\Program Files\AutoIt3" /UserParams +>01:19:27 Starting AutoIt3Wrapper v.1.9.3 >Running AU3Check (1.54.9.0) from:C:\Program Files\AutoIt3 !>01:19:27 AU3Check ended.rc:259 >Running:(3.2.6.0):C:\Program Files\AutoIt3\autoit3a.exe "C:\111\zz.au3" !>01:19:27 AutoIT3.exe ended.rc:259 +>01:19:27 AutoIt3Wrapper Finished Note: Exit code and Time is missing because script must be finished by Ctrl+Break from Scite. Output after F7 with beta version 1.9.3 (EXE was created but not UPX compressed and works OK): >"C:\PROGRAM FILES\AUTOIT3\SCITE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /prod /CompileDefaults /in "C:\111\zz.au3" /autoit3dir "C:\Program Files\AutoIt3" +>01:33:32 Starting AutoIt3Wrapper v.1.9.3 >Running AU3Check (1.54.9.0) from:C:\Program Files\AutoIt3 !>01:33:32 AU3Check ended.rc:259 >Running:(3.2.6.0):C:\Program Files\AutoIt3\aut2exe\aut2exea.exe !>01:33:32 Aut2exe.exe ended.rc:259 >Running (3.0.0.0): C:\Program Files\AutoIt3\aut2exe\upx.exe !>01:33:33 UPX.exe ended.rc:259 +>01:33:33 AutoIt3Wrapper Finished >Exit code: 0 Time: 1.857 @Jazkal: beta version of AutoIt3Wrapper: http://www.autoitscript.com/autoit3/scite/...oIt3Wrapper.zip Edited September 1, 2007 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Developers Jos Posted September 1, 2007 Author Developers Share Posted September 1, 2007 (edited) Latest beta of AutoIt3Wrapper don't work on WIN98 so I can't verify this. Problem is that it produces errorr code 259 from AU3Check then it runs but script must be finished by Ctrl+Break from Scite (standard close will not terminate it): zz.au3 - test script (it's the same with all scripts): MsgBox(0,'Title','text') Output after F5 with release version 1.9.2 (OK) Output after F5 with beta version 1.9.3 (ERR) Note: Exit code and Time is missing because script must be finished by Ctrl+Break from Scite. Output after F7 with beta version 1.9.3 (EXE was created but not UPX compressed and works OK): I don't get this when testing it in a VM session with Win98 and I haven't changed anything in the execution of AU3Check so I am kinda puzzled what this could be. You say F7 created EXE works fine but you still have RC:259 on all the programs that run? Edited September 1, 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...
Developers Jos Posted September 1, 2007 Author Developers Share Posted September 1, 2007 Where do you find the latest Beta? I looked on the Scite4AutoIt page, and the Autoit3 Beta downloads, and couldn't find it.ThanksIts still work in progress so that is why it isn't advertised yet ... 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...
Zedna Posted September 1, 2007 Share Posted September 1, 2007 (edited) I don't get this when testing it in a VM session with Win98 and I haven't changed anything in the execution of AU3Check so I am kinda puzzled what this could be.You say F7 created EXE works fine but you still have RC:259 on all the programs that run?Yes exactly.On F5 program normally runs but in Scite output are rc 259 on all programsOn F7 EXE is created (and EXE works OK but is not UPX compressed) but in Scite output are rc 259 on all programsEDIT: I can make some more investigations with your sources for beta AutoItWrapper Edited September 1, 2007 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Zedna Posted September 3, 2007 Share Posted September 3, 2007 EDIT: I can make some more investigations with your sources for beta AutoItWrapper JDeB I probably found problem!! I was only looking at AutoItWrapper sources and found: ... $Pid = Run('"' & $Tidypgm & '" "' & $ScriptFile_In & '" /q', '', @SW_HIDE, 2) $Handle = _ProcessExitCode($Pid) $Return_Text = ShowStdOutErr($Pid) $ExitCode = _ProcessExitCode($Pid, $Handle) _ProcessCloseHandle($Handle) ... There was BUG introduced in 3.2.5.3 when dev's swith Autoit building from VC7.1 to VC8. This was fixed in 3.2.7.2 (2nd September 2007) (Beta) - Fixed: ProcessExist() under Windows 9x. See this post about that: post in BUG report So I think for correction just recompile AutoItWrapper with latest beta and it should be OK I didn't tested recompiling yet. Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Developers Jos Posted September 3, 2007 Author Developers Share Posted September 3, 2007 Yes, that would explain why it doesn't work for you. 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...
Zedna Posted September 3, 2007 Share Posted September 3, 2007 Yes, that would explain why it doesn't work for you. Yes. really.After recompiling with 3.2.7.3 it works OK.But problem with UPX stay opened. Output EXE files are not UPX compressed. Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Developers Jos Posted September 3, 2007 Author Developers Share Posted September 3, 2007 Yes. really.After recompiling with 3.2.7.3 it works OK.Yes I understand ... But problem with UPX stay opened. Output EXE files are not UPX compressed.Strange... just recompiled with the latest Beta and tested in VM - Win98 and is working fine.I have re uploaded this version to the Beta directory.Could you try this version 1.9.3.2 on AutoIt3Wrapper ....tnx 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...
Zedna Posted September 3, 2007 Share Posted September 3, 2007 Yes I understand ... Strange... just recompiled with the latest Beta and tested in VM - Win98 and is working fine.I have re uploaded this version to the Beta directory.Could you try this version 1.9.3.2 on AutoIt3Wrapper ....tnxIt's compiled with 3.2.6.0 still. So it doesn't work Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Developers Jos Posted September 3, 2007 Author Developers Share Posted September 3, 2007 It's compiled with 3.2.6.0 still. So it doesn't work shoot .... went back to update the version and recompiled obviously with the latest Prod ... Strange thing is that it did work for me in my Win98 VM session.Recompiled and uploaded (again)Sorry for the mistake 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...
Zedna Posted September 3, 2007 Share Posted September 3, 2007 (edited) shoot .... went back to update the version and recompiled obviously with the latest Prod ... Strange thing is that it did work for me in my Win98 VM session.Recompiled and uploaded (again)Sorry for the mistake Now it works!! Great. EXE has size about 250 KB instead of 500 KB now.Now I noticed little "bug":AutoIt3Wrapper.exe has file version 1.9.3.2but in Scite output window is 1.9.3So now I can test res_file_add directive too EDIT: I'm curious about your working WIN98 WM session too.That bug was returning wrong (truncated) PID from Run() function on WIN98 (where it's a big numbers) so every following calls returned error code. Maybe your WIN98 in WM session will not return such big PID numbers (to be truncated by bug)Note: I have WIN 98 SE Czech Edited September 3, 2007 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Developers Jos Posted September 4, 2007 Author Developers Share Posted September 4, 2007 (edited) Now it works!! Great. EXE has size about 250 KB instead of 500 KB now.Now I noticed little "bug":AutoIt3Wrapper.exe has file version 1.9.3.2but in Scite output window is 1.9.3Great! thanks for your testing .The version display is intentional. I always update the third version number when a new version is released. the forth number is used for building test/beta versions.JosThread continues here: http://www.autoitscript.com/forum/index.php?showtopic=47914 Edited September 9, 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...
Recommended Posts