Failed Visual Studio 2015 installation

╄→尐↘猪︶ㄣ 提交于 2019-11-27 08:47:31

问题


I tried to install Visual studio 2015 express for Windows 10 on my windows 10 but it failed and didn't install.

Here is a picture:

I tried uninstalling and installing again but it didn't work.

Here is the log file.

This looks like the section causing the issue:

MSI (s) (F4:78) [18:08:41:658]: SECREPAIR: A general error running CryptAcquireContext
MSI (s) (F4:78) [18:08:41:658]: Determining source type
MSI (s) (F4:78) [18:08:41:659]: Source type from package 'winexpress_coremsi.msi': 0
MSI (s) (F4:78) [18:08:41:659]: SECREPAIR: Hash Database: C:\WINDOWS\Installer\SourceHash{4D2824C5-DA58-3442-BB90-F71EA6B07EA9}
MSI (s) (F4:78) [18:08:41:661]: Note: 1: 2262 2: SourceHash 3: -2147287038 
MSI (s) (F4:78) [18:08:41:705]: SECREPAIR: New Hash Database creation complete.
MSI (s) (F4:78) [18:08:41:705]: SECREPAIR: Crypt Provider not initialized. Error:0
MSI (s) (F4:78) [18:08:41:714]: SECREPAIR: Crypt Provider not initialized. Error:0
MSI (s) (F4:78) [18:08:41:714]: SECREPAIR: Crypt Provider not initialized. Error:0
MSI (s) (F4:78) [18:08:41:714]: SECREPAIR: Crypt Provider not initialized. Error:0
MSI (s) (F4:78) [18:08:41:714]: SECREPAIR: Crypt Provider not initialized. Error:0
MSI (s) (F4:78) [18:08:41:714]: SECREPAIR: Crypt Provider not initialized. Error:997
MSI (s) (F4:78) [18:08:41:714]: SECUREREPAIR: Failed to CreateContentHash of the file: cab5.cab: for computing its hash. Error: 997
MSI (s) (F4:78) [18:08:41:717]: SECREPAIR: Failed to create hash for the install source files
MSI (s) (F4:78) [18:08:41:717]: SECUREREPAIR: SecureRepair Failed. Error code: 3e5651E05C8
Action start 18:08:41: ProcessComponents.
MSI (s) (F4:78) [18:08:41:722]: 
Error 997.Overlapped I/O operation is in progress.

回答1:


I had a similar Visual Studio install failure ("User cancelled" and "Overlapped I/O" messages) on Win 8.1 Pro. I eventually found this thread:

http://blogs.msdn.com/b/vsnetsetup/archive/2014/10/27/error-997-overlapped-i-o-operation-is-in-progress-kb2918614-breaks-windows-installer-service.aspx

After I renamed the C:\ProgramData\Microsoft\Crypto\RSA\S-1-5-18 folder then the VS install worked fine.




回答2:


It's almost impossible to "tell" you what's wrong or how to fix this. The error is coming from the fact that your crypto store is somehow corrupt. It happens sometimes, it's hard to say why. Last time I had these kind of issues I decided to do a fresh install of Windows 10 and that made all the problems go away. I ended up in that state because I updated the firmware of my laptop. Did not figure out exactly what went wrong, It doesn't take too long to do a fresh install, it takes longer to try and figure it out.

There are a few things that may help though, there are a few reasons this error may occur:

  • Virus scanner is running and doing funny thing.
  • You have a virus on your machine and it's doing funny things
  • You're using a mandatory or temporary Window Profile. Changing that to a normal profile should fix this issue.
  • It is possible that some part of your Windows Installer database has been corrupted, try running this Fit-It tool to see if that resolves the issue.

If these things don't help, and you want to try something else, you can turn off the hash checks altogether WARNING this allows installation of corrupted MSI packages and is considered very insecure. Only do this as a last resort:

  1. Create a DWORD named SecureRepairPolicy with value 1 in HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Installer

Run the installation, which should succeed now and after rebooting reset the flag to either its previous value or delete it if it didn't originally exist.

If you need Microsoft support with this issue, file a bug on Connect and be sure to attach the Visual Studio installation log collection data that is gathered by this tool.

Note: many forum posts and other topics mention the deinstallation of specific Windows Hotfixes. This was an option, though insecure, when this problem was not yet part of the default installation and was specifically triggered by the installation of the hotfix. With Windows 10 there is no hotfix to uninstall, as the stuff that is causing this issue has been installed with the clean operating installation and cannot be uninstalled.




回答3:


Solution that did it for me is: 1. Go to Control Panel. 2. Go to User Accounts. 3. Make Changes to my account in PC settings. 4. Click Sign in with a local account (if you are logged with a microsoft account). 5. Sign in with the local account and you're done.




回答4:


For me it was almost the same. Just first time I was installing community version. and it failed. Maybe it happend because I lost my internet connection. And one of the packages were downloaded wrong. after that no mater If I tryed community online installation or dream-spark community or Enterprise. It always failed.

So suggestion to delete C:\ProgramData\Microsoft\Crypto\RSA\S-1-5-18 folder worked just fine. I just didn't want to repeat installation, so I deleted it everywhere it was created. After that tryed adding more features ant it worked without deleting S_1-5-18.

So thnx PaulM



来源:https://stackoverflow.com/questions/31840924/failed-visual-studio-2015-installation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!