Here is a practical example for :

Microsoft Visual Studio 2022 is the most advanced and sophisticated Integrated Development Environment (IDE) from Microsoft. It is the go-to tool for developers building applications ranging from desktop software to cloud-based web apps and mobile solutions. While the standard web installer is the default method for acquisition, it isn't always the best solution for everyone.

vs_Community.exe --layout C:\VS2022_Offline --clean

If the installation fails due to signature errors on an offline machine, go to the Certificates subfolder in your layout and manually install all .cer files to the Trusted Root Certification Authorities .