The paths are on a standard Windows 7 x64 machine installed on the C: drive. More recent versions of Windows should use the same place.
I’ve not been able to verify this in a domain situation with roaming profiles and redirected folder paths. If anyone has info on that, please let me know.
Anyway, I’ve made some the constants into a table:
Inno Setup constant [WayBack] |
Windows 7 directory | KNOWNFOLDERID [Archive.is] |
CSIDL (<= Vista) [WayBack] ([WayBack]) |
Environment variable [WayBack] |
System.Environment.SpecialFolder [WayBack] |
---|---|---|---|---|---|
commonappdata | C:\ProgramData | FOLDERID_ProgramData | CSIDL_COMMON_APPDATA | ALLUSERSPROFILE | System.Environment.SpecialFolder.CommonApplicationData |
localappdata | C:\Users\<UserName>\AppData\Local | FOLDERID_LocalAppData | CSIDL_LOCAL_APPDATA | LOCALAPPDATA | System.Environment.SpecialFolder.LocalApplicationData |
userappdata | C:\Users\<UserName>\AppData\Roaming | FOLDERID_RoamingAppData | CSIDL_APPDATA | APPDATA | System.Environment.SpecialFolder.ApplicationData |
One day I might find time to make this table more complete.
Until then, the code is somewhere around theses pieces of code: