.NET 4 无法安装,因为 SECUREREPAIR 无法创建文件 SetupResources.dll 的内容哈希:用于计算哈希错误:997

编程入门 行业动态 更新时间:2024-10-24 17:31:03
本文介绍了.NET 4 无法安装,因为 SECUREREPAIR 无法创建文件 SetupResources.dll 的内容哈希:用于计算哈希错误:997的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我在 Windows 7 x64 机器上安装任何 .NET Framework 时遇到问题,我不断收到以下日志文​​件,可能是什么原因造成的?

操作系统版本 = 6.1.7601,平台 2,服务包 1操作系统描述 = Windows 7 - x64 Ultimate Edition Service Pack 1命令行 = C:9b8fe547577883fe82c\Setup.exe/x86/x64时区 = Mitteleuropäische Zeit初始 LCID = 1031使用同时下载和安装机制操作:安装包名称 = Microsoft .NET Framework 4 安装程序软件包版本 = 4.0.30319用户体验数据收集政策:AlwaysUploaded适用项目数:11exe (C:9b8fe547577883fe82cSetupUtility.exe) 成功.exe 日志文件:dd_SetupUtility.txtServiceControl 操作成功!ServiceControl 操作成功!exe (C:9b8fe547577883fe82cWindows6.1-KB958488-v6001-x64.msu) 失败,错误为 0x240006 - (null).exe (C:9b8fe547577883fe82cSetupUtility.exe) 成功.exe 日志文件:dd_SetupUtility.txtMSI (C:9b8fe547577883fe82c etfx_Core_x64.msi) 安装失败.Msi 日志:Microsoft .NET Framework 4 Setup_20150116_161918591-MSI_netfx_Core_x64.msi.txt最终结果:安装失败,错误代码:(0x80070643),Schwerwiegender Fehler bei der Installation."(经过时间:0 00:00:11).

我已经从 MSI 文件中粘贴了一个 LOG 文件,您能看一下吗?

paste.ee/p/zXSWH

主要问题似乎是我在设置日志中找到的以下信息(请参阅上面日志中的第 2981 至 2999 行):

MSI (s) (78!78) [16:11:30:749]:SECUREREPAIR:无法创建文件的内容哈希:1033SetupResources.dll:用于计算其哈希.错误:997MSI (s) (78!78) [16:11:30:750]:SECREPAIR:无法为安装源文件创建哈希MSI (s) (78!78) [16:11:30:750]:SECUREREPAIR:SecureRepair 失败.错误代码:3e5F7CE34B8Aktion gestartet 嗯 16:11:30:CA_NgenUpdateHighestVersion_I_RB_amd64.3643236F_FC70_11D3_A536_0090278A1BB8.MSI (s) (78!78) [16:11:30:753]:

我发现的有关 Secrepair 问题的唯一信息是 KB2918614,我将其完全卸载、重新启动,但问题仍然存在.此外,我重新安装了 KB2918614,应用了其修补程序 (KB3000988),但问题仍然存在.

.NET Framework 4.0 和 4.5 都会发生这种情况,无论我尝试安装哪一个.

我在尝试为 .NET 4.5.2 应用更新时第一次注意到这个问题,但失败了,所以我完全卸载了 .NET framework 4 和 4.5,现在无法安装其中任何一个.

您有什么想法可能导致这种奇怪的行为吗?

解决方案

Thaoden 提供的解决方案(卸载 KB2918614,KB3000988 和 KB3008627)对我不起作用.卸载这些更新后,我遇到了同样的错误.

对我有用的是 JohnL999 建议的白名单解决方法 此处.

