本文介绍了.NET 4安装失败,因为SECUREREPAIR无法对文件SetupResources.dll的CreateContentHash进行计算:计算哈希错误:997的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 我在Windows 7 x64计算机上安装任何.NET Framework时遇到问题,我不断获取以下日志文​​件,这可能是什么原因造成的?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 1OS Description = Windows 7 - x64 Ultimate Edition Service Pack 1CommandLine = C:\09b8fe547577883fe82c\\Setup.exe /x86 /x64TimeZone = Mitteleuropäische ZeitInitial LCID = 1031Using Simultaneous Download and Install mechanismOperation: InstallingPackage Name = Microsoft .NET Framework 4 SetupPackage Version = 4.0.30319User Experience Data Collection Policy: AlwaysUploadedNumber of applicable items: 11Exe (C:\09b8fe547577883fe82c\SetupUtility.exe) succeeded.Exe Log File: dd_SetupUtility.txtServiceControl operation succeeded!ServiceControl operation succeeded!Exe (C:\09b8fe547577883fe82c\Windows6.1-KB958488-v6001-x64.msu) failed with 0x240006 - (null).Exe (C:\09b8fe547577883fe82c\SetupUtility.exe) succeeded.Exe Log File: dd_SetupUtility.txtMSI (C:\09b8fe547577883fe82c\netfx_Core_x64.msi) Installation failed. Msi Log: Microsoft .NET Framework 4 Setup_20150116_161918591-MSI_netfx_Core_x64.msi.txtFinal Result: Installation failed with error code: (0x80070643), "Schwerwiegender Fehler bei der Installation. " (Elapsed time: 0 00:00:11).我已经从MSI文件中粘贴了一个LOG文件,请您看看吗?I have pasted a LOGfile from the MSI file, can you please take a look? https://paste.ee/p/zXSWH https://paste.ee/p/zXSWH主要问题似乎是我在设置日志中找到的以下信息(请参见上面日志中的2981至2999行):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: 1033\SetupResources.dll: for computing its hash. Error: 997MSI (s) (78!78) [16:11:30:750]: SECREPAIR: Failed to create hash for the install source filesMSI (s) (78!78) [16:11:30:750]: SECUREREPAIR: SecureRepair Failed. Error code: 3e5F7CE34B8Aktion gestartet um 16:11:30: CA_NgenUpdateHighestVersion_I_RB_amd64.3643236F_FC70_11D3_A536_0090278A1BB8.MSI (s) (78!78) [16:11:30:753]: 此外,我重新安装了KB2918614,应用了其修补程序(KB3000988),问题仍然存在。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. .NET Framework 4.0和4.5会发生这种情况,否不管我尝试安装其中的哪个。It happens with .NET Framework 4.0 and 4.5, no matter which of these I try to install.在尝试为.NET 4.5.2应用更新时,我首先注意到了这个问题,但失败了,所以我卸载了.NET。框架4和4.5完全可用,现在无法安装其中的任何一个。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?推荐答案 Thaoden 提供的解决方案(卸载KB2918614,KB3000988和KB3008627)对我不起作用。卸载这些更新后,我也遇到了同样的错误。The solution provided by Thaoden (uninstalling KB2918614, KB3000988 and KB3008627) didn't work for me. I got the same errors after uninstalling these updates.对我有用的是JohnL999 这里。What did work for me was the whitelisting workaround suggested by JohnL999 here.因此,我必须做的事情才能安装它:So, what I had to do to make it install: 在其中创建一个名为 SecureRepairPolicy 的DWORD,其值为 2 HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Installer Create a DWORD named SecureRepairPolicy with value 2 in HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Installer创建密钥 HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Installer 在 SecureRepairWhitelist 中,创建一个包含要白名单的产品ID作为名称的字符串。在我的情况下,这是 {3911CF56-9EF2-39BA-846A-C27BD3CD0685} 。您可以在错误之前的几行msi日志文件中找到产品ID 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 errorSECUREREPAIR: Failed to CreateContentHash of the file: 1030\SetupResources.dll: for computing its hash. Error: 997.它看起来像这样:SECREPAIR: Hash Database: C:\windows\Installer\SourceHash{3911CF56-9EF2-39BA-846A-C27BD3CD0685}或以下内容:SOURCEDIR product ==> {3911CF56-9EF2-39BA-846A-C27BD3CD0685}根据MSI可能是不同的产品ID您要安装。Might be a different product ID depending on the MSI you want to install. 这篇关于.NET 4安装失败,因为SECUREREPAIR无法对文件SetupResources.dll的CreateContentHash进行计算:计算哈希错误:997的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
10-30 23:33