Преглед на файлове

If the Flags parameter of a [Files] entry includes isreadme and the entry also has a BeforeInstall or AfterInstall parameter, the BeforeInstall or AfterInstall functions will now only be called when the file is installed and no longer a second time when the file is viewed file after the installation has completed.

Closes #36.
Martijn Laan преди 12 години
родител
ревизия
41a6a5f389
променени са 2 файла, в които са добавени 3 реда и са изтрити 2 реда
  1. 2 2
      Projects/Compile.pas
  2. 1 0
      whatsnew.htm

+ 2 - 2
Projects/Compile.pas

@@ -5970,8 +5970,8 @@ type
         NewRunEntry.Tasks := NewFileEntry.Tasks;
         NewRunEntry.Tasks := NewFileEntry.Tasks;
         NewRunEntry.Languages := NewFileEntry.Languages;
         NewRunEntry.Languages := NewFileEntry.Languages;
         NewRunEntry.Check := NewFileEntry.Check;
         NewRunEntry.Check := NewFileEntry.Check;
-        NewRunEntry.BeforeInstall := NewFileEntry.BeforeInstall;
-        NewRunEntry.AfterInstall := NewFileEntry.AfterInstall;
+        NewRunEntry.BeforeInstall := '';
+        NewRunEntry.AfterInstall := '';
         NewRunEntry.MinVersion := NewFileEntry.MinVersion;
         NewRunEntry.MinVersion := NewFileEntry.MinVersion;
         NewRunEntry.OnlyBelowVersion := NewFileEntry.OnlyBelowVersion;
         NewRunEntry.OnlyBelowVersion := NewFileEntry.OnlyBelowVersion;
         NewRunEntry.Options := [roShellExec, roSkipIfDoesntExist, roPostInstall,
         NewRunEntry.Options := [roShellExec, roSkipIfDoesntExist, roPostInstall,

+ 1 - 0
whatsnew.htm

@@ -52,6 +52,7 @@ For conditions of distribution and use, see <a href="http://www.jrsoftware.org/f
   <li>When <tt>ExtractTemporaryFile</tt> or <tt>ExtractTemporaryFiles</tt> extracts a file, this is now logged.</li>
   <li>When <tt>ExtractTemporaryFile</tt> or <tt>ExtractTemporaryFiles</tt> extracts a file, this is now logged.</li>
 </ul>
 </ul>
 </li>
 </li>
+<li>If the <tt>Flags</tt> parameter of a [Files] entry includes <tt>isreadme</tt> and the entry also has a <tt>BeforeInstall</tt> or <tt>AfterInstall</tt> parameter, the <tt>BeforeInstall</tt> or <tt>AfterInstall</tt> functions will now only be called when the file is installed and no longer a second time when the file is viewed file after the installation has completed.</li>
 <li>The Inno Setup help file source code has been moved into the main Inno Setup source code repository.</li>
 <li>The Inno Setup help file source code has been moved into the main Inno Setup source code repository.</li>
 <li><i>Fix:</i> [Setup] section directive <tt>CloseApplicationsFilter</tt> was partially case sensitive.</li>
 <li><i>Fix:</i> [Setup] section directive <tt>CloseApplicationsFilter</tt> was partially case sensitive.</li>
 <li>Minor tweaks.</li>
 <li>Minor tweaks.</li>