This error occurs when Windows Library folders are on Network Drives, or as was said:
If you've moved the standard Windows folders (for example to a network share) then the installer may crash with the error "Failed to expand shell folder constant userdocs"."
There was a work around posted:
But this is unacceptable as it opens the drives up to security vulnerabilities.