Jump to content

Error: EndUpdateResource: Returncode = 0 - LastError:110:

Recommended Posts

As mentioned before, this is an old thread, but I now have the same problem.

I know how to fix it, but then my script wont work as I want it to.


Windows 7 SP1 x64

All FileInstalls are from C-drive

SciTE Version 2.27

AutoIT v3.3.6.1

Been trying this script(yes all paths and file names are correct)

#region ;**** Directives created by AutoIt3Wrapper_GUI ****
#endregion ;**** Directives created by AutoIt3Wrapper_GUI ****
#include <Process.au3>
FileInstall("C:\Installationwizard\PsExec.exe", "C:\Windows\System32\PsExec.exe")
If @OSArch = "X86" Then
_RunDOS("if not exist C:\temp\ mkdir C:\temp\")
FileInstall("C:\Installationwizard\RemoteDesktop32.exe", "C:\temp\RemoteDesktop32.exe")
_RunDOS("start C:\temp\RemoteDesktop32.exe")
ElseIf @OSArch = "X64" Then
_RunDOS("if not exist C:\temp\ mkdir C:\temp\")
FileInstall("C:\Installationwizard\RemoteDesktop64.exe", "C:\temp\RemoteDesktop64.exe")
_RunDOS("start C:\temp\RemoteDesktop64.exe")
MsgBox(0, "Error", "Error")

If I put comments( ; ) on the 2 _RunDOS commands that makes the C:\temp\ folder it works.

When compiling I get this error message:

Error: EndUpdateResource: Returncode = 0 - LastError:110:The system cannot open the device or file specified.

Edited by Akarillon

Challenge accepted!

Link to post
Share on other sites
  • Developers

I cannot see any relation between the error shown during compilation and commenting the 2 rundos lines.

Ensure you do not have explorer open onthe directory for the target exe and check your AV.


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 post
Share on other sites
  • 2 months later...

Really simple fix for this guys, i was having the same issue until i read these posts(thanks!) then i realized what the problem is.

Rightclick on your script.au3 select compile with options, go to the resource update tab at the top...

where it says ExecutionLevel: select "requireAdministrator"

Fixed it for me, 100% of the time!

Please let me know if it works for you!

(tell me im wonderful it it works)

Link to post
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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...