You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This troubleshooting guide includes step-by-step instructions that should resolve most installation issues.
27
27
28
-
## Online installations
28
+
## Online installations / updates
29
29
30
-
The following steps apply to a typical online installation. For a network (layout) or offline installation, see [How to troubleshoot an offline installation](#network-layout-or-offline-installations).
30
+
The following possible resolutions apply to a typical online installation. Try them in order.
31
31
32
-
### Step 1 - Check whether the problem is a known issue
32
+
#### 1. Check whether the problem is a known issue
33
+
34
+
The first thing to check is whether or not the issue you are encountering is a known issue with the Visual Studio Installer that Microsoft is working on fixing.
33
35
34
36
::: moniker range="vs-2019"
35
37
36
-
There are some known issues with the Visual Studio Installer that Microsoft is working on fixing. To see if there's a workaround for your problem, check the [Known Issues section of our release notes](/visualstudio/releases/2019/release-notes#-known-issues).
38
+
To see if there's a workaround for your problem, check the [Known Issues section of our release notes](/visualstudio/releases/2019/release-notes#-known-issues).
37
39
38
40
::: moniker-end
39
41
40
42
::: moniker range=">=vs-2022"
41
43
42
-
There are some known issues with the Visual Studio Installer that Microsoft is working on fixing. Check if your problem is already solved, or find workarounds, in the [Known Issues section of our release notes](/visualstudio/releases/2022/release-notes#-known-issues).
44
+
To see if there's a workaround for your problem, check the [Known Issues section of our release notes](/visualstudio/releases/2022/release-notes#-known-issues).
43
45
44
46
::: moniker-end
45
47
46
-
### Step 2 - Try repairing Visual Studio
47
-
48
-
Repair fixes many common update issues. For more about when and how to repair Visual Studio, see [Repair Visual Studio](repair-visual-studio.md).
48
+
#### 2. Try repairing Visual Studio
49
49
50
-
### Step 3 - Check with the developer community
50
+
Next, try to repair your installation. This solution fixes many common update issues. To learn how to repair, see [Repair Visual Studio](repair-visual-studio.md).
51
51
52
-
Search for your error message in the [Visual Studio Developer Community](https://developercommunity.visualstudio.com/search?space=8). Other members of the community might have found a solution or workaround to your problem.
52
+
#### 3. See what the developer community says about the error.
53
53
54
-
### Step 4 - Delete the Visual Studio Installer folder to fix upgrade problems
54
+
If repairing didn't fix the issue, search for your error message in the [Visual Studio Developer Community](https://developercommunity.visualstudio.com/search?space=8). Other members of the community might have found a solution or workaround to your problem.
55
55
56
-
The Visual Studio bootstrapper is a light-weight executable that initiates the install of the Visual Studio Installer and then the Visual Studio product. Deleting the Visual Studio Installer files and then rerunning the bootstrapper solves some update failures.
56
+
#### 4. Delete the installer folder (update issues)
57
57
58
-
> [!NOTE]
59
-
> Performing the following actions reinstalls the Visual Studio Installer files and resets the installation metadata.
58
+
If you encountered an issue when updating, try deleting the Visual Studio Installer folder, and then rerunning the installation bootstrapper can solve certain update failures. Doing so reinstalls the Visual Studio Installer files and resets the installation metadata.
60
59
61
60
::: moniker range="<vs-2022"
62
61
63
62
1. Close the Visual Studio Installer.
64
63
1. Delete the Visual Studio Installer installation directory. Typically, the directory is `C:\Program Files (x86)\Microsoft Visual Studio\Installer`.
65
-
1. Run the Visual Studio bootstrapper. You might find the bootstrapper in your Downloads folder with a file name that follows a `vs_[Visual Studio edition]__*.exe` pattern. If you don't find that application, you can download the bootstrapper by going to the [Visual Studio older downloads page](https://visualstudio.microsoft.com/vs/older-downloads) and clicking **Download** for your edition of Visual Studio. Then, run the executable to reset your installation metadata.
66
-
1. Try to install or update Visual Studio again. If the Installer continues to fail, proceed to the [Report a problem](#step-5---report-a-problem) step.
64
+
1. Run the Visual Studio bootstrapper. The Visual Studio bootstrapper is a light-weight executable that initiates the install of the Visual Studio Installer and then the Visual Studio product itself. You might find the bootstrapper in your Downloads folder with a file name that follows a `vs_[Visual Studio edition]__*.exe` pattern. If you don't find that application, you can download the bootstrapper by going to the [Visual Studio older downloads page](https://visualstudio.microsoft.com/vs/older-downloads) and clicking **Download** for your edition of Visual Studio. Then, run the executable to reset your installation metadata.
65
+
1. Try to install or update Visual Studio again. If the Installer continues to fail, proceed to the [Report a problem](#report) step.
67
66
68
67
::: moniker-end
69
68
@@ -72,17 +71,18 @@ The Visual Studio bootstrapper is a light-weight executable that initiates the i
72
71
1. Close the Visual Studio Installer.
73
72
1. Delete the Visual Studio Installer folder. Typically, the folder path is `C:\Program Files (x86)\Microsoft Visual Studio\Installer`.
74
73
1. Run the Visual Studio Installer bootstrapper. You might find the bootstrapper in your **Downloads** folder with a file name that matches a `vs_[Visual Studio edition]__*.exe` pattern. Or, you can download the bootstrapper for your edition of Visual Studio from the [Visual Studio downloads](https://visualstudio.microsoft.com/downloads) page. Then, run the executable to reset your installation metadata.
75
-
1. Try to install or update Visual Studio again. If the Visual Studio Installer continues to fail, proceed to the [Report a problem](#step-5---report-a-problem) step.
74
+
1. Try to install or update Visual Studio again. If the Visual Studio Installer continues to fail, proceed to the [Report a problem](#report) step.
76
75
77
76
::: moniker-end
78
77
79
-
### Step 5 - Report a problem
78
+
#### 5. Report the problem to support
79
+
<aname="report"></a>
80
80
81
81
In some situations, such as when there are corrupted files, issues might require case-by-case troubleshooting. To help us help you, follow these steps:
82
82
83
83
::: moniker range="vs-2019"
84
84
85
-
1. Collect your setup logs. See [How to get the Visual Studio installation logs](#installation-logs) for details.
85
+
1. Collect your setup logs. See [How to get the Visual Studio installation logs](#logs) for details.
86
86
1. Open the Visual Studio Installer, and then click **Report a problem** to open the Visual Studio Feedback tool.
87
87

88
88
1. Give your problem report a title, and provide relevant details. Click **Next** to go to the **Attachments** section, and then attach the generated log file (typically, the file is at `%TEMP%\vslogs.zip`).
@@ -92,15 +92,15 @@ In some situations, such as when there are corrupted files, issues might require
92
92
93
93
::: moniker range=">=vs-2022"
94
94
95
-
1. Collect your setup logs. See [How to get the Visual Studio installation logs](#installation-logs) for details.
95
+
1. Collect your setup logs. See [How to get the Visual Studio installation logs](#logs) for details.
96
96
1. Open the Visual Studio Installer, and then choose **Report a problem** to open the Visual Studio Feedback tool.
97
97

98
98
1. Give your problem report a title, and provide the relevant details. The most recent setup log for the Visual Studio Installer is automatically added to the **Additional attachments** section of your problem report.
99
99
1. Choose **Submit**.
100
100
101
101
::: moniker-end
102
102
103
-
###Step 6 - Remove Visual Studio installation files
103
+
#### 6. Remove all Visual Studio installation files
104
104
105
105
As a last resort, you can remove all Visual Studio installation files and product information:
106
106
@@ -110,39 +110,37 @@ As a last resort, you can remove all Visual Studio installation files and produc
110
110
111
111
::: moniker range=">=vs-2022"
112
112
113
-
### Step 7 - Rollback
114
-
115
-
If none of the previous steps help you successfully upgrade Visual Studio, you can try to rollback to your previously installed version. Learn more about the [rollback feature in Visual Studio](https://aka.ms/vs/rollback) before trying to rollback.
116
-
117
-
> [!NOTE]
118
-
> Starting with Visual Studio 2022 version 17.4, you'll be able to rollback to your previously installed version if:
119
-
> - you haven't installed from a layout.
120
-
> - your original version was on the Current channel version 17.1.7 or higher, or on the 17.0 Fall 2021 LTSC channel 17.0.10 or higher.
113
+
#### 7. Rollback to a previous install
121
114
115
+
> [!IMPORTANT]
116
+
> **Before** you try to rollback, learn more about the [rollback feature in Visual Studio](https://aka.ms/vs/rollback).
117
+
>
118
+
> Rollback may be disabled or your rollback attempt may be undone if you're in an organization that has security compliance or software updating requirements. Contact your IT Administrator for further details.
119
+
120
+
If none of the previous steps helped you successfully upgrade Visual Studio, you can try to rollback to your previously installed version. Since Visual Studio 2022 version 17.4, you can rollback to your previously installed version if:
121
+
- You haven't installed from a layout.
122
+
- Your original version was on the Current channel version 17.1.7 or higher, or on the 17.0 Fall 2021 LTSC channel 17.0.10 or higher.
122
123
123
124
You can rollback to your previously installed version by using the Visual Studio Installer or by using the command line.
124
125
125
-
#### Rollback using the Visual Studio Installer
126
+
**To rollback using the Visual Studio Installer:**
126
127
127
128
1. Launch the **Visual Studio Installer** on your computer.
128
-
1. In the installer, look for the edition of Visual Studio that you installed. Next, choose **More**, and then choose **Rollback to previous version**.
129
-
129
+
1. In the installer, look for the edition of Visual Studio that you installed.
130
+
2. Choose **More**.
131
+
3. Choose **Rollback to previous version**.
130
132
:::image type="content" source="media/vs-2022/rollback-from-previous-version.png" alt-text="Screenshot of the Rollback to previous version option.":::
131
-
132
133
1. Select **OK** to confirm your choice.
133
134
134
-
> [!IMPORTANT]
135
-
> Rollback may be disabled or your rollback attempt may be undone if you're in an organization that has security compliance or software updating requirements. Contact your IT Administrator for further details.
136
-
137
-
### Step 8 - Contact us (optional)
135
+
#### 8. Contact our live chat
138
136
139
137
If none of the previous steps help you successfully install or upgrade Visual Studio, contact us by using our [**live chat**](https://visualstudio.microsoft.com/vs/support/#talktous) support option (English only) for further assistance.
140
138
141
139
::: moniker-end
142
140
143
141
::: moniker range="vs-2019"
144
142
145
-
###Step 7 - Contact us (optional)
143
+
#### 7. Contact our live chat
146
144
147
145
If none of the previous steps help you successfully install or upgrade Visual Studio, contact us by using our [**live chat**](https://visualstudio.microsoft.com/vs/support/#talktous) support option (English only) for further assistance.
148
146
@@ -156,30 +154,27 @@ To resolve issues with a [network installation](create-a-network-installation-of
156
154
157
155
Administrator updates may not be applied correctly due to a variety of situations. Refer to the [Administrator updates troubleshooting error codes](/visualstudio/install/applying-administrator-updates#verification-reports-and-troubleshooting-error-codes) for further information.
158
156
159
-
## Installation logs
160
-
161
-
Setup logs help us troubleshoot most installation issues. When you submit an issue by using [Report a Problem](../ide/how-to-report-a-problem-with-visual-studio.md) in the Visual Studio Installer, the most recent setup log for the Visual Studio Installer is automatically added to your report.
157
+
## Collect installation logs for Microsoft Support
158
+
<aname="logs"></a>
162
159
163
160
If you contact Microsoft Support, you might be asked to collect setup logs by using the [Microsoft Visual Studio and .NET Framework log collection tool](https://aka.ms/vscollect). The log collection tool collects setup logs from all components installed by Visual Studio, including .NET Framework, Windows SDK, and SQL Server. It also collects computer information, a Windows Installer inventory, and Windows event log information for the Visual Studio Installer, Windows Installer, and System Restore.
164
161
165
162
To collect the logs:
166
163
167
164
1.[Download the tool](https://aka.ms/vscollect).
168
-
1. Open an administrative command prompt.
169
-
1. Run `Collect.exe` in the folder where you saved the tool.
170
-
1. The tool generates a `vslogs.zip` file in your `%TEMP%` folder, typically at `C:\Users\YourName\AppData\Local\Temp\vslogs.zip`.
165
+
3. Open an administrative command prompt.
166
+
4. Run `Collect.exe` in the folder where you saved the tool.
171
167
172
-
> [!NOTE]
173
-
> The tool must be run under the same user account that the failed installation was run under. If you are running the tool from a different user account, set the `–user:<name>` option to specify the user account under which the failed installation was run. Run `Collect.exe -?` from an administrator command prompt for additional options and usage information.
168
+
The tool must be run under the same user account that the failed installation was run under. If you are running the tool from a different user account, set the `–user:<name>` option to specify the user account under which the failed installation was run. Run `Collect.exe -?` from an administrator command prompt for additional options and usage information.
174
169
175
-
## Problems installing WebView2
170
+
The tool generates a `vslogs.zip` file in your `%TEMP%` folder, typically at `C:\Users\YourName\AppData\Local\Temp\vslogs.zip`.
176
171
177
-
WebView2 is a component that is required by Visual Studio, but installation of this component can be blocked by your organization’s Group Policies. Blocking the installation of WebView2 will prevent Visual Studio from being installed.
172
+
## Problems installing WebView2
178
173
179
-
Two policies control the ability to install WebView2: [Microsoft Edge 'Install (WebView)'](/deployedge/microsoft-edge-update-policies#install-webview) and [Microsoft Edge 'InstallDefault'](/deployedge/microsoft-edge-update-policies#installdefault).
174
+
If your organization's Group policies block the installation of the WebView2 component, you won't be able to install Visual Studio since the installer requires WebView2 to be installed. If this happens, check these policies:
180
175
181
-
• If the Microsoft Edge 'Install (WebView)' policy is configured, it will determine whether WebView2 can be installed.
182
-
• If the Microsoft Edge 'Install (WebView)' policy is not configured, the Microsoft Edge 'InstallDefault' policy will determine whether WebView2 can be installed.
176
+
-If the [Microsoft Edge 'Install (WebView)'](/deployedge/microsoft-edge-update-policies#install-webview)is configured, it determines whether WebView2 can be installed.
177
+
-If the Microsoft Edge 'Install (WebView)' policy is not configured, the [Microsoft Edge 'InstallDefault'](/deployedge/microsoft-edge-update-policies#installdefault) policy determines whether WebView2 can be installed.
183
178
184
-
> [!NOTE]
179
+
> [!Warning]
185
180
> If neither policy is configured, WebView2 installation is allowed by your organization.
0 commit comments