Originally posted by kichikI know this is an old thread, but that's exactly why I am asking: Is the above still valid?
Seems like a bug in SHGetSpecialFolderPath that the workaround uses rather than a bug in SHGetSpecialFolderLocation which NSIS uses. If a policy in the domain or on the local computer disables the shared documents folder, it shouldn't be accessed. The fact that it still exists doesn't mean it's used.
As for $DOCUMENTS getting the user's path, that's just how every variable works. If the folder for all users can't be found, the current user's folder is used. This way, there should never be an empty shell variable unless it really doesn't exist.
What has been the verdict by the NSIS gurus?
Is this a documented feature in Windows? or a bug in NSIS?
If the latter, has it been fixed since then?