瀏覽代碼

The {sendto} constant has been renamed to {usersendto} and now can correctly trigger a used user areas warning. It still returns the same directory: the path to the current user's Send To folder. (There is no common Send To folder.)

Martijn Laan 7 年之前
父節點
當前提交
12470bdd77
共有 4 個文件被更改,包括 19 次插入13 次删除
  1. 6 6
      ISHelp/isetup.xml
  2. 4 4
      Projects/Compile.pas
  3. 2 2
      Projects/Main.pas
  4. 7 1
      whatsnew.htm

+ 6 - 6
ISHelp/isetup.xml

@@ -342,7 +342,6 @@ This " contains " embedded " quotes
 <keyword value="{pf64}" anchor="pf64" />
 <keyword value="{reg:...}" anchor="reg" />
 <keyword value="{sd}" anchor="sd" />
-<keyword value="{sendto}" anchor="sendto" />
 <keyword value="{src}" anchor="src" />
 <keyword value="{srcexe}" anchor="srcexe" />
 <keyword value="{sys}" anchor="sys" />
@@ -362,6 +361,7 @@ This " contains " embedded " quotes
 <keyword value="{username}" anchor="username" />
 <keyword value="{userpf}" anchor="userpf" />
 <keyword value="{userprograms}" anchor="userprograms" />
+<keyword value="{usersendto}" anchor="usersendto" />
 <keyword value="{userstartmenu}" anchor="userstartmenu" />
 <keyword value="{userstartup}" anchor="userstartup" />
 <keyword value="{usertemplates}" anchor="usertemplates" />
@@ -530,11 +530,6 @@ For example: If you used <tt>{src}\MYPROG.EXE</tt> on an entry and the user is i
 <p>The path to the local (nonroaming) Application Data folder.</p>
 </dd>
 
-<dt><b><a name="sendto">{sendto}</a></b></dt>
-<dd>
-<p>The path to the current user's Send To folder. (There is no common Send To folder.)</p>
-</dd>
-
 <dt><b><a name="userappdata">{userappdata}</a></b> &amp; <b><a name="commonappdata">{commonappdata}</a></b></dt>
 <dd>
 <p>The path to the Application Data folder.</p>
@@ -570,6 +565,11 @@ For example: If you used <tt>{src}\MYPROG.EXE</tt> on an entry and the user is i
 <p>The path to the Programs folder on the Start Menu.</p>
 </dd>
 
+<dt><b><a name="usersendto">{usersendto}</a></b></dt>
+<dd>
+<p>The path to the current user's Send To folder. (There is no common Send To folder.)</p>
+</dd>
+
 <dt><b><a name="userstartmenu">{userstartmenu}</a></b> &amp; <b><a name="commonstartmenu">{commonstartmenu}</a></b> *</dt>
 <dd>
 <p>The path to the top level of the Start Menu.</p>

+ 4 - 4
Projects/Compile.pas

@@ -2864,12 +2864,12 @@ const
     'userinfoname', 'userinfoorg', 'userinfoserial', 'uninstallexe',
     'language', 'syswow64', 'log', 'dotnet11', 'dotnet20', 'dotnet2032',
     'dotnet2064', 'dotnet40', 'dotnet4032', 'dotnet4064', 'userpf', 'usercf');
