From 7e8e0b95ddbe02bec3876de25b9f4da1ecce2e9e Mon Sep 17 00:00:00 2001 From: kichik Date: Sat, 7 May 2005 05:33:55 +0000 Subject: [PATCH] implemented RFE #1172123 - $LOCALAPPDATA git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4015 212acab6-be3b-0410-9dea-997c60f758d6 --- Docs/src/var.but | 6 ++++++ Source/Platform.h | 3 +++ Source/build.cpp | 1 + 3 files changed, 10 insertions(+) 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);