Sign in to follow this  
Followers 0
tk1

Compiling error: Unable to add resources

3 posts in this topic

#1 ·  Posted (edited)

I saw one other post from 2013 about this error when trying to compile a script, and the answer was to add the Aut2Exe folder to the exception list in your AV.

For me, this did not fix the issue.   :(

; ------- side note -------

I have perceived that there is a general move to start using #pragma statements rather than the ones put in by AutoIt3Wrapper, so I tried putting some in my script.  (Maybe that perception is incorrect, and if so, please let me know!).

; ------- end side note -------

This caused the error:

#pragma compile(Icon, \..\Files\Logo.ico)

Take that leading backslash out and the adding resources error is gone:

#pragma compile(Icon, ..\Files\Logo.ico)

Maybe the 'adding resources' error is a general error to catch misc unhandled errors?  Don't know, but thought I'd pass this along FWIW.

tk1

Edited by tk1

Share this post


Link to post
Share on other sites



I put this folder in AV exceptions too: 

C:\Users\UserName\AppData\Local\AutoIt v3

Visit my repository

Share this post


Link to post
Share on other sites

Thank you for the reply Detefon.  The error had nothing to do with AV (at least in my case), and everything to do with an extra "".

tk1

Share this post


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
Sign in to follow this  
Followers 0