Hi @Mehtout ,
Welcome to Microsoft Q&A!
Please refer to the following document to create an offline installation for Visual Studio.
Create an offline installation - Visual Studio (Windows) | Microsoft Learn
You need to first create a local layout on the PC with internet connection, then, copy the layout folder into the pc without internet connection to install it.
You can find the .exe file and downloaded packages in the layout folder.
Sincerely,
Anna
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.