-  UserShellFolderConsts: array[0..7] of String = (
+  UserShellFolderConsts: array[0..8] of String = (
     'userdesktop', 'userstartmenu', 'userprograms', 'userstartup',
-    'userappdata', 'userdocs', 'usertemplates', 'userfavorites');
-  ShellFolderConsts: array[0..10] of String = (
+    'userappdata', 'userdocs', 'usertemplates', 'userfavorites', 'usersendto');
+  ShellFolderConsts: array[0..9] of String = (
     'group', 'commondesktop', 'commonstartmenu', 'commonprograms', 'commonstartup',
-    'sendto', 'commonappdata', 'commondocs', 'commontemplates', 'localappdata',
+    'commonappdata', 'commondocs', 'commontemplates', 'localappdata',
     'commonfavorites');
   AllowedConstsNames: array[TAllowedConst] of String = (
     'olddata', 'break');

+ 2 - 2
Projects/Main.pas

@@ -974,10 +974,10 @@ function ExpandIndividualConst(const Cnst: String;
 const
   FolderConsts: array[Boolean, TShellFolderID] of String =
     (('userdesktop', 'userstartmenu', 'userprograms', 'userstartup',
-      'sendto', 'fonts', 'userappdata', 'userdocs', 'usertemplates',
+      'usersendto', 'fonts', 'userappdata', 'userdocs', 'usertemplates',
       'userfavorites', 'localappdata'),
      ('commondesktop', 'commonstartmenu', 'commonprograms', 'commonstartup',
-      'sendto', 'fonts', 'commonappdata', 'commondocs', 'commontemplates',
+      'usersendto', 'fonts', 'commonappdata', 'commondocs', 'commontemplates',
       'commonfavorites', 'localappdata'));
   NoUninstallConsts: array[0..6] of String =
     ('src', 'srcexe', 'userinfoname', 'userinfoorg', 'userinfoserial', 'hwnd',

+ 7 - 1
whatsnew.htm

@@ -26,12 +26,18 @@ Portions Copyright &copy; 2000-2018 Martijn Laan. All rights reserved.<br />
 For conditions of distribution and use, see <a href="http://www.jrsoftware.org/files/is/license.txt">LICENSE.TXT</a>.
 </p>
 
+<p><a name="5.6.1"></a><span class="ver">5.6.1 </span><span class="date">(?)</span></p>
+<ul>
+<li>The <tt>{sendto}</tt> constant has been renamed to <tt>{usersendto}</tt> and now can correctly trigger a <a href="#useduserareaswarnings">used user areas warning</a>. It still returns the same directory: the path to the current user's Send To folder. (There is no common Send To folder.)</li>
+<li>Minor tweaks.</li>
+</ul>
+
 <p><a name="5.6.0"></a><span class="ver">5.6.0 </span><span class="date">(2018-06-08)</span></p>
 <ul>
 <li>/LOG: Now logs registry entries.</li>
 <li>Compiler IDE change: Syntax highlighting and syntax error underlining support for <tt>#include</tt> and ISPP has been significantly improved (with ISPP installed: <a href="https://i.imgur.com/nPiun9k.png">before</a> and <a href="https://i.imgur.com/HoJaBRP.png">after</a>, without ISPP installed: <a href="https://i.imgur.com/nPiun9k.png">before</a> and <a href="https://i.imgur.com/ro0ejL3.png">after</a></li>
 <li><b>Change in default behavior:</b> If [Setup] section directive <tt>DisableWelcomePage</tt> is set to <tt>yes</tt> (which it is by default), then the title of the wizard now includes <tt>AppVerName</tt> instead of <tt>AppName</tt>, in other words: it now includes the version number of the application. If <tt>WindowVisible</tt> is set to <tt>yes</tt> this applies to the background window instead.</li>
-<li>Regardless of the version of Windows, if the installation is administrative then you should be careful about making any per-user area changes: such changes may not achieve what you are intending. The compiler will now warn you about this, which can be disabled using new [Setup] section directive <tt>UsedUserAreasWarning</tt>.</tt>
+<li><a name="useduserareaswarnings">Regardless of the version of Windows</a>, if the installation is administrative then you should be careful about making any per-user area changes: such changes may not achieve what you are intending. The compiler will now warn you about this, which can be disabled using new [Setup] section directive <tt>UsedUserAreasWarning</tt>.</tt>
 <li>Improved support for high DPI systems:
 <ul>
   <li>The <tt>WizardImageFile</tt> and <tt>WizardSmallImageFile</tt> [Setup] section directives now may list multiple files. This support wildcards. When multiple files are specified, Setup will automatically select the one which best matches the system's DPI setting. See the help file for a list of recommended sizes. Note: when you test this be sure to first log out and back in after any DPI change.</li>