How to install specific version of Visual Studio 2022
Asked Answered
S

4

12

I want to install a specific version of Visual Studio, but don't know how, specifically version 17.0. All my search result is just release notes, can't install. How to do that?
Thanks

Snavely answered 13/5, 2022 at 16:38 Comment(0)
S
11

Ok, I see it, we are only able to rollback to earlier version if using Enterprise or Professional licence (here), in my case, I'm using Community, which is free. Sad :(

Snavely answered 13/5, 2022 at 17:16 Comment(0)
M
5

If you want to install a specific version of visual studio , Download from below link.

To go back to an earlier release, you must uninstall your current installation and use below link to download and re-install the version that you prefer.

https://learn.microsoft.com/en-us/visualstudio/releases/2022/release-history#updating-your-installation-to-a-specific-release

Marthena answered 14/4, 2023 at 6:48 Comment(1)
It's worth noting that this is specifically for VS Pro and Enterprise editions onlyIndoxyl
S
5

You want to install Visual Studio 2022 version 17.8 ?

After downloading visualstudiosetup.exe go to command line and enter:

visualstudiosetup.exe --channelUri https://aka.ms/vs/17/release.LTSC.17.8/channel

Make selections and let install

Sarajane answered 18/6 at 14:11 Comment(0)
P
3

In my case I wanted to update to a particular version of VS Community. While the GUI installer does not seem to be able to select one, it is possible to point it to a particular version through the command line by using a URI. Obtaining one is however quite complicated, more than it needs to be honestly:

  • Locate the particular version in the Microsoft Update Catalog and download the installer.
  • When I ran the installer, it extracted something, then close, and nothing happened. In any case, navigate to the %TEMP% folder where the installer extracts its files. If it closes without doing anything, it also deletes the temporary extracted folder, but you have time to copy it somewhere to look inside.
  • Find the ChannelManifest.json file. Should be about 90 KiB.
  • Upload it to a web server so that you have a URI it could be downloaded from, say https://example.org/ChannelManifest.json.
  • Go to C:\Program Files (x86)\Microsoft Visual Studio\Installer and open the command line there.
  • Run setup update --channelId VisualStudio.17.Release --productId Microsoft.VisualStudio.Product.Community --channelURI "https://example.org/ChannelManifest.json". Feel free to add other parameters such as --previewUpdate.
  • Existing installation of VS Community 2022 should start updating to the specified version.

Few known URIs that could be used for channelURI:

  • https://aka.ms/vs/17/release/channel ‒ the latest release version.
  • https://aka.ms/vs/17/pre/channel ‒ the latest preview version.
  • https://aka.ms/vs/17/pre/211752065_538491369/channel ‒ 17.6.0 Preview 2.0.
  • https://web.archive.org/web/20240804095215id_/https://is4.site/VisualStudio.17.Release/17.8.7+34601.278/ChannelManifest.json ‒ my backup of 17.8.7 Release.

There is also apparently a guide how to form these URIs at https://dnceng.visualstudio.com/internal/_wiki/wikis/DNCEng%20Services%20Wiki/972/VS-2022-image-updates, but it is not publicly accessible.

Preponderant answered 3/3 at 23:26 Comment(3)
You can also create a Windows explorer share of the folder and then use --channelURI "\\MY-PC\MY-SHARED-FOLDER\ChannelManifest.json"Platypus
@Platypus Naturally 😄 Good find!Preponderant
@Platypus Unable to update the VS 2022 community to link17.4.0 after installing VS 2022 Community 17.10.1. The installer prompts "\\my-pc\Share\ChannelManifest.json is an invalid channel for the install at C:\Program Files\Microsoft Visual Studio\2022\Community.". Any idea on how to resolve this error?Kermanshah

© 2022 - 2024 — McMap. All rights reserved.