Reputation: 1024
Do I have to download the entire VS Layout package everytime if there is an version update e.g. from 17.12 to 17.13 if the machine I want to install does not have internet access?
Currently the existing VS2022 installation got stuck on the installer which has an unfinished installation of update, only give me options as Resume(it was paused due to no internet access to download files), Modify and More(remove VS2022).
Upvotes: 1
Views: 378
Reputation: 3321
If you want to do an offline update from VS17.12 to 17.13 , you can follow below steps:
vs_enterprise.exe --layout c:\VSLayout
vs_enterprise.exe update --noWeb --quiet --installpath "C:\Program Files\Microsoft Visual Studio\2022\Enterprise"
Update
The easiest and fastest way to update your offline Visual Studio instances: using a minimal offline layout.
Do i have to download the entire VS Layout package everytime if there is an version update?
Unlike a full Visual Studio layout, a minimal layout only contains the updated packages, so it is always smaller and faster to generate and deploy.
1.Generating a minimal layout.
MinimalLayout.exe generate --targetLocation c:\VSLayout\ --productIds Microsoft.VisualStudio.Product.Enterprise --baseVersion 17.12.5 --targetVersion 17.13.0 --languages en-US
2.Update the Visual Studio Installer
vs_enterprise.exe --quiet --update --offline C:\VSLayout\vs_installer.opc
3.Update the Visual Studio application
vs_enterprise.exe update --noWeb --quiet --installpath "C:\Program Files\Microsoft Visual Studio\2022\Enterprise"
Docs Referred:
Update the layout to a specific version of the product
Update Visual Studio from a layout
Upvotes: 0
Reputation: 4728
Microsoft has a handy post that details what you need to do. Essentially, at the command line on the computer with internet access, execute:
vs_enterprise.exe --layout c:\localVSlayout
Replace c:\localVsLayout
with where you want to dump the files. It's going to be big! You may need to change vs_enterprise.exe
with the correct executable name for your version of Visual Studio.
Upvotes: 0