Error 997. Overlapped I/O operation is in progress: KB2918614 breaks Windows Installer Service


Certain MSI packages may fail with an error "Error 997. Overlapped I/O operation is in progress"

As per the MSI log:

MSI (s) (44:48) [15:07:21:799]: Determining source type
MSI (s) (44:48) [15:07:21:799]: Source type from package 'My_Package.msi': 2
MSI (s) (44:48) [15:07:21:799]: SECREPAIR: Hash Database:
C:\Windows\Installer\SourceHash{AC1B6088-A6FC-9CDA-ABF2-60530F5DA203}
MSI (s) (44:48) [15:07:21:799]: Note: 1: 2262 2: SourceHash 3: -2147287038
MSI (s) (44:48) [15:07:21:815]: SECREPAIR: New Hash Database creation complete.
MSI (s) (44:48) [15:07:21:815]: SECREPAIR: A general error running CryptAcquireContext
MSI (s) (44:48) [15:07:21:815]: SECREPAIR: Crypt Provider not initialized. Error:997
MSI (s) (44:48) [15:07:21:815]: SECUREREPAIR: Failed to CreateContentHash of the file:
My_Package.msi: for computing its hash. Error: 997 MSI (s) (44:48)
[15:07:21:815]: SECREPAIR: Failed to create hash for the install source files
MSI (s) (44:48) [15:07:21:815]: Note: 1: 2262 2: SourceHash 3: -2147287038
MSI (s) (44:48) [15:07:21:815]: SECUREREPAIR: SecureRepair Failed. Error code: 3e5E99334B8
MSI (c) (A0:8C) [15:07:21:877]: Font created.  Charset: Req=0, Ret=0, Font: Req=MS Shell Dlg, Ret=MS Shell Dlg
Error 997. Overlapped I/O operation is in progress.
MSI (s) (44:48) [15:07:30:769]: Note: 1: 2205 2:  3: Error
MSI (s) (44:48) [15:07:30:769]: Note: 1: 2228 2:  3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 1709

As per the application Event log:

Log Name:   Application
Source:        MsiInstaller
Date:            2014-09-05 15:07:30
Event ID:      10997
Task Category: None
Level:             Error
Keywords:      Classic
User:              S-1-5-21-1655003508-46252071-1983596133-179088
Computer:      My_Machine

Description:
The description for Event ID 10997 from source MsiInstaller cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer. 

If the event originated on another computer, the display information had to be saved with the event. The following information was included with the event:
Product: My_Package 1.0.0.1 -- Error 997. Overlapped I/O operation is in progress.

This is a known issue with the security patch KB2918614 released on 12th August. This issue occurs because update 2918614 uses cryptographic keys and certificates for hashing the installation files together with the logged-in user profile. However, cryptographic keys and certificates cannot be used by mandatory or temporary user profiles. Therefore, when a user uses a mandatory or temporary user profile to install any MSI package, the MSI package installation fails and the error message returns.

Resolution: Please apply this hotfix

P.S. An official fix is in testing and being tracked for release in November patch Tuesday(14-11). There could be some changes due to unexpected events.


