Default Windows Install directory by MSYSTEM
The directory name is only a part of the problem. Also registry keys overlap, and that's arguably a bigger problem, and it affects also older branches.
Reply To cazfi
The directory name is only a part of the problem. Also registry keys overlap, and that's arguably a bigger problem, and it affects also older branches.
Also; all kinds of Window builds touching registry are affected. Let's keep this ticket about the msys2/autotools case (the most critical one, as that's what releases from stable branches use)
Patch also for S2_6 attached.
Next step in series -> #47343
In S3_0 we had just "win32" and "win64" targets, and Windows has separate directory hierarchies for those. But in S3_1 we have "win64" and "win64-10", which Windows installs (by default) to the same hierarchy. Their directory names should differ, so that they can be installed in parallel (especially for our own testing / debugging), and not to overwrite each other. Such overwrite likely mess things so that clean uninstall of both installations will require extra hacking from user's side.