windows 如何修复 Inno Setup 错误 EndUpdateResource failed (110)

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1437844/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 13:09:10  来源:igfitidea点击:

How to fix Inno Setup error EndUpdateResource failed (110)

windowsinstallerinno-setup

提问by Nifle

When compiling an Inno Setup installer script I get this error

编译 Inno Setup 安装程序脚本时出现此错误

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

行:xx 资源更新错误:EndUpdateResource failed (110)

line xx contains

第 xx 行包含

SetupIconFile= pathToIconFile

SetupIconFile= pathToIconFile

What causes the error and how can I fix it?

导致错误的原因是什么,我该如何解决?

回答by Nifle

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.

Win32 错误 110 = “系统无法打开指定的设备或文件。”

写入新生成的 installer.exe 可能有问题。检查输出目录的权限,并禁用任何防病毒软件。

I disabled my anti-virus and the error disappeared.

我禁用了我的防病毒软件,错误消失了。

回答by John Bowman

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

在迈克菲中,我能够禁用实时保护并阻止“Win32 错误 5:EndUpdateResource failed (110)”

回答by Vlad S.

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 Outputfolder of the Inno Setup Studio to the Exclusion section of Windows Defender:

我在 Windows 10 上遇到了同样的问题,Windows Defender 处于活动状态。我首先尝试删除上面提到的输出文件夹的“只读”属性,但没有奏效。由于我不想禁用防病毒软件,因此我不得不将Inno Setup Studio的输出文件夹添加到 Windows Defender 的排除部分:

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

"开始->设置->更新和安全-> Windows 安全->病毒和威胁防护->病毒和威胁防护设置->添加或删除排除->添加文件夹”类型的排除