Comments (65)

  1. I got the same error when trying to update my VMWare Player version.

    It looks like the hotfix KB3000988 for this issue which was released on Windows Update did not work at least for the VMWare Player MSI file.

    I had to uninstall both KB3000988 and KB2918614 to get VMWare Player 6 to install on my Windows 7 system.

  2. S says:

    I've uninstalled both updates, and my install still won't go through. Any thoughts?

  3. donseeg@comcast.net says:

    hot fix did not work for me either.

  4. Jackie says:

    Same problem here with .NET Framework 4.5.2 update, any news on this?

  5. This issue was already fixed. Please run windows update and make sure it is up to date.

  6. M says:

    I've installed the hotfix KB3000988 as noted to resolve this issue but I still have the same error. Someone on a Symantec support board posted neither patched worked and to resolve you must manually make registry entries to resolve. Here is what they posted:

    To do this, follow these steps: 1.Click Start, click Run, type regedit in the Open box, and then click OK.

    2.Locate and then click the following subkey in the registry:

    HKEY_LOCAL_MACHINESOFTWAREPoliciesMicrosoftWindowsInstaller

    3.On the Edit menu, point to New, and then click DWORD Value.

    4.Type SecureRepairPolicy for the name of the DWORD, and then press Enter.

    5.Right-click SecureRepairPolicy, and then click Modify.

    6.In the Value data box, type  2, and then click OK.

    7.Locate and then click the following subkey in the registry:

    HKEY_LOCAL_MACHINESOFTWAREPoliciesMicrosoftWindowsInstaller

    8.On the Edit menu, point to New, and then click Key.

    9.Type SecureRepairWhitelist for the name of the key, and then press Enter.

    10.Double-click the SecureRepairWhitelist key to open it.

    11.On the Edit menu, point to New, and then click String Value. Create String Values that contain the product codes (including braces {}) of the products that have to be added to the Safe Recipients list.

    The NAME of the String Value is the "product code" and the VALUE can be left blank. To obtain the product code for other MSIs, open the MSI by using the ORCA tool that is available in Windows SDK.

    The link for reference to where this was posted is as follows:

    http://www.symantec.com/…/sep-121-ru5-install-error-error-997-overlapped-io-operation-progress

    I had to perform the following as noted by one of the people in the post prior to doing the above registry entries. For what it's worth, the instructions above seem to assume that the last key 'Installer' in the reference below already exists.  In my case, that had to be created as well.

    HKEY_LOCAL_MACHINESOFTWAREPoliciesMicrosoftWindowsInstaller

    This worked like a charm and allowed me to complete my installs. Hopefully someone else will find it useful.

  7. R says:

    Just followed the instructions from M (20 Jan 2015 6:48 AM), and it worked perfectly. Thank you for sharing.

  8. Chris says:

    Massive thanks to "M", hotfix didn't work, your instructions did.

  9. Tom says:

    I'm having this same issue, but I'm not sure how to follow M's instructions when it comes to entering the String Value. That is, I don't know how to find the product code. I'm trying to install with .exe files. Does this fix only work with the .msi files you're talking about?

  10. Yes the above blog post applies to MSI install only. Please check if any MSI is wrapped within your EXE

  11. JJF says:

    I did it and the problem remained.

    Except these to you might also need to uninstall KB3008627. Then just restart and you 're good to go!

    Source: forums.lenovo.com/…/1843896

  12. Mash says:

    On : HKEY_LOCAL_MACHINESOFTWAREPoliciesMicrosoftWindowsInstaller

    i do not have Installer, what then?

  13. You need to create the registry key manually.

  14. rt says:

    The above fix that M has found, does this same fix apply to 64 bit operating systems when selecting DWORD (32-bit) value or should i select QWORD (64-bit) value because i am running in 64 bit. Any assistance in this matter would be greatly appreciated.

  15. johnathan71118 says:

    OK can step 11 be further explained? it says "Create String Values that contain the product codes (including braces {}) of the products that have to be added to the Safe Recipients list." then later says to name it "product code" and leave the value blank. please explain

  16. Clifton H. says:

    As someone unfamiliar with this computers in general, I agree with johnathan71118. I need that last step explained a little more, as I have no idea how to find the product code. I'm trying to install C++ 2008 redistributable from the Microsoft website. Does the program need to be on the computer to find the product code?

  17. Prasath says:

    Thanks.. I have followed 'M' and JJF instruction. issue resolved. Worked for me. I had the same issue for the office 2010. Now solved. very much appreciated.

  18. Chris says:

    Hello — waiting for last step instructions as well.

  19. Dan says:

    JJF's comment resolve it.  Thanks!!!

  20. Tyler Moser says:

    I am getting this error while installing Microsoft updates such as, VCRedis 2008 and even 2010 along with an update for NET framework

  21. Ian at Ciber says:

    I was getting this error back in April when trying to install a new version of VMware workstation. Back then i tried to remove KB2918614 and KB3000988 but it made no difference at that time so i went with the SecureRepairWhitelist workaround instead.

    Yesterday i tried to install Visual Studio 2015 Enterprise RTM and it failed on the .Net Framework 4.6 bit of the install so i added the SecureRepairWhitelist workaround and got past that bit for it to then fail on the vs_communitycore bit of the install. This was being done on a machine that had never had any VS2015 beta or RC installed previously.

    After seeing the post from JFF above i removed KB2918614, KB3000988 **and** KB3008627, rebooted and now Visual Studio 2015 (typical install) has successfully completed. Big thanks to JFF for the tip about KB3008627!!

  22. max says:

    Guys maybe someone know how to deal with my situation. I have this error 997 while trying to install Visual studio (any version) on my laptop (windows 8.1 single language). Problem is I not have KB2918614, KB3000988 and KB3008627 updates installed on my windows. I even tryed remove all security updates from 2015. Nothing helps.

  23. Jesse says:

    I've been having the same problem, but after removing KB2918614, KB3000988 and KB3008627…

    Even with those updates not in place, I'm getting Error 997 for several different installations…right now specifically Business Contact Manager and Microsoft .NET Framework 4.5.2

  24. max says:

    still can not fix that problem

    – i do not have installed any of that 3 updates and never had before, so i can not delete it

    – i try install hotfix but it can not apply (request did't send me e-mail, i downloaded exe but it can not be applied)

    – i try msiexec /regserver

    – i try recreate admin user

    – i try remove all secure updates and disable autoupdating

    – i try disable windows defender

    nothing works, I still can not install visual studio and some other software

    what other can i do?

    PS i preorder windows 10 update, but i am not sure that problem will be fixed in that update.

    sorry for my bad english

  25. Jesse says:

    I also removed KB3072630 and that seemed to help…testing it on another computer soon.

  26. Jesse says:

    Update: removing KB3072630 in addition to  KB2918614, KB3000988 and KB3008627 seems to have done it for me

    3072630 was just released last week

  27. max says:

    i removed KB3072630 but still same result.

    Applying execute package: vs_communitycore, action: Install, path: C:ProgramDataPackage Cache{DE064F60-6522-3310-9665-B5E3E78B3638}v14.0.23107packagescommunitycoreSetupvs_communitycore.msi, arguments: ' ARPSYSTEMCOMPONENT="1" MSIFASTINSTALL="7" VSEXTUI="1" VS7.3643236F_FC70_11D3_A536_0090278A1BB8="C:Program Files (x86)Microsoft Visual Studio 14.0" PIDKEY="HH3PV9NBY3F4KRJ76QJGBP2F6" FEEDBACKOPTIN="2"'

    [14E0:14EC][2015-07-23T22:14:43]i000: MUX:  ExecuteError: Package (vs_communitycore) failed: Error Message Id: 997 ErrorMessage: Error 997.Протекает наложенное событие ввода/вывода.

    [0930:08C4][2015-07-23T22:14:43]e000: Error 0x80070643: Failed to install MSI package.

    [0930:08C4][2015-07-23T22:14:43]e000: Error 0x80070643: Failed to execute MSI package.

    [14E0:14EC][2015-07-23T22:14:43]e000: Error 0x80070643: Failed to configure per-machine MSI package.

  28. Ciwa says:

    Thanks a Jesse… That did a magic 🙂

  29. Derek Iannelli-Smith says:

    Jesse, removing the updates you mention in your Jul 23 2015 posting did it for me too!  I was having this issue with installing SEP Cloud.  Thanks for sharing!

  30. Tyler Moser says:

    Im getting this error while trying to install visual C++ 2008 sp1 pack and any .net framework updates as well. Microsoft is no help either I really don't want to do a clean install of windows.

  31. aabbasi says:

    I'm having trouble with step 11…

    I'm trying to install MATLAB which requires Visual C++ 2008 redistributable and hence stuck with the error.

  32. msiiic says:

    I am a believer! lol . I have been working on this for 3 hours. I have been up and down various sites looking up error codes. The removal of KB3072630 did the trick in my situation after I have already removed everything else. Microsoft really needs to do a better job with their updates and the conflicts they can cause

  33. Please take a look and see if this opt-out method works for you: support.microsoft.com/…/3072630

    If it does, the MSI package exercises a vulnerable code path and really should be updated. Running in an opted-out state leaves your machine vulnerable.

  34. Gerd Hübner says:

    Finally, this simple procedure worked for me:

    social.msdn.microsoft.com/…/overlapped-io-error-997-installing-sql-server-2014-express-on-windows-server-2012-r2

    In short: Rename the folder C:ProgramDataMicrosoftCryptoRSAS-1-5-18 to C:ProgramDataMicrosoftCryptoRSAS-1-5-18_old

    During successful installation of KB3045318 this folder is created again, automatically.

    At the end, I copied the missing files from the original folder to the new folder.

  35. omidelf says:

    @Gred Hubner

    THANK YOU SO MUCH !!!!!!!!!!!!!!!!!!!!! THIS JUST SOLVED MY PROBLEM

  36. JM says:

    I also removed KB3072630, I did not have any of the others, and this fixed it for me.

  37. Manish says:

    Hi ,

    How can I do this in Windows 10, I am not able to find the HKEY_LOCAL_MACHINESOFTWAREPoliciesMicrosoftWindowsInstaller registry.There is no such registry with the name "Installer".

    I am stuck to install VS 2015 on my machine from last 2-3 months. Kindly help me if possible.. VS2015 installation error starting from here –

    [0920:0818][2015-09-19T17:39:32]i000: MUX:  ExecuteError: Package (vs_communitycore) failed: Error Message Id: 997 ErrorMessage: Error 997.Overlapped I/O operation is in progress.

    [1318:12FC][2015-09-19T17:39:32]e000: Error 0x80070643: Failed to install MSI package.

    [1318:12FC][2015-09-19T17:39:32]e000: Error 0x80070643: Failed to execute MSI package.

    [0920:0818][2015-09-19T17:39:32]e000: Error 0x80070643: Failed to configure per-machine MSI package.

    [0920:0818][2015-09-19T17:39:32]i000: MUX:  Installation size in bytes for package: vs_communitycore MaxAppDrive: 0  MaxSysDrive: 9007104  AppDrive: 0  SysDrive: 6209536

    [0920:0818][2015-09-19T17:39:32]i000: MUX:  Return Code:0x80070643 Msi Messages:Error 997.Overlapped I/O operation is in progress.

    Result Detail:0 Restart:None

    [0920:0818][2015-09-19T17:39:33]i000: MUX:  Set Result: Return Code=-2147023293 (0x80070643), Error Message=Error 997.Overlapped I/O operation is in progress.

    , Result Detail=, Vital=True, Package Action=Install, Package Id=vs_communitycore

    [0920:0818][2015-09-19T17:39:33]i000: Setting string variable 'BundleResult' to value '1603'

    [0920:0818][2015-09-19T17:39:33]i319: Applied execute package: vs_communitycore, result: 0x80070643, restart: None

    [0920:0818][2015-09-19T17:39:33]e000: Error 0x80070643: Failed to execute MSI package.

    [0920:0818][2015-09-19T17:39:33]i000: MUX:  ExecutePackageBegin PackageId: vs_communitycore

    [1318:12FC][2015-09-19T17:39:33]i318: Skipped rollback of package: vs_communitycore, action: Uninstall, already: Absent

    [0920:0818][2015-09-19T17:39:33]i000: MUX:  Installation size in bytes for package: vs_communitycore MaxAppDrive: 0  MaxSysDrive: 0  AppDrive: 0  SysDrive: 0

    [0920:0818][2015-09-19T17:39:33]i000: MUX:  Return Code:0x0 Msi Messages:Error 997.Overlapped I/O operation is in progress.

    Result Detail:0 Restart:None

    [0920:0818][2015-09-19T17:39:33]i000: MUX:  Reset execution Result

    [0920:0818][2015-09-19T17:39:33]i000: MUX:  Reset Result

    [0920:0818][2015-09-19T17:39:33]i000: Setting string variable 'BundleResult' to value '1603'

    [0920:0818][2015-09-19T17:39:33]i319: Applied rollback package: vs_communitycore, result: 0x0, restart: None

    [1318:12FC][2015-09-19T17:39:33]i351: Removing cached package: vs_communitycore, from path: C:ProgramDataPackage Cache{DE064F60-6522-3310-9665-B5E3E78B3638}v14.0.23107

    [1318:12FC][2015-09-19T17:39:33]i326: Removed dependency: {50b32652-69d2-4b93-9316-edcd12067b8b} on package provider: Microsoft.VS.VSGraphics_EnableGraphicsTools,v14, package

    …………….REMOVED FEW Lines to adjust in 3072 characters—-

    [0920:0818][2015-09-19T17:39:41]i000: MUX:  P8 – Error 997.Overlapped I/O operation is in progress.

  38. Suyash Rathi says:

    For me it worked when I put the DWORD "SecureRepairPolicy " in

    HKEY_LOCAL_MACHINESOFTWAREPoliciesMicrosoftWindowsInstaller

    and I set the value as 1 (NOT 2 as suggested by many).

    Hope this helps someone out there (Wasted too much time on this :P)

  39. Naeem says:

    It work for me. I really really thank Jesse and Suyash Rathi.

    Thank you guys. Peace out

  40. Jonathan Lincoln says:

    I did what Gerd Hübner explained by renaming the C:ProgramDataMicrosoftCryptoRSAS-1-5-18 folder to C:ProgramDataMicrosoftCryptoRSAS-1-5-18_old.  I was trying to install Visual C++ Redistributable 2008 SP1 on Windows 7 Enterprise x64.  Simply renaming that folder allowed the installation.  THANKS!

  41. putneyboy says:

    Yes, I actually found that the Administrators were missing off the C:ProgramDataMicrosoftCryptoRSAS-1-5-18 folder and took ownership and re-applied permissions as full control on this. Installer went through first time!

    I was having problems with Microsoft Visual Studio Tools for Office Runtime 2010 KB3001652

  42. Michael says:

    Yup – renaming the folder C:ProgramDataMicrosoftCryptoRSAS-1-5-18 to C:ProgramDataMicrosoftCryptoRSAS-1-5-18_old worked for me as well.  I did originally try and set the permissions to take full control first, I made these changes – but it did not seem to work.  Renaming the folder did.

  43. Nicholas says:

    Renaming C:ProgramDataMicrosoftCryptoRSAS-1-5-18 to C:ProgramDataMicrosoftCryptoRSAS-1-5-18_old worked for me too. Otherwise, the Universal CRT libraries from the Windows 10 SDK were failing to install with an Overlapped I/O error on Windows Server 2008 R2.

  44. Mingo says:

    Holy crap. Rename worked for me as well on windows 10. After 3 clean installs of w10, it was such an easy fix… wtf

  45. david says:

    Surface Pro 4/Windows 10; 1&1/2 days wasted all for the solution of renaming a folder

    MSFT get a clue, developers don't have time for this nonsense.

  46. Shauli says:

    Renaming C:ProgramDataMicrosoftCryptoRSAS-1-5-18 to C:ProgramDataMicrosoftCryptoRSAS-1-5-18_old worked for me too.

    On windows 10 64bit while installing MATLAB

  47. Joe says:

    NTFS permissions on C:ProgramDataMicrosoftCryptoRSAS-1-5-18 were totally borked on my install too. Replacing the permissions with inheritable permission and taking ownership fixed this error.

    Proper log files with an "access denied" error message would have made this easier… for shame.

  48. PaulM says:

    Rename the folder worked for me too.  Win 8.1 Pro + Visual Studio 2015 Community install was failing – now finished no problem

  49. Tracy says:

    Jesse – don't know you but sending you a {{{{hug}}}}!!! I've wasted over 4 hours of my Saturday dealing with this issue and removing KB3072630 solved it. It all started with just trying to install a Seagate 1TB external hard drive in order to backup files so that I could upgrade from Vista, but the Microsoft .NET Framework 4.5.2 for Windows Vista x64 (KB2901983) upgrade kept getting error code 643 (80070643).  Uninstalling/reinstalling .NET framework did not solve it, nor did uninstalling KB3008621, KB2918614 and KB3000988. There is a hotfix for KB2918614 support.microsoft.com/…/3000988 but I followed your suggestion first which solved it.  MANY, MANY thanks!

  50. Zach says:

    I've had this issue two times and to resolve the issue all I've had to do is uninstall two KBs and then restart.

    1. Go to "View Installed Updates" (Windows 7 at least)

    2. Search for the following KBs and click "Uninstall" to uninstall them

       i.  KB3008627

       ii. KB3072630

    3. Reboot and try to install the application again

    For me the issue was with various versions of Visual C++ Redistributables

  51. Ben Edwards says:

    Renaming C:ProgramDataMicrosoftCryptoRSAS-1-5-18 to C:ProgramDataMicrosoftCryptoRSAS-1-5-18_old worked for me too.

    Window 10 1511 Enterprise

    Visual Studio Professional 2015 with Update 1

  52. Roma_S says:

    @Gerd Hübner

    Your decision saved me! Thank you!

  53. Nick says:

    Another +1 for Gerd Hübner – thanks!

  54. Adam Bingley says:

    FIXED: When installing Visual Studio 2015 Community Update 1

    Registry Edit..

    1. REGEDIT

    2.Go To

    HKEY_LOCAL_MACHINESOFTWAREPoliciesMicrosoftWindowsInstaller

    ("Installer" didn't exist for me initially, I had to create it.)

    Add DWORD "SecureRepairPolicy with value of 1.

    Install VS2015 🙂

  55. Saras says:

    Renaming C:ProgramDataMicrosoftCryptoRSAS-1-5-18 to C:ProgramDataMicrosoftCryptoRSAS-1-5-18_old

    FIXED "vs_communitycore Error 997.Overlapped I/O operation is in progress."

    installing Visual Studio 2015 Community on WIndows 10.

    Thank you.

  56. superbfahad says:

    If anyone find the product code then press WIN+R  key type: %temp% hit Enter and you may find that program's TXT log file there. open that TXT press Ctrl+F type:  ProductCode

    ******* CommandLine: **********

    that will be under that like this: {XXXXX-XXXXXX-XXXX-XXXX-XXXXX}  

  57. Jeff Berg says:

    Jesse's solution in his Jul 23, 2015 response worked for me as well.

  58. Alex says:

    Uninstalling KB3072630 helped me too 🙂

  59. Alex says:

    Renaming the folder C:ProgramDataMicrosoftCryptoRSAS-1-5-18 to C:ProgramDataMicrosoftCryptoRSAS-1-5-18_old helped too. There was no need to uninstall KB3072630

    1. Thang says:

      I got an “Error 997. Overlapped I/O operation is in progress” when trying to install SEP 12.1.6 MP4. Installed hotfix KB3000988 did not help. Renamed the hidden folder C:\ProgramData\Microsoft\Crypto\RSA\S-1-5-18 to C:\ProgramData\Microsoft\Crypto\RSA\S-1-5-18_old and reinstalled SEP. It WORKED!!!
      It would automatically recreated ….\S-1-5-18 folder.
      Thank you very much!

  60. Clarence says:

    Hi All,

    Renaming the folder C:ProgramDataMicrosoftCryptoRSAS-1-5-18 to S-1-5-18_old worked for me!

    OS: Windows 2012 R2 x64

    Application installing: Visual Studio 2012 Ultimate

    Thanks!

  61. Sven says:

    Changing the permissions on C:ProgramDataMicrosoftCryptoRSAS-1-5-18 to allow <SYSTEM> and <local administrators group> solved the issue in my case (no need to rename the folder or uninstall any KB's).

  62. yung fishbone says:

    I have Windows 10 with the latest updates and literally none of this other stuff worked for me except ->

    HKEY_LOCAL_MACHINE SOFTWARE Policies Microsoft Windows Installer

    add a new DWORD -> “SecureRepairPolicy”

    Set value as 1 (NOT 2).

  63. rik26300 says:

    Hi All,
    Renaming the folder C:\ProgramData\Microsoft\Crypto\RSA\S-1-5-18 to S-1-5-18_old worked for me too !
    OS: Windows 10 x64 V1607
    Application installing: Acronis Backup V12
    error on acronis install log : Crypt Provider not initialized
    Thanks!

Skip to main content