Jump to content

Error "EndUpdateResource [...] Access denied" and "Program Resource updating Failed"


Go to solution Solved by ioa747,

Recommended Posts

Hello,

I am having trouble compiling my script to an .exe an updating the metadata on it. This is my system Info:
AutoIt Version: V3.3.16.1 [X64]
Windows Version: WIN_11 [X64]
Language: German (0407)

Usually I use these directives for the AutoIt3Wrapper:

#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Icon=..\..\Icons\DaH.ico
#AutoIt3Wrapper_UseX64=y
#AutoIt3Wrapper_Res_Description=XXX
#AutoIt3Wrapper_Res_Fileversion=4.0.0.13
#AutoIt3Wrapper_Res_Fileversion_AutoIncrement=y
#AutoIt3Wrapper_Res_ProductName=XXX
#AutoIt3Wrapper_Res_CompanyName=XXX
#AutoIt3Wrapper_Res_LegalCopyright=XXX
#AutoIt3Wrapper_Res_Language=1031
#AutoIt3Wrapper_AU3Check_Stop_OnWarning=y
#AutoIt3Wrapper_Run_After=Path to sign
#AutoIt3Wrapper_Run_After=Path to timestamp
#AutoIt3Wrapper_Run_Tidy=y
#Tidy_Parameters=/reel
#AutoIt3Wrapper_Run_Au3Stripper=y
#Au3Stripper_Parameters=/pe /sv /rsln /mi 10
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****

But trying to compile any script with these by pressing CTRL+F7 or just F7 results in this error message:

 [...]
>11:12:40 Performing the Program Resource Update steps:
...>Updating Program Version information.
!>11:12:40 Error: EndUpdateResource: Returncode = 0 - LastError:5:Zugriff verweigertrc:2
!>11:12:40 Error: Program Resource updating Failed. The output program will not contain the Resource updates!rc:2

"Zugriff verweigert" meaning "Access denied".

I broke down the problem to be any "#AutoIt3Wrapper_Res_" command. So compiling this code gives me the same error message as above:

#AutoIt3Wrapper_Res_Description=Description
MsgBox(1,"Test","Message")

I also get this pop-up the same time as I get the errors written in the console:

 image.png.39ebcc0de769642d4af4d244b5b37a57.png

If I click "Continue anyway", the .exe gets created but is missing the description I declared with "#AutoIt3Wrapper_Res_Description=Description".

I checked "C:\Users\<Username>\AppData\Local\AutoIt v3\Aut2exe\" and the file is there and existing. I also deleted all the files there once with no change.

I uses Procmon.exe to check for more details and this seems to be the showstopper:

image.png.bd60921b2f3da1f1cbd161a004d0aa02.png

Sadly, this is where my knowledge ends and where I am asking for your help to find a solution for this problem.

Kind Regards.

“It is only when a mosquito lands on your testicles that you realize there is always a way to solve problems without using violence.”
― Confucius

Link to comment
Share on other sites

52 minutes ago, Nine said:

Works for me.  Do you have full version of Scite ?

Yes I do. I downloaded and installed the SciTE4AutoIt3.exe.

“It is only when a mosquito lands on your testicles that you realize there is always a way to solve problems without using violence.”
― Confucius

Link to comment
Share on other sites

1 hour ago, ioa747 said:

tell the antivirus to make an exception on the path  C:\Users\<Username>\AppData\Local\AutoIt v3\

I'll see what I can do and get back with the result

“It is only when a mosquito lands on your testicles that you realize there is always a way to solve problems without using violence.”
― Confucius

Link to comment
Share on other sites

Microsoft Defender didn't like the temporary .exe being created. Now it works again. Thanks for the help!

“It is only when a mosquito lands on your testicles that you realize there is always a way to solve problems without using violence.”
― Confucius

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