Skip to content

Commit a1f0ca8

Browse files
committed
initial doc
1 parent 00c0953 commit a1f0ca8

6 files changed

Lines changed: 91 additions & 0 deletions

File tree

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
---
2+
title: Troubleshoot Visual Studio 2017, 2019, and 2020 Installation Failures
3+
description: Learn how to troubleshoot and resolve Visual Studio installation failures, including online and offline setup issues, with clear, actionable steps.
4+
ms.date: 12/30/2025
5+
ms.reviewer: khgupta, v-shaywood
6+
ms.custom: sap:Installation\Setup, maintenance, or uninstall
7+
---
8+
9+
# Unable to install Visual Studio 2017, 2019, or 2022
10+
11+
_Applies to:_ Visual Studio 2017, 2019, and 2022
12+
13+
When you attempt to install Visual Studio 2017, 2019, or 2022 you might experience an issue where the installation wizard disappears unexpectedly or returns an error message that indicates some installation files couldn't be downloaded. This article provides a solution that resolves these installation issues and enables you to successfully install Visual Studio.
14+
15+
## Symptoms
16+
17+
The symptoms of this issue depends on whether you are attempting an [online install](/visualstudio/install/install-visual-studio) or an [offline install](/visualstudio/install/create-an-offline-installation-of-visual-studio).
18+
19+
### Online install
20+
21+
When you attempt an _online install_ of Visual Studio 2017, 2019, or 2022, the installation wizard shows the following message dialog:
22+
23+
> Before you get started, we need to set up a few things so that you can configure your installation.
24+
25+
:::image type="content" source="./media/install-failure-2017-2019-2022/install-wizard-set-up-things.png" alt-text="Screenshot of the Visual Studio installation wizard with a message that the installer needs to set up a few things so that you can configure your installation":::
26+
27+
After you select **Continue** in the message dialog, the installation wizard disappears and the install stops.
28+
29+
### Offline install
30+
31+
When you attempt an _offline install_ of Visual Studio 2017, 2019, or 2022 on a device with no or limited internet access, the installation wizard shows the following error dialog:
32+
33+
> Unable to download installation files. Check your internet connection and try again.
34+
35+
:::image type="content" source="./media/install-failure-2017-2019-2022/install-wizard-download-error.png" alt-text="Screenshot of the Visual Studio installation wizard with an error message that the installer was unable to download installation files":::
36+
37+
If your device has event logging enabled for the [CryptoAPI (CAPI2)](/windows/win32/seccrypto/cryptography--cryptoapi--and-capicom), you will also see the following error in the CAPI2 [Event Viewer](/host-integration-server/core/windows-event-viewer1) logs (Event ID 30):
38+
39+
:::image type="content" source="./media/install-failure-2017-2019-2022/event-viewer-capi2-errors.png" alt-text="Screenshot of the Event Viewer showing multiple CAPI2 errors with Event ID 30":::
40+
41+
```xml
42+
<Event>
43+
<UserData>
44+
<CertVerifyCertificateChainPolicy>
45+
<Policy type="CERT_CHAIN_POLICY_BASE" constant="1" />
46+
<Certificate fileRef="8D68C42C0E1487E33AFCD85B764E514AFC2F8772.cer" subjectName="Microsoft Corporation" />
47+
<CertificateChain chainRef="{6B598FF8-1F8F-429E-AE87-001A5FE49268}" />
48+
<Flags value="1" CERT_CHAIN_POLICY_IGNORE_NOT_TIME_VALID_FLAG="true" />
49+
<Status chainIndex="0" elementIndex="-1" />
50+
<EventAuxInfo ProcessName="vs_setup_bootstrapper.exe" />
51+
<CorrelationAuxInfo TaskId="{3553E2D5-941F-428B-904E-ADEC5F1F20A7}" SeqNumber="1" />
52+
<Result value="800B010A">
53+
A certificate chain could not be built to a trusted root authority.
54+
</Result>
55+
</CertVerifyCertificateChainPolicy>
56+
</UserData>
57+
</Event>
58+
```
59+
60+
The CAPI2 event logs can be accessed from the Event Viewer by going to **Applications and Services Logs** > **Microsoft** > **Windows** > **CAPI2** > **Operational**.
61+
62+
#### Enable CAPI2 logs
63+
64+
Use the following steps to enable CAPI2 event logging:
65+
66+
1. Open Event Viewer by pressing <kbd>Win</kbd> + <kbd>R</kbd>, type _eventvwr_, then press <kbd>Enter</kdb>.
67+
1. Go to **Applications and Services Logs** > **Microsoft** > **Windows** > **CAPI2** > **Operational**.
68+
1. Right-click **Operational** and select **Clear Log** to delete any previous logs.
69+
1. Right-click **Operational** and select **Enable Log** to start logging.
70+
71+
:::image type="content" source="./media/install-failure-2017-2019-2022/event-viewer-enable-capi2-logs.png" alt-text="Screenshot of the Event Viewer with the right-click menu to clear or enable logs for CAPI2":::
72+
73+
1. Try installing Visual Studio again using the offline installer.
74+
1. After reproducing the issue, the CAPI2 event logs should contain details about the install failure.
75+
1. To stop logging, right-click **Operation** and select **Disable Log**.
76+
77+
## Solution
78+
79+
Use the following steps to resolve this issue:
80+
81+
1. Download the [Microsoft Windows Code Signing PCA 2024](https://www.microsoft.com/pkiops/certs/Microsoft%20Windows%20Code%20Signing%20PCA%202024.crt) certificate using a device that has internet access.
82+
1. Copy the certificate file to `C:\Temp` on the device experiencing install issues.
83+
1. Install the _Microsoft Windows Code Signing PCA 2024_ certificate into the [Trusted Root Certification Authorities store](/windows-hardware/drivers/install/trusted-root-certification-authorities-certificate-store) by running the following command from an elevated command prompt:
84+
85+
```cli
86+
CertUtil -addStore CA "C:\Temp\Microsoft Windows Code Signing PCA 2024.crt"
87+
```
88+
89+
1. Try installing Visual Studio again using the offline installer.
36.7 KB
Loading
142 KB
Loading
73.2 KB
Loading
68.3 KB
Loading

support/developer/visualstudio/installation/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@
4646
href: ./specified-program-requires-newer-version-windows.md
4747
- name: Troubleshoot installation and upgrade issues
4848
href: ./troubleshoot-installation-issues.md
49+
- name: Unable to install Visual Studio 2017, 2019, or 2022
50+
href: ./install-failure-2017-2019-2022.md
4951
- name: Uninstall third-party applications in Visual Studio 2015
5052
href: ./secondary-installer-third-party-app.md
5153
- name: Visual Studio installation stops on Windows 10 21H2

0 commit comments

Comments
 (0)