Create a new folder for your standalone installer and copy the extracted installation files into it. Navigate to the vs_community (or vs_professional / vs_enterprise ) folder and run the following command in the Command Prompt or PowerShell:
Suppose you want to create a standalone installer for Visual Studio 2022 Community Edition with the .NET desktop development workload. You would: visual studio 2022 standalone installer
# Run the standalone installer & "$standaloneInstallerFolder\vs_installer.exe" Create a new folder for your standalone installer
On the target machine (no internet required): visual studio 2022 standalone installer
Use the with command-line arguments to create a local layout.