'Visual Studio 2019 installer Error "The source layout directory is too long"
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.
Solution 1:[1]
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.
Solution 2:[2]
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
Solution 3:[3]
easily, just rename the sub folder to the shorter. follow the video in this link
Solution 4:[4]
Rename the installation file folder For example VS2022
Solution 5:[5]
I moved The Whole Setup to my c drive and it worked. I have 500GB of free space in my C Drive
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Teja |
| Solution 2 | washie mugo |
| Solution 3 | Ali Eshghi |
| Solution 4 | Ali REza |
| Solution 5 | Malik |
