Hello there,
I remember theres always an offline installer (about 22-25gb) to install visual studio completely.
2017 and 2019 had this type of installers, does anyone knows if VS 2022 offline installer is currently available?
Thank you
I wan't to make an offline installer of visual studio community 2022 and put that on a usb stick and install it on a friend's laptop. Is it possible? And if so how?
Videos
Im struggling to add this application to my deployment share. Can you tell me what im missing here?
Heres whats happening: https://imgur.com/lXmCzYB
It attempts to download, and then just stays at 99% forever and never installs or puts any files on the computer.
Here is what I have on the MDT Side:
Quiet Install Command: vs_setup.exe --quiet --wait --norestart --includeRecommended --add Microsoft.VisualStudio.Workload.NetDesktop --add Microsoft.VisualStudio.Workload.Python --path cache="C:\toolkit\Applications\VS 2022"
What am I doing wrong here?
EDIT: after reading multiple comments and re-reading the documentation from microsoft - here is the process that worked for me!!
Download visual studio bootstrapper.exe: https://aka.ms/vs/17/release/vs_professional.exe
Then open CMD and run: vs_enterprise.exe --layout c:\localVSlayout --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.Python --includeRecommended
This will download about 7GB of files to c:\localVSlayout.
Then once this is finished, it will create a file called "response.json"
Edit this file with notepadd++ and I added the following: "productKey": "{replace with product key}","arch":"x64"}
Then, inside of my deployment share, I added the visual studio application and here is my command line: vs_professional.exe --passive --norestart --wait --in response.json
This will fully install Visual Studio 2022 with my company product key and its ready to roll!!
my internet is working fine. the DL link from the sketchy website even use MS sharepoint and it downloads at 1MB/s.
what precautions should i take?
I used a computer with internet to download and make a offline local layout folder via cmd and it started to download the C++ workloads etc. Then when it finished I copied the offline local layout folder onto a USB stick so I can begin installing it on the client pc that has no internet connection.
On the client pc how do I begin the offline install? Do I need to run it via CMD? I also want to use the —noweb flag to avoid it accessing anything from the web. I want this to be purely offline.
So how do I begin doing this? What do I type to start the offline install with the noweb flag and do I get to select the install location? Can anyone help me with what I need to type in cmd on the client pc?
Thanks
If you want to do an offline update from VS17.12 to 17.13 , you can follow below steps:
- Update the layout to a specific version of the product.
- Go to the Visual Studio 2022 Release History page and download a particular fixed version bootstrapper(e.g vs_Enterprise17.13.0), copy it into your layout, and use it to update the layout to that exact version specified in the bootstrapper.
- Run the --layout command in an elevated prompt to download the latest packages into your layout.
vs_enterprise.exe --layout c:\VSLayout
- Update your Visual Studio 2022 by running the Visual Studio Installer > Update or you can also use the following command:
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
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.
just out of curiosity, has anyone been able to get an offline installation of visual studio 2022 to actually install? i downloaded 31GB of dog shit installed the certificates
and the fucking piece of turd still tries to download shit and refuses to install
really don't appreciate having my time FLUSHED down the bowl like that
fucking scumbag visual studio developers
that product has completely jumped the shark
there is NO fucking reason microsoft shouldn't be providing visual studio isos today
they make you jump through pointless hoops and then it doesn't even fucking work
https://cdn.discordapp.com/attachments/197420215363960832/1005511008363749456/unknown.png
it's not just me fucking ridiculous can't wait until my next toilet requires an internet connection. then i'll be able to skip the middleman while FLUSHING
I am attempting a zero-touch deployment of a Windows 10 Enterprise VM and am installing 7 applications. So far when I test it, Windows and every application up until Visual Studio Community 2022 deploys without any issues or user input. When the mdt installer gets to VisualStudio, it doesn't install it at all, there is no initial installation that gets started, it is like it can't find the file. However, when I go and manually add the files I have mdt set to, to the deploying vm's drive and enter the same script I have mdt perform, into cmd, visual studio installs without any issues.
I have the offline installer installed, with only Managed Desktop and Net Web. My installation script is as follows: VisualStudioSetup.exe --quiet --norestart --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NetWeb
VisualStudioSetup.exe is an an application folder which contains about 2.94gb of files.
I am at my wits end trying to figure this out. I do not understand how it works when I manually enter the same script for the same file mdt has, and yet mdt can't even start the VS installation, yet all the other apps which use the same method of silent install script and point to the install file, works.
Any and all help would be greatly appreciated! I can provide more details if needed.
I have created a complete local layout and downloaded all of the components to a folder using the command:
vs_professional.exe --layout C:\Folder --lang en-US
However, when I run the command to install VS (PSDADT wrapper):
Execute-Process -Path "$mountpath\vs_setup.exe" -Parameters "--add Microsoft.VisualStudio.Workload.Data;IncludeRecommended --passive --force --nocache --wait"
I can see that the installer is still downloading some components:
Since I am using SCCM/MECM and I am trying to build a completely offline installer, I am worried about this apparent download during installation.
I am curious if this a "Real" download, or if the installer is just parsing through the files in the local layout and just calling it "downloading"?
Thoughts? thanks in advance.
I am trying to remove Visual Studio 2022 and .NET SDK 9.0.305 from an offline machine (no internet access). I can transfer files/resources from another machine, but all troubleshooting on the target system has to be offline.
I uninstalled Visual Studio 2022, but it still appears in Programs and Features. I am also trying to remove Microsoft .NET SDK 9.0.305, but when I try to uninstall the SDK, Windows says it was installed through Visual Studio and must be managed through the Visual Studio Installer.
The problem is that the Visual Studio Installer appears to be missing. The Installer folder / executable is not present on the machine (for example, "C:\Program Files (x86)\Microsoft Visual Studio\Installer\" is missing).
What I have tried so far:
• Tried to uninstall Visual Studio normally
• Tried to uninstall .NET SDK 9.0.305 from Programs and Features (blocked by Visual Studio Installer dependency)
• Tried an in place upgrade / repair path
• Downloaded an offline Visual Studio layout on another machine and transferred it
• Ran "vs_setup.exe --noWeb" from the layout folder
Current behavior:
• "vs_setup.exe --noWeb" launches, shows the Continue screen, then closes/disappears after I click Continue
• No visible installer process stays running after that
I am trying to avoid deleting broad Visual Studio / .NET registry entries blindly. I am open to targeted manual cleanup if that is the only practical option.
Does anyone have guidance on additional steps I can try to restore the installer enough to uninstall cleanly, or a safe way to remove the orphaned Visual Studio 2022 and .NET SDK 9.0.305 entries on an offline machine?
I code on a computer with no internet access.
When the 30 days trial has past and it tells you to sign in can I sign in from another computer with internet somehow and transfer it to the offline computer?