Install path requirements are
short ASCII-only path on a NTFS volume, no accents, no spaces, no symlinks, no subst or network drives, no FAT
This is absurd in modern days. Why don't you use Windows API to handle paths? It would handle all mentioned cases, including reparse points, ReFS, / to \ translation and more.