那么,我必须做些什么才能安装它:

  • 在HKEY_LOCAL_MACHINESOFTWAREPoliciesMicrosoftWindowsInstaller中创建一个名为SecureRepairPolicy的DWORD,值为2

  • 在HKEY_LOCAL_MACHINESOFTWAREPoliciesMicrosoftWindowsInstaller

  • 中创建密钥SecureRepairWhitelist
  • 在 SecureRepairWhitelist 中,创建一个字符串,将您要列入白名单的产品 ID 作为名称.就我而言,这是 {3911CF56-9EF2-39BA-846A-C27BD3CD0685}.您可以在 msi 日志文件中找到产品 ID,错误前的几行

    SECUREREPAIR:无法创建文件的内容哈希:1030SetupResources.dll:用于计算其哈希.错误:997.

    看起来像这样:

    SECREPAIR:哈希数据库:C:windowsInstallerSourceHash{3911CF56-9EF2-39BA-846A-C27BD3CD0685}

    或者这个:

    SOURCEDIR 产品 ==>{3911CF56-9EF2-39BA-846A-C27BD3CD0685}

    可能是不同的产品 ID,具体取决于您要安装的 MSI.

  • I have trouble installing any .NET Framework on my Windows 7 x64 machine, I keep getting the following logfile, what might cause this?

    OS Version = 6.1.7601, Platform 2, Service Pack 1 OS Description = Windows 7 - x64 Ultimate Edition Service Pack 1 CommandLine = C:9b8fe547577883fe82c\Setup.exe /x86 /x64 TimeZone = Mitteleuropäische Zeit Initial LCID = 1031 Using Simultaneous Download and Install mechanism Operation: Installing Package Name = Microsoft .NET Framework 4 Setup Package Version = 4.0.30319 User Experience Data Collection Policy: AlwaysUploaded Number of applicable items: 11 Exe (C:9b8fe547577883fe82cSetupUtility.exe) succeeded. Exe Log File: dd_SetupUtility.txt ServiceControl operation succeeded! ServiceControl operation succeeded! Exe (C:9b8fe547577883fe82cWindows6.1-KB958488-v6001-x64.msu) failed with 0x240006 - (null). Exe (C:9b8fe547577883fe82cSetupUtility.exe) succeeded. Exe Log File: dd_SetupUtility.txt MSI (C:9b8fe547577883fe82c etfx_Core_x64.msi) Installation failed. Msi Log: Microsoft .NET Framework 4 Setup_20150116_161918591-MSI_netfx_Core_x64.msi.txt Final Result: Installation failed with error code: (0x80070643), "Schwerwiegender Fehler bei der Installation. " (Elapsed time: 0 00:00:11).

    I have pasted a LOGfile from the MSI file, can you please take a look?

    paste.ee/p/zXSWH

    The main problem seems to be the following information I found in the setup log (see line 2981 to 2999 in the log above):

    MSI (s) (78!78) [16:11:30:749]: SECUREREPAIR: Failed to CreateContentHash of the file: 1033SetupResources.dll: for computing its hash. Error: 997 MSI (s) (78!78) [16:11:30:750]: SECREPAIR: Failed to create hash for the install source files MSI (s) (78!78) [16:11:30:750]: SECUREREPAIR: SecureRepair Failed. Error code: 3e5F7CE34B8 Aktion gestartet um 16:11:30: CA_NgenUpdateHighestVersion_I_RB_amd64.3643236F_FC70_11D3_A536_0090278A1BB8. MSI (s) (78!78) [16:11:30:753]:

    The only information I found concerning problems with Secrepair is KB2918614, which I completely uninstalled, rebooted, but the problem persists. Furthermore, I have reinstalled KB2918614, applied its Hotfix (KB3000988), and the problem still persits.

    It happens with .NET Framework 4.0 and 4.5, no matter which of these I try to install.

    I first noticed this problem when trying to apply the update for .NET 4.5.2, which failed, so I uninstalled .NET framework 4 and 4.5 completely, and am now unable to install any of these.

    Do you have any ideas what might be causing this strange behaviour?

    解决方案

    The solution provided by Thaoden (uninstalling KB2918614, KB3000988 and KB3008627) didn't work for me. I got the same errors after uninstalling these updates.

    What did work for me was the whitelisting workaround suggested by JohnL999 here.

    So, what I had to do to make it install:

  • Create a DWORD named SecureRepairPolicy with value 2 in HKEY_LOCAL_MACHINESOFTWAREPoliciesMicrosoftWindowsInstaller

  • Create Key SecureRepairWhitelist in HKEY_LOCAL_MACHINESOFTWAREPoliciesMicrosoftWindowsInstaller

  • In SecureRepairWhitelist, create a String with the product ID you want to whitelist as name. In my case this was {3911CF56-9EF2-39BA-846A-C27BD3CD0685}. You can find out the product ID in the msi log file, some lines before the error

    SECUREREPAIR: Failed to CreateContentHash of the file: 1030SetupResources.dll: for computing its hash. Error: 997.

    It looks like this:

    SECREPAIR: Hash Database: C:windowsInstallerSourceHash{3911CF56-9EF2-39BA-846A-C27BD3CD0685}

    or this:

    SOURCEDIR product ==> {3911CF56-9EF2-39BA-846A-C27BD3CD0685}

    Might be a different product ID depending on the MSI you want to install.

  • 更多推荐

    .NET 4 无法安装,因为 SECUREREPAIR 无法创建文件 SetupResources.dll 的内容哈希:用于计算哈希错误:997

    本文发布于:2023-11-03 12:31:49,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1555143.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:错误   文件   内容   NET   SECUREREPAIR

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!