|
1 | 1 | ---
|
2 | 2 | title: Troubleshoot installation or upgrade issues
|
3 | 3 | description: Sometimes, things can go wrong. If your Visual Studio installation or upgrade fails, this page can help.
|
4 |
| -ms.date: 2/4/2022 |
| 4 | +ms.date: 11/08/2022 |
5 | 5 | ms.custom: vs-acquisition
|
6 | 6 | ms.topic: troubleshooting
|
7 | 7 | helpviewer_keywords:
|
@@ -108,10 +108,50 @@ As a last resort, you can remove all Visual Studio installation files and produc
|
108 | 108 | 1. Rerun 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.
|
109 | 109 | 1. Try to reinstall Visual Studio.
|
110 | 110 |
|
| 111 | +::: moniker range="vs-2019" |
| 112 | + |
111 | 113 | ### Step 7 - Contact us (optional)
|
112 | 114 |
|
113 | 115 | 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.
|
114 | 116 |
|
| 117 | +::: moniker-end |
| 118 | + |
| 119 | +::: moniker range=">=vs-2022" |
| 120 | + |
| 121 | +### Step 7 - Rollback |
| 122 | + |
| 123 | +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/devblog-rollback) before trying to rollback. |
| 124 | + |
| 125 | +> [!NOTE] |
| 126 | +> With Visual Studio 2022 17.4, you'll be able to rollback to your previously installed version. |
| 127 | +> - For the Release channel, you can rollback to your previously installed version if it was either 17.0.10 or higher, or 17.1.7 or higher. |
| 128 | +> - For the Preview channel, you can rollback to your previously installed version if it was 17.2 Preview 1 or higher. |
| 129 | +
|
| 130 | +You can rollback to your previously installed version by using the Visual Studio Installer or by using the command line. |
| 131 | + |
| 132 | +#### Rollback using the Visual Studio Installer |
| 133 | + |
| 134 | +1. Launch the **Visual Studio Installer** on your computer. |
| 135 | +1. In the installer, look for the edition of Visual Studio that you installed. Next, choose **More**, and then choose **Rollback to previous version**. |
| 136 | + |
| 137 | + :::image type="content" source="media/vs-2022/rollback-from-previous-version.png" alt-text="Screenshot of the Rollback to previous version option."::: |
| 138 | + |
| 139 | +1. Select **OK** to confirm your choice. |
| 140 | + |
| 141 | +#### Rollback using the command line |
| 142 | + |
| 143 | +The `rollback` command is also available programmatically to users who manage updates through scripts or command line. |
| 144 | + |
| 145 | +Below is an example command that you can run to rollback using the command line: |
| 146 | + |
| 147 | +`"C:\Program Files (x86)\Microsoft Visual Studio\Installer\setup.exe" rollback -–installPath "C:\Program Files\Microsoft Visual Studio\2022\Preview"` |
| 148 | + |
| 149 | +### Step 8 - Contact us (optional) |
| 150 | + |
| 151 | +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. |
| 152 | + |
| 153 | +::: moniker-end |
| 154 | + |
115 | 155 | ## Offline installations
|
116 | 156 |
|
117 | 157 | Here are some known issues and workarounds that might help you when you create an [offline installation](create-an-offline-installation-of-visual-studio.md) and install from a local layout.
|
|
0 commit comments