git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5952 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2009-03-20 12:11:57 +00:00
parent 5b7c28bbe9
commit edc558b987

View file

@ -637,12 +637,12 @@ char * NSISCALL GetNSISString(char *outbuf, int strtab)
SHGetFolderPath as provided by shfolder.dll is used to get special folders SHGetFolderPath as provided by shfolder.dll is used to get special folders
unless the installer is running on Windows 95/98. For 95/98 shfolder.dll is unless the installer is running on Windows 95/98. For 95/98 shfolder.dll is
only used for the Application Data and Documents folder (if the DLL exists). only used for the Application Data and Documents folder (if the DLL exists).
Oherwise, the old SHGetSpecialFolderLocation API is called. Otherwise, the old SHGetSpecialFolderLocation API is called.
There reason for not using shfolder.dll for all folders on 95/98 is that The reason for not using shfolder.dll for all folders on 95/98 is that some
some unsupported folders (such as the Start Menu folder for all users) are unsupported folders (such as the Start Menu folder for all users) are
simulated instead of returning an error so whe can fall back on the folder simulated instead of returning an error so we can fall back on the current
for the current user. user folder.
SHGetFolderPath in shell32.dll could be called directly for Windows versions SHGetFolderPath in shell32.dll could be called directly for Windows versions
later than 95/98 but there is no need to do so, because shfolder.dll is still later than 95/98 but there is no need to do so, because shfolder.dll is still