Jump to content

Odd Aut2Exe errors.


Recommended Posts

When running Aut2Exe (either through the UI OR using AutoIt3Wrapper and SciTE) I get errors 9 times out of 10. Mostly the following: "Error: Error opening the destination file.", but that is less frequent without SciTE open, but also errors with various other messages - "Unable to set console subsystem." and "unable to create compiled archive".

None of this was happening last week.

Running au3's is fine. Running the exe's that do succeed work fine. To avoid a list, everything except Aut2exe is working as it always has been.

I have done the following:

  • Reinstalled AutoIt opting to uninstall the previous version
  • tried putting files in a different directory. (it is usually "C:\Programming\AutoIt" but I tried the users directory and desktop and root etc.
  • Editing UAC settings (I am running vista Home premium sp2)

Any ideas? I have reached the conclusion that the 'destination' file refers to the .au3, as it creates an exe, which when run says that it is "Unable to open the script file".

Mat

Link to comment
Share on other sites

  • Developers

Did you check your AV and maybe try excluding the script directory to test if that is the root cause?

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

Did you check your AV and maybe try excluding the script directory to test if that is the root cause?

Jos

Completely disabling av had no effect. That includes windows security or whatever it is they ship with it by default.

This is probably more helpful... Trying to use AutoitWrapper gave this error.

Error: EndUpdateResource: Returncode = 0 - LastError:5:Access is denied.

hmm... I will try starting aut2exe as admin.

Link to comment
Share on other sites

  • Developers

Completely disabling av had no effect. That includes windows security or whatever it is they ship with it by default.

This is probably more helpful... Trying to use AutoitWrapper gave this error.

Error: EndUpdateResource: Returncode = 0 - LastError:5:Access is denied.

hmm... I will try starting aut2exe as admin.

That error will only be possible when you use AutoIt3Wrapper since this is the resource update portion.

You stated that AUT2EXE also has errors so there has to be another issue why the compiler can get access to the file anymore.

Any other antispam software running or something like that?

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

That error will only be possible when you use AutoIt3Wrapper since this is the resource update portion.

You stated that AUT2EXE also has errors so there has to be another issue why the compiler can get access to the file anymore.

Any other antispam software running or something like that?

Nope.

Link to comment
Share on other sites

Link to comment
Share on other sites

Full except for 'special' permissions which I seem to be unable to set.

Is that for the AutoIt folder or you script folder?

Check the script folder.

Link to comment
Share on other sites

Hi Mat,

Backup your scripts on a flash drive.

Then right-click on C:\ >> Choose Properties >> Tools Tab >> Error Checking >>

Check Now >> Check All >> Start >> Click Yes and Reboot

It will check your hard drive for bad sectors and file errors.

Not that you have any .. but at least you can rule that out.

"The mediocre teacher tells. The Good teacher explains. The superior teacher demonstrates. The great teacher inspires." -William Arthur Ward

Link to comment
Share on other sites

Sorry I haven't been here... slightly hectic night last night. Errors are same as always.

Hi Mat,

Backup your scripts on a flash drive.

Then right-click on C:\ >> Choose Properties >> Tools Tab >> Error Checking >>

Check Now >> Check All >> Start >> Click Yes and Reboot

It will check your hard drive for bad sectors and file errors.

Not that you have any .. but at least you can rule that out.

All my scripts ended up being 106mb :idea: next time the computer starts it will run it. I doubt that's the problem.

Are you using a virtual machine?

Nope.

DropBox is known to cause permission issues during the compile process, if you compile in a DropBox synced DIR.

Do you have any application that might be locking the file handles periodically? Sync apps, etc.

Nope.
Link to comment
Share on other sites

I used to get the errors on windows 7 about thrice in 10 tries.

Just to test it, I installed windows7 separately on a new, never before used, harddisk. Then I installed Autoit and tried compiling. Oddly, I got errors on the first try. Then I tried with some other script. Sometimes they compile just fine. Sometimes they give errors without any (visible) reason. What might be causing that. If you want I can post a video of the whole process.

[Not using this account any more. Using "iShafayet" instead]

Link to comment
Share on other sites

  • Developers

Also try testing without the Windows Explorer being open on the directory your script is created in.

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

  • Developers

It works like magic when explorer is closed. No Errors at all. But what's causing this?

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.

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