Problems installing Visual Studio 2022 from local files

Peter Ashford 0 Reputation points
2025-02-11T05:14:33.6766667+00:00

I'm having continuing problems updating/installing Visual Studio 2022 from an offline layout.

The Visual Studio offline installer and package tree were downloaded according to the following link:

https://learn.microsoft.com/en-us/visualstudio/install/create-an-offline-installation-of-visual-studio?view=vs-2022

Commands on Internet connected system:

vs_Professional.exe --layout c:\Temp\vslayout --lang en-US

vs_Professional.exe --layout c:\Temp\vslayout --lang en-US --verify (77 missing packages)

vs_Professional.exe --layout c:\Temp\vslayout --lang en-US --fix

vs_Professional.exe --layout c:\Temp\vslayout --lang en-US --verify (all packages OK)

The 70.1GB tree was then transferred to the system to be updated.

Command on air-gap system:

.\vs_setup.exe --layout F:\vslayout\ --noweb

Error from Visual Studio Installer:

Setup can't continue.  We need to download some files to complete the operation, but the --noweb parameter was specified.  Please remove the --noweb parameter and try again.

Current best guess is that the previous install of 2022 was from a different location and that location is saved in Visual Studio ... somewhere.

Uninstall performed.

https://learn.microsoft.com/en-us/visualstudio/install/uninstall-visual-studio?view=vs-2022#uninstall-visual-studio

'C:\Program Files (x86)\Microsoft Visual Studio\Installer\InstallCleanup.exe' -i 17

Ran the installation command (.\vs_setup.exe --layout F:\vslayout\ --noweb) again. Same error. Logs say that it's trying to install from the Internet.

Collected the logs.

https://www.microsoft.com/en-us/download/details.aspx?id=12493

Reported problem (doing that now):

https://learn.microsoft.com/en-us/answers/questions/ask/

The 'vslogs.zip' file couldn't be attached due to limitations in this. How do I get the log files uploaded?

From WINVER:

Windows Server 2016

Version 1607

OS Build 14393.7699

Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
1,087 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Tianyu Sun-MSFT 32,861 Reputation points Microsoft Vendor
    2025-02-11T07:15:31.2666667+00:00

    Hello @Peter Ashford ,

    Welcome to Microsoft Q&A forum.

    I notice that you are using .\vs_setup.exe --layout F:\vslayout\ --noweb command to install Visual Studio 2022 offline. Please try to not use the --layout parameter, instead, navigate to the layout and then install VS. For example:

    Use cd F:\vslayout then vs_setup.exe --noweb. Or directly use F:\vslayout\vs_setup.exe --noweb.

    Have a nice day!

    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.


  2. Peter Ashford 0 Reputation points
    2025-02-11T07:21:08.9666667+00:00

    At this time, the issue appears to be that someone installed Visual Studio from the Internet. This must have been while the system was being built, as it's no longer connected to the Internet, and can't be.

    We need a way to remove/clear the setting for the installation location so that the installer will recognize the offline layout. When we run the installer, we end up waiting for the Internet to respond, which it never will.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.