diff --git a/Docs/src/var.but b/Docs/src/var.but index 1a7eabdc..a08acf27 100644 --- a/Docs/src/var.but +++ b/Docs/src/var.but @@ -156,6 +156,12 @@ The application data directory. Detection of the current user path requires Inte This constant is not available on Windows 95 with Internet Explorer 4 and Active Desktop not installed. +\e{$LOCALAPPDATA} + +The local (nonroaming) application data directory. + +This constant is available on Windows 2000 and above. + \e{$PRINTHOOD} The directory that contains link objects that may exist in the Printers folder. diff --git a/Source/Platform.h b/Source/Platform.h index b88b77ce..7190ea01 100644 --- a/Source/Platform.h +++ b/Source/Platform.h @@ -271,6 +271,9 @@ typedef WORD LANGID; #ifndef CSIDL_COMMON_APPDATA # define CSIDL_COMMON_APPDATA 0x23 #endif +#ifndef CSIDL_LOCAL_APPDATA +# define CSIDL_LOCAL_APPDATA 0x1C +#endif #ifndef CSIDL_PRINTHOOD # define CSIDL_PRINTHOOD 0x1B #endif diff --git a/Source/build.cpp b/Source/build.cpp index 00ebf792..55800279 100644 --- a/Source/build.cpp +++ b/Source/build.cpp @@ -445,6 +445,7 @@ definedlist.add("NSIS_SUPPORT_LANG_IN_STRINGS"); m_ShellConstants.add("FONTS", CSIDL_FONTS, CSIDL_FONTS); m_ShellConstants.add("TEMPLATES", CSIDL_TEMPLATES, CSIDL_COMMON_TEMPLATES); m_ShellConstants.add("APPDATA", CSIDL_APPDATA, CSIDL_COMMON_APPDATA); + m_ShellConstants.add("LOCALAPPDATA", CSIDL_LOCAL_APPDATA, CSIDL_LOCAL_APPDATA); m_ShellConstants.add("PRINTHOOD", CSIDL_PRINTHOOD, CSIDL_PRINTHOOD); //m_ShellConstants.add("ALTSTARTUP", CSIDL_ALTSTARTUP, CSIDL_COMMON_ALTSTARTUP); m_ShellConstants.add("INTERNET_CACHE", CSIDL_INTERNET_CACHE, CSIDL_INTERNET_CACHE);