Skip to content

Commit fd194f7

Browse files
authored
[internal] engagement work attempt (#10772)
* [internal] engagement work attempt ------- cc: @anandmeg * Update troubleshooting-installation-issues.md * Update troubleshooting-installation-issues.md * Update troubleshooting-installation-issues.md
1 parent 9cd08fb commit fd194f7

File tree

1 file changed

+49
-54
lines changed

1 file changed

+49
-54
lines changed
Lines changed: 49 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Troubleshoot installation or upgrade issues
2+
title: Troubleshoot installation or upgrades
33
description: Sometimes, things can go wrong. If your Visual Studio installation or upgrade fails, this page can help.
44
ms.date: 1/6/2023
55
ms.custom: vs-acquisition
@@ -16,7 +16,7 @@ ms.workload:
1616
ms.prod: visual-studio-windows
1717
ms.technology: vs-installation
1818
---
19-
# Troubleshoot Visual Studio installation and upgrade issues
19+
# Troubleshoot Visual Studio installation and upgrades
2020

2121
[!INCLUDE [Visual Studio](~/includes/applies-to-version/vs-windows-only.md)]
2222

@@ -25,45 +25,44 @@ ms.technology: vs-installation
2525
2626
This troubleshooting guide includes step-by-step instructions that should resolve most installation issues.
2727

28-
## Online installations
28+
## Online installations / updates
2929

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.
3131

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.
3335

3436
::: moniker range="vs-2019"
3537

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).
3739

3840
::: moniker-end
3941

4042
::: moniker range=">=vs-2022"
4143

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).
4345

4446
::: moniker-end
4547

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
4949

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).
5151

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.
5353

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.
5555

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)
5757

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.
6059

6160
::: moniker range="<vs-2022"
6261

6362
1. Close the Visual Studio Installer.
6463
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.
6766

6867
::: moniker-end
6968

@@ -72,17 +71,18 @@ The Visual Studio bootstrapper is a light-weight executable that initiates the i
7271
1. Close the Visual Studio Installer.
7372
1. Delete the Visual Studio Installer folder. Typically, the folder path is `C:\Program Files (x86)\Microsoft Visual Studio\Installer`.
7473
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.
7675

7776
::: moniker-end
7877

79-
### Step 5 - Report a problem
78+
#### 5. Report the problem to support
79+
<a name="report"></a>
8080

8181
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:
8282

8383
::: moniker range="vs-2019"
8484

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.
8686
1. Open the Visual Studio Installer, and then click **Report a problem** to open the Visual Studio Feedback tool.
8787
![Screenshot showing the Provide feedback button in the Visual Studio Installer.](media/vs-2019/vs-installer-report-problem.png)
8888
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
9292

9393
::: moniker range=">=vs-2022"
9494

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.
9696
1. Open the Visual Studio Installer, and then choose **Report a problem** to open the Visual Studio Feedback tool.
9797
![Screenshot showing the Provide feedback button in the Visual Studio Installer.](media/vs-2022/vs-installer-report-problem.png)
9898
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.
9999
1. Choose **Submit**.
100100

101101
::: moniker-end
102102

103-
### Step 6 - Remove Visual Studio installation files
103+
#### 6. Remove all Visual Studio installation files
104104

105105
As a last resort, you can remove all Visual Studio installation files and product information:
106106

@@ -110,39 +110,37 @@ As a last resort, you can remove all Visual Studio installation files and produc
110110

111111
::: moniker range=">=vs-2022"
112112

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
121114

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.
122123

123124
You can rollback to your previously installed version by using the Visual Studio Installer or by using the command line.
124125

125-
#### Rollback using the Visual Studio Installer
126+
**To rollback using the Visual Studio Installer:**
126127

127128
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**.
130132
:::image type="content" source="media/vs-2022/rollback-from-previous-version.png" alt-text="Screenshot of the Rollback to previous version option.":::
131-
132133
1. Select **OK** to confirm your choice.
133134

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
138136

139137
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.
140138

141139
::: moniker-end
142140

143141
::: moniker range="vs-2019"
144142

145-
### Step 7 - Contact us (optional)
143+
#### 7. Contact our live chat
146144

147145
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.
148146

@@ -156,30 +154,27 @@ To resolve issues with a [network installation](create-a-network-installation-of
156154

157155
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.
158156

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+
<a name="logs"></a>
162159

163160
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.
164161

165162
To collect the logs:
166163

167164
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.
171167

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.
174169

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`.
176171

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
178173

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:
180175

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.
183178

184-
> [!NOTE]
179+
> [!Warning]
185180
> If neither policy is configured, WebView2 installation is allowed by your organization.

0 commit comments

Comments
 (0)