Probably you should use the --noWeb
option:
How did you download the files?
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I Downloaded Visual Studio complete file of 27GB but I don't know how to install it using cmd.
If I run the .exe, it is requesting to go online and download file before installation.
Probably you should use the --noWeb
option:
How did you download the files?
Hello @Ugochukwu Onyeaka ,
Welcome to Microsoft Q&A forum.
The complete steps for offline installing VS are
Since VS 2022 doesn’t provide ISO/DVD version, you downloaded the complete file, I think you mean you have used command lines to download VS and generate a layout? If so, either running the .exe file or using command lines to install VS should work(without network).
It is requesting to go online and download file before installation.
Kindly check following:
--verify
and --fix
arguments to fix your layout. Move it to the offline machine and install VS again.I don’t know how to install it using cmd.
=> For example, you used following command line to generate a layout:
vs_enterprise.exe --layout c:\localVSlayout
Then you need to use following command line to install VS:
Run CMD as admin, run c:\localVSlayout\vs_enterprise.exe --noWeb
=> Another example, you used following command line to download VS:
vs_enterprise.exe --layout c:\localVSlayout --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NetWeb --add Component.GitHub.VisualStudio --includeOptional --lang en-US
Then you need to use following command line to install VS:
Run CMD as admin, run c:\localVSlayout\vs_enterprise.exe --noWeb --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NetWeb --add Component.GitHub.VisualStudio --includeOptional
See this document: Install Visual Studio from the local layout for more details.
Best Regards,
Tianyu
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.