主要问题似乎是我在设置日志中找到的以下信息(请参阅上面日志中的第 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 1OS Description = Windows 7 - x64 Ultimate Edition Service Pack 1CommandLine = C: 9b8fe547577883fe82c\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: 9b8fe547577883fe82cSetupUtility.exe) succeeded.Exe Log File: dd_SetupUtility.txtServiceControl 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.txtMSI (C: 9b8fe547577883fe82cetfx_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).I have pasted a LOGfile from the MSI file, can you please take a look?https://paste.ee/p/zXSWHThe 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: 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]: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_MACHINESOFTWAREPoliciesMicrosoftWindowsInstallerCreate Key SecureRepairWhitelist in HKEY_LOCAL_MACHINESOFTWAREPoliciesMicrosoftWindowsInstallerIn 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: 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 1403页,肝出来的.. 09-07 21:55