Visual Studio 2022 Build Tools: which path triggers “The root installation path is too long for this product”?

Dave D 0 Reputation points
2026-11-30T14:12:13.76+00:00

On Windows 11, Visual Studio 2022 Build Tools 17.14.45 exited with code 1. The requested --installPath was C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools-CandidateA.

In the matching dd_installer log, line 151 says “Warning: The root installation path is too long for this product.” Lines 158–159 record exit code 1. The matching dd_setup log shows no package failure, and its companion errors log is empty.

Does “root installation path” refer specifically to --installPath here? What length limit applies to this version, and which log entry would confirm whether this warning caused setup to stop?

Developer technologies | Visual Studio | Setup

Your answer

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