Create install_config.json :
D:\VS2022_Offline\vs_community.exe --quiet --wait --norestart microsoft visual studio 2022 community offline installer
By default, the Visual Studio Installer downloads components from the internet as it installs them on your machine. However, creating an offline layout is highly beneficial for: Limited or No Internet Connectivity: Create install_config
Installs safely in environments with low bandwidth or intermittent internet. microsoft visual studio 2022 community offline installer
The tool will now download the manifest and then all necessary packages. This can take anywhere from 20 minutes to several hours depending on your internet speed and selected components. You will see a progress bar and a list of packages being acquired.