: vs_community.exe (Free for individuals and open-source)
Open the local layout folder ( C:\VSLayout ) on the offline machine. Right-click the bootstrapper file inside that folder. Select . The Visual Studio Installer will open using local files. Select your workloads and click Install . Tips for Maintaining Offline Layouts
To keep your offline installer updated without re-downloading the entire package, simply run the --layout command again on your internet-connected machine using the . The tool will intelligently download only the files that have changed since your last download, saving significant time and bandwidth.
Copy that folder to a USB drive, and you now have a portable, install-anywhere version of Visual Studio 2022.
Once the layout is ready, copy the entire folder (e.g., C:\VS2022_Offline ) to your target offline machine using a USB drive or external hard drive.
c:\VS2022Offline\vs_setup.exe --add all --quiet