Jump to content

Aut2Exe compiling error


Recommended Posts

So I am having difficulties compiling my scripts all of a sudden. I was jacking around with the different things the wrapper can do, and I seem to have seriously broken something. I get the message " Error: Unable to add resources. <path to various temp file>". (picture uploaded) The temp file that it lists changes every time I attempt to compile my script. It only gives me this error when I attempt to compile to an executable because when I try to compile an ax3, it works fine. I can also run the script in Scite without any issue. I thought maybe it was the script itself (perhaps I broke something in an edit) but it's not script dependent (I checked with other known working scripts). Uninstalling/reinstalling the latest version (both with and without a reboot in-between) hasn't corrected the issue either. Here's the really fun part: If I reboot my machine and compile the script for the first time since the reboot, it compiles, and the executable runs and performs perfectly. Every compile after that first one though will fail in the exact same manner. My Scite console isn't much help to me either, sadly. It's message is as follows:

>"C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /ShowGui /in "C:\Users\Negat1ve\Desktop\TOOLS\Tech\DVF_Batch_Scripts\Krelyn\Krelyn.au3"
+>10:45:37 Starting AutoIt3Wrapper v.15.503.1200.1 SciTE v.3.5.4.0   Keyboard:00000409  OS:WIN_7/Service Pack 1  CPU:X64 OS:X64    Environment(Language:0409)
+>         SciTEDir => C:\Program Files (x86)\AutoIt3\SciTE   UserDir => C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper   SCITE_USERHOME => C:\Users\Negat1ve\AppData\Local\AutoIt v3\SciTE
-> 1 Change(s) made.
>Running AU3Check (3.3.12.0)  from:C:\Program Files (x86)\AutoIt3  input:C:\Users\Negat1ve\Desktop\TOOLS\Tech\DVF_Batch_Scripts\Krelyn\Krelyn.au3
+>10:45:41 AU3Check ended.rc:0
>Running:(3.3.12.0):C:\Program Files (x86)\AutoIt3\aut2exe\aut2exe.exe  /in "C:\Users\Negat1ve\Desktop\TOOLS\Tech\DVF_Batch_Scripts\Krelyn\Krelyn.au3" /out "C:\Users\Negat1ve\AppData\Local\AutoIt v3\Aut2exe\~AU3pcikgsb.exe" /nopack /icon "..\..\..\..\Krelyn_Compt1.ico" /comp 4
!>10:45:44 Aut2exe.exe ended with errors because the target exe wasn't created, abandon build. (C:\Users\Negat1ve\AppData\Local\AutoIt v3\Aut2exe\~AU3pcikgsb.exe)rc:2
+>10:45:44 AutoIt3Wrapper Finished.
>Exit code: 1    Time: 7.358


Any help would be greatly appreciate because neither google nor the forums has led to a solution or even a similar problem (or at least one I can find) and I'm pulling out what little hair I have left at the moment.

Thanks in advance,
IDoStuff

aut2exe_error.jpg

Link to comment
Share on other sites

  • Moderators

It is obviously not finding a file it is trying to incorporate into the script. Since you've been "jacking around with it", how about posting your code so we can see what you're doing? 

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

  • Developers

This is likely an AntiVirus issue locking the file when aut2exe is trying to update the resources in the outputfile.
Exclude the AutoIt temp directory from your AV.

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

Jlogan, It was finding the file, it was merely unable to add it. I specifically looked for it thinking that very same thing.

Jos, I love you. For some reason, disabling the AV (because I saw you post this exact same answer to something else during my search) didn't work but adding the exception seems to have. Again, I love you.

Thank you both for the replies.

Link to comment
Share on other sites

  • Developers

Jos, I love you. ...-snip- ... Again, I love you.

Just for the record: I am happily married and very straight. ;)

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

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...