driconmax
driconmax

Reputation: 942

Visual Studio 2017 - Can't install

I'm trying to install Visual Studio 2017 Community because the last version i had, was a pre-Release of the same version. But now i can't keep using the program because it forces me to update to a new one.

The problem

I found this question with a similar problem but the answer didn't work for me. Any ideas?

Upvotes: 3

Views: 6371

Answers (4)

jccprj
jccprj

Reputation: 171

The log at %TEMP% showed a certificate problem .

Since the machine was an old windows 7, I had to update IE8 to IE11 so the installer could download. It wasn't installing yet. I had to set IE security level from medium-high to medium.

The log was:

VisualStudio Bootstrapper:7/15/2020 12:32:35 PM: Download failed using WebClient engine. Microsoft.VisualStudio.Setup.Security.InvalidSignatureException: Certificate is invalid: vs_installer.opc    at Microsoft.VisualStudio.Setup.Download.DownloadManager.DownloadWithRetry(IDownloadEngine[] engines, Uri uri, Stream outputStream, ProgressUpdateCallback progress, CancellationToken cancellationToken, DownloadContext downloadContext, Boolean verifySignature)

Upvotes: 0

Mikolasan
Mikolasan

Reputation: 785

TL;DR The problem can be in optimized (tweaked) system. Enable services that was originally on.

Read log file

If you are sure that there is no any of internet / firewall issues, all updates are installed (to meet requirements, especially for .NET Framework), then you should check log file in %TEMP% directory. A path something like C:\Users\<username>\AppData\Local\Temp\dd_bootstrapper_<date and time of last run>.log.

I'd expect, that it says:

Verifying signature

Caught Exception: Type = CryptographicException, Message = There are no more endpoints available from the endpoint mapper

Fix cryptographic exception

The first step is to install the certificates.

If the error still there, then check system services (Windows Key + R, type services.msc). Go through all list, read descriptions and search for certificates, private and public keys. I started CNG key isolation service (KeyIso) and magically the installer became normal.


Also I think this Uninstaller can be useful for everyone who did upgrade from previous version (2013, 2015) like me.

Upvotes: 4

Dhruv
Dhruv

Reputation: 89

I was also facing same issue which you are facing. As a troubleshooting,I found that now a days, files download from aka.ms. Due to some reason you might not be reachable from your machine.

To find out issue, you should first run fiddler and then start installation of Visual studio 2017. Find from where your exe is trying to download file for installation.

Once you could find URL like I got "aka.ms". Try to ping on that domain to verify connection and then try to open that URL from your computer.

If everything will be fine as I have explained your setup will download files.

Another Problem may be you have to install all the certificates as shown below:

  1. Right click on exe file.
  2. Select "Properties".
  3. Click on the "Digital Signatures" tab.
  4. Now you can see "signature list".
  5. Select signature Click on "Details" button.
  6. Click on "View certificate" button Click on "Install certificate" and follows installation wizard.

Upvotes: 1

Noboruu
Noboruu

Reputation: 365

Check internet connection, chck if you have any vpn/proxy, check if you have any wierd anti-virus, windows firewall or some external, run windows update (just in case), if these fail you will need to download the new version directly from Here

Upvotes: 0

Related Questions