Is there any easy way in IS6 to get the \Documents and Settings\All Users\Application Data path?
... or any of the other paths returned by SHGetFolderPath ?
My current tactic is to GetEnvVar("ALLUSERSPROFILE",... and append "Application Data" to it along with my sub-path, but I'm guessing that won't work on NT, and it's not really what MS recommends...
This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
finding D&S\All Users\Application Data dir
Started by
Jeff Spindler
, May 23 2002 17:12
4 replies to this topic
Posted 23 May 2002 - 19:45
How about this bypass...
Read the REG_SZ value "Common AppData"
in the hive HKEY_LOCAL_MACHINE using this key
"Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders"
It has a veritable goldmine of directory paths in that registry key.
Read the REG_SZ value "Common AppData"
in the hive HKEY_LOCAL_MACHINE using this key
"Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders"
It has a veritable goldmine of directory paths in that registry key.
Posted 25 May 2002 - 01:47
Not sure what you need this information for, but, for what it's worth, I use the following to look up the location of a known all-users program group.
Code Sample |
nResult = QueryProgItem(FOLDER_PROGRAMS, szFolder, svCmdLine, svWrkDir, svIconPath, nvIconIndex, svShortCutKey, nvMinimizeFlag); if ( !(nResult < 0) ) then Debug("DEBUG: The queried program folder is '"+svCmdLine+"'.", INFORMATION); else SprintfBox(SEVERE, "", "Querying the program folder produced an error code of '%d'.", nResult); endif; |
Posted 26 June 2002 - 23:14
Quote (Blake Miller Wonder @ May 23 2002,18:45) |
How about this bypass... Read the REG_SZ value "Common AppData" in the hive HKEY_LOCAL_MACHINE using this key "Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" It has a veritable goldmine of directory paths in that registry key. |
But if the system doesn't has Common AppData entry under:
"Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders", what should we do?
Posted 27 June 2002 - 15:49
Many of these directories are new with the Windows 2000 and later versions of Windows 9X. If they are missing, then I think you need to either create one or just do what people used to do and place the files in some location you can ask the user to select with a directory selector dialog.