Modify or add new Components Visual Studio Pro 2022 without Internet Access
Hi, I have a issue with add new components on Visual Studio pro 2022 without Internet Access. I have Power shell script for adding new components or Workloads. I have my layout local on the client machine. f:\VisualStudio2022 I am connecting as Administrator to the f:\VisualStudio2022 with Power Shell
and run the following command line
.vs_Professional.exe modify --installpath "C:\Program Files\Microsoft Visual Studio\2022\Professional" --add Microsoft.VisualStudio.Component.VC.188.8.131.52.x86.x64 --add Microsoft.VisualStudio.Component.VC.184.108.40.206.ATL --add Microsoft.VisualStudio.Component.VC.220.127.116.11.MFC --quiet
After the command line finished, I did run "Visual Studio Installer" and check whether my components I added, is installed or not. It seems, it is not added and is not checked . It should be added Components as following screenshot
But It is not checked as above screenshot I need a solution because all my client machine does not have any Internet Access. Regards
Hi @PerserPolis-1732 ,
Thank you for sharing us the log file.
I have tested the command that you used, and I can confirm that it’s correct and should work.
Above log file shows "Option env is unknown" and "Closing the installer with exit code 87", but don’t seem to provide enough information for further check.
Is it possible for you to try to manually select one or two or three(just for test) of those components and install them manually(in VS Installer) to see if they can be successfully installed with the offline layout on your machine. This is useful for narrowing down this issue.
Sign in to comment