Nifle
Nifle

Reputation: 11923

How to fix Inno Setup error EndUpdateResource failed (110)

When compiling an Inno Setup installer script I get this error

Line: xx Resource update error: EndUpdateResource failed (110)

line xx contains

SetupIconFile= pathToIconFile

What causes the error and how can I fix it?

Upvotes: 15

Views: 10117

Answers (4)

DarkJune
DarkJune

Reputation: 11

I was using AnyDesk to share my .exe installed directly from 'bin' folder, and once, AnyDesk have occupied this setup file with the same name that INNO Setup would produce, therefore I could not compile anything (110 exception have been shown). Closing AnyDesk solved the problem.

I suppose that active anti-virus defence doing same thing for a brief moment, so as a result - make sure that nothing is occupying output file name (including active anti-virus defence) and that should fix most of the problems.

Upvotes: 1

Vlad S.
Vlad S.

Reputation: 448

I got the same problem on Windows 10 with Windows Defender active. I tried first to remove the output folder's "Read-Only" attribute as mentioned above but did not work. Since I did not want to disable the antivirus I had to add the Output folder of the Inno Setup Studio to the Exclusion section of Windows Defender:

"Start -> Settings -> Updates & Security -> Windows Security -> Virus & threat protection -> Virus & threat protection settings -> Add or remove exclusions -> Add an Exclusion of type "Folder"

Upvotes: 8

John Bowman
John Bowman

Reputation: 21

In McAfee I was able to disable the real time protection and it prevented "Win32 error 5:EndUpdateResource failed (110)"

Upvotes: 2

Nifle
Nifle

Reputation: 11923

Found the solution after quite a google session

Win32 error 110 = "The system cannot open the device or file specified."

It's probably having trouble writing to the newly generated installer.exe. Check the permissions on the output directory, and disable any anti-virus software.

I disabled my anti-virus and the error disappeared.

Upvotes: 21

Related Questions