Visual Studio 2019 installer Error "The source layout directory is too long"

Viewed 6574

I made an offline installer of the VS Community 2019. When running from that location the installer reports the following error:

The source layout directory is too long. The layout directory name must be less than {0} characters.

5 Answers

Windows OS has this restriction that your path cannot be greater than a certain number. Install it in a simpler drive level directories like "C:\Program Files\Visual Studio" or "C:\Visual Studio". More hierarchy adds to your limit and VS installation itself creates numerous inner level directories and at some point, some of those might hit the limit.

this happens when the path is too long: Fix: copy the setup directory to C:> rename the folder containing the setup files to a short name like VS

That should work

easily, just rename the sub folder to the shorter. follow the video in this link

Rename the installation file folder For example VS2022

I moved The Whole Setup to my c drive and it worked. I have 500GB of free space in my C Drive

Related