Browse Source

The {localappdata} constant can now correctly trigger a used user areas warning.

Martijn Laan 4 years ago
parent
commit
dc240e2557
3 changed files with 7 additions and 5 deletions
  1. 1 1
      ISHelp/isetup.xml
  2. 5 4
      Projects/Compile.pas
  3. 1 0
      whatsnew.htm

+ 1 - 1
ISHelp/isetup.xml

@@ -552,7 +552,7 @@ For example: If you used <tt>{src}\MYPROG.EXE</tt> on an entry and the user is i
 
 <dt><b><a name="localappdata">{localappdata}</a></b></dt>
 <dd>
-<p>The path to the local (nonroaming) Application Data folder.</p>
+<p>The path to the current user's local (nonroaming) Application Data folder.</p>
 </dd>
 
 <dt><b><a name="userappdata">{userappdata}</a></b> &amp; <b><a name="commonappdata">{commonappdata}</a></b></dt>

+ 5 - 4
Projects/Compile.pas

@@ -2720,12 +2720,13 @@ const
     'userinfoname', 'userinfoorg', 'userinfoserial', 'uninstallexe',
     'language', 'syswow64', 'sysnative', 'log', 'dotnet11', 'dotnet20', 'dotnet2032',
     'dotnet2064', 'dotnet40', 'dotnet4032', 'dotnet4064');
-  UserShellFolderConsts: array[0..9] of String = (
+  UserShellFolderConsts: array[0..10] of String = (
     'userdesktop', 'userstartmenu', 'userprograms', 'userstartup',
-    'userappdata', 'userdocs', 'usertemplates', 'userfavorites', 'usersendto', 'userfonts');
-  ShellFolderConsts: array[0..17] of String = (
+    'userappdata', 'userdocs', 'usertemplates', 'userfavorites', 'usersendto', 'userfonts',
+    'localappdata');
+  ShellFolderConsts: array[0..16] of String = (
     'group', 'commondesktop', 'commonstartmenu', 'commonprograms', 'commonstartup',
-    'commonappdata', 'commondocs', 'commontemplates', 'localappdata',
+    'commonappdata', 'commondocs', 'commontemplates',
     'autodesktop', 'autostartmenu', 'autoprograms', 'autostartup',
     'autoappdata', 'autodocs', 'autotemplates', 'autofavorites', 'autofonts');
   AllowedConstsNames: array[TAllowedConst] of String = (

+ 1 - 0
whatsnew.htm

@@ -65,6 +65,7 @@ For conditions of distribution and use, see <a href="https://jrsoftware.org/file
   <li>Links displayed by [Setup] section directives <tt>LicenseFile</tt>, <tt>InfoBeforeFile</tt> and <tt>InfoAfterFile</tt> are now executed as the original user if possible when clicked.</li>
   <li>Added new [Setup] section directives <tt>MissingMessagesWarning</tt> and <tt>NotRecognizedMessagesWarning</tt> to disable warnings about messages missing or not recognized for a language.</li>
   <li>/LOG: Now logs more uninstaller actions.</li>
+  <li>The <tt>{localappdata}</tt> constant can now correctly trigger a <a href="https://jrsoftware.org/ishelp/index.php?topic=setup_useduserareaswarning">used user areas warning</a>.</li>
   <li>Compiler IDE change: <i>Fix:</i> Autocomplete support for event functions listed some procedures as functions.</li>
   <li>Pascal Scripting changes:
   <ul>