Mat Posted May 9, 2010 Author Share Posted May 9, 2010 We haven't figured out what the exact root-cause is but it looks like the explorer reads the new EXE file's properties while the process isn't finished yet and still need to update the EXE's resources.I find closing scite helps aswell... That does help a lot though.As a solution, can aut2exe not lock the file itself? AutoIt Project Listing Link to comment Share on other sites More sharing options...
Shafayat Posted May 9, 2010 Share Posted May 9, 2010 So, if the compiler compiles to a file with fake extension and then rename it then it wont cause this problem? [Not using this account any more. Using "iShafayet" instead] Link to comment Share on other sites More sharing options...
Developers Jos Posted May 9, 2010 Developers Share Posted May 9, 2010 (edited) I find closing scite helps aswell... That does help a lot though.As a solution, can aut2exe not lock the file itself?Do not understand how closing SciTE would help as that only has the source open and the issue is with the EXE.It is not really AUT2EXE having the problem but it is probably the shelled UPX that has the issue when using the aut2exe directly.The reported resupdate error has nothing to do with AUT2EXE but is performed in AutoIt3Wrapper itself.Sequence of events in the 2 different scenario's"1. Running AUT2EXE:AUT2EXE puts the Bin and Script together into a EXE and updates the ICON when requested.AUT2EXE shells UPX when that is set2. F7 from SciTE with the full installer:AutoIt3Wrapper is shelled which will:Optionally Run_Before defined commandsRun AU3Check on the sourceOptionally Run Obfuscator and au3check on obfuscated source.Run AUT2EXE which puts the Bin and Script together into a EXE and updates the ICON when requested.Optionally Update program version resourcesOptionally Add other files to resources Optionally Run UPXOptionally Run_After defined commandsWhen the Explorer is open we see the update of the resources failing on a regular basis. Edited May 9, 2010 by Jos 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 May 9, 2010 Developers Share Posted May 9, 2010 So, if the compiler compiles to a file with fake extension and then rename it then it wont cause this problem?This is one of the option that could be tested and might work. 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...
Mat Posted May 9, 2010 Author Share Posted May 9, 2010 Do not understand how closing SciTE would help as that only has the source open and the issue is with the EXE.It is not really AUT2EXE having the problem but it is probably the shelled UPX that has the issue when using the aut2exe directly.The reported resupdate error has nothing to do with AUT2EXE but is performed in AutoIt3Wrapper itself.---When the Explorer is open we see the update of the resources failing on a regular basis.I see it fail when hitting f7 fairly often, thats when I first noticed the problem. AutoIt Project Listing Link to comment Share on other sites More sharing options...
Developers Jos Posted May 9, 2010 Developers Share Posted May 9, 2010 I see it fail when hitting f7 fairly often, thats when I first noticed the problem.That is what I described but just wanted to make the point that closing SciTE will not help in my mind. 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...
Mat Posted May 9, 2010 Author Share Posted May 9, 2010 That is what I described but just wanted to make the point that closing SciTE will not help in my mind.Ok, I see your point now, but I was still getting the problems when explorer windows were all closed. AutoIt Project Listing Link to comment Share on other sites More sharing options...
DavidRogers Posted December 10, 2010 Share Posted December 10, 2010 For what it's worth - Running 3.3.6.1 on Windows 7 ultimate, fully patched I can rarely complie a script with Windows Explorer open but have no problems when explorer is closed. Link to comment Share on other sites More sharing options...
Developers Jos Posted December 10, 2010 Developers Share Posted December 10, 2010 For what it's worth - Running 3.3.6.1 on Windows 7 ultimate, fully patched I can rarely complie a script with Windows Explorer open but have no problems when explorer is closed.This was indeed identified by others too. Having Explorer open in the Script directory could indeed cause problems compiling. 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...
whim Posted December 10, 2010 Share Posted December 10, 2010 (edited) Never had any trouble compiling (Win7 HP x64 / using AutoIt 3.3.6.1 x86), and I always have an explorer window open on the project dir containing both au3 and exe .... I would suggest investigating if disabling Windows Search and indexing service makes a difference, i've always had them disabled. Edited December 10, 2010 by whim Link to comment Share on other sites More sharing options...
fxm Posted February 20, 2011 Share Posted February 20, 2011 (edited) Windows XP/SP3. I'm late to this old thread but I wanted to add a comment about the error message from Aut2Exe "unable to create compiled archive" (and other errors/failures discussed above). In my case a completely effective workaround was to disable the [ ] Use UPX option. So long as that option is enabled, it appears than an AV rule [in Microsoft Security Essentials I think] blocks the .exe file from being written. I also experienced intermittent compile failures [using SciTE and GUI wrapper directives] which were completely eliminated by making sure that when the folder containing the source happens to be open in Explorer at the time of compilation, the file being compiled does not have the focus. Edited February 20, 2011 by fxm Link to comment Share on other sites More sharing options...
fxm Posted February 20, 2011 Share Posted February 20, 2011 (edited) / Edited February 20, 2011 by fxm 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