INNO安装错误“系统资源不足”

时间:2019-01-22 12:07:41

标签: windows installation inno-setup

我在Inno Setup中有一个脚本来生成.EXE安装程序。 一切正常,但是从前一段时间开始,在运行生成的.EXE安装文件时,会出现一个对话框,显示“系统资源不足”错误消息;但安装将继续并可以正常工作!在多台计算机上进行测试,始终具有相同的行为。 从发生此错误之前开始,对Inno Setup脚本没有进行任何更改,该脚本可以正常编译,并且在调试后不会显示任何错误!那么错误似乎来自Windows?安装程序基本上会在注册表中检查是否已安装该程序,然后它会复制一些文件。如我所说,此错误可能在2-3个月前开始出现,而脚本中没有进行任何更改。 对这个错误的根源有任何想法吗?

截图: enter image description here

开始出现错误的日志文件“系统资源不足”,(剩下的只是复制到目标目录的文件的列表):

    2019-01-23 16:40:54.742   Log opened. (Time zone: UTC+01:00)
2019-01-23 16:40:54.742   Setup version: Inno Setup version 5.6.1 (a)
2019-01-23 16:40:54.742   Original Setup EXE: C:\Users\myuser\Downloads\Update__v5_5.exe
2019-01-23 16:40:54.742   Setup command line: /SL5="$1009EE,629487447,58368,C:\Users\myuser\Downloads\Update__v5_5.exe" /log="C:\Users\myuser\Downloads\install.log"
2019-01-23 16:40:54.742   Windows version: 10.0.17134  (NT platform: Yes)
2019-01-23 16:40:54.742   64-bit Windows: Yes
2019-01-23 16:40:54.742   Processor architecture: x64
2019-01-23 16:40:54.742   User privileges: Administrative
2019-01-23 16:40:54.784   64-bit install mode: Yes
2019-01-23 16:40:54.786   Created temporary directory: C:\Users\myuser\AppData\Local\Temp\is-70UEO.tmp
2019-01-23 16:40:54.789   -- DLL function import --
2019-01-23 16:40:54.789   Function name: IsModuleLoaded2
2019-01-23 16:40:54.789   DLL name: files:psvince.dll
2019-01-23 16:40:54.789   Extracting temporary file: C:\Users\myuser\AppData\Local\Temp\is-70UEO.tmp\psvince.dll
2019-01-23 16:40:54.809   Dest DLL name: C:\Users\myuser\AppData\Local\Temp\is-70UEO.tmp\psvince.dll
2019-01-23 16:40:54.809   Importing the DLL function.
2019-01-23 16:40:54.810   Successfully imported the DLL function. Delay loaded? No
2019-01-23 16:40:54.835   Message box (Yes/No):
                          The current version seems to be already installed.
Please use "Check for updates" option in MyProgram applications 
to check if you need to install some update.

If you continue with this installation all the files will be overwritten
2019-01-23 16:40:55.780   User chose Yes.
2019-01-23 16:40:55.828   Exception message:
2019-01-23 16:40:55.828   Message box (OK):
                          Out of system resources.
2019-01-23 16:40:57.749   User chose OK.
2019-01-23 16:41:00.283   Starting the installation process.
2019-01-23 16:41:00.288   -- File entry --
2019-01-23 16:41:00.289   Dest filename: d:\MyProgram\psvince.dll
2019-01-23 16:41:00.290   Time stamp of our file: 2014-09-29 23:06:42.000
2019-01-23 16:41:00.290   Dest file exists.
2019-01-23 16:41:00.290   Time stamp of existing file: 2014-09-29 23:06:42.000
2019-01-23 16:41:00.290   Version of our file: 1.1.0.0
2019-01-23 16:41:00.291   Version of existing file: 1.1.0.0
2019-01-23 16:41:00.291   Same version. Skipping.
2019-01-23 16:41:00.292   -- File entry --
2019-01-23 16:41:00.292   Dest filename: d:\MyProgram\MyProgram.exe
2019-01-23 16:41:00.292   Time stamp of our file: 2016-10-11 12:55:28.000
2019-01-23 16:41:00.292   Dest file exists.
2019-01-23 16:41:00.292   Time stamp of existing file: 2016-10-11 12:55:28.000
2019-01-23 16:41:00.292   Installing the file.
2019-01-23 16:41:00.433   Successfully installed the file.

2 个答案:

答案 0 :(得分:1)

我们终于从头开始创建了一个新脚本,从脚本中逐行添加了失败的行并对其进行了测试。 结果出乎意料:错误来自添加背景图像!就像我说的那样,这个脚本未经任何更改就可以正常运行几个月。因此,我们没有这个突然错误的解释。 但我希望这些信息对其他人有用。

答案 1 :(得分:1)

从5.5.9版到5.6.1版的Inno Setup Compiler,我遇到了同样的问题。

我以为问题是在开始安装时加载“ WizardImageFile”图像。 为了解决我指定的问题:

[Setup]
PrivilegesRequired=admin