瀏覽代碼

Updated help and demo.

Martijn Laan 12 年之前
父節點
當前提交
bc7b88ecf5
共有 2 個文件被更改,包括 14 次插入0 次删除
  1. 5 0
      Examples/CodeExample1.iss
  2. 9 0
      ishelp/isx.xml

+ 5 - 0
Examples/CodeExample1.iss

@@ -56,6 +56,11 @@ begin
     FinishedInstall := True;
 end;
 
+procedure CurInstallProgressChanged(CurrentProgress, MaximumProgress: Integer; CurStep: TInstallStep);
+begin
+  Log('CurInstallProgressChanged(' + IntToStr(CurrentProgress) + ', ' + IntToStr(MaximumProgress) + ', ' + IntToStr(Ord(CurStep)) + ') called');
+end;
+
 function NextButtonClick(CurPageID: Integer): Boolean;
 var
   ResultCode: Integer;

+ 9 - 0
ishelp/isx.xml

@@ -86,6 +86,7 @@
 <keyword value="InitializeWizard" anchor="InitializeWizard" />
 <keyword value="DeinitializeSetup" anchor="DeinitializeSetup" />
 <keyword value="CurStepChanged" anchor="CurStepChanged" />
+<keyword value="CurInstallProgressChanged" anchor="CurInstallProgressChanged" />
 <keyword value="NextButtonClick" anchor="NextButtonClick" />
 <keyword value="BackButtonClick" anchor="BackButtonClick" />
 <keyword value="CancelButtonClick" anchor="CancelButtonClick" />
@@ -156,6 +157,11 @@
 <p>Called with CurStep=ssInstall just before the actual installation starts, with CurStep=ssPostInstall just after the actual installation finishes, and with CurStep=ssDone just before Setup terminates after a successful install.</p>
 </dd>
 
+<dt><tt>procedure <a name="CurInstallProgressChanged">CurInstallProgressChanged</a>(CurrentProgress, MaximumProgress: Integer; CurStep: <anchorlink name="TInstallStep">TInstallStep</anchorlink>);</tt></dt>
+<dd>
+<p>You can use this event function to monitor progress while Setup is extracting files, creating shortcuts, creating INI entries, and creating registry entries.</p>
+</dd>
+
 <dt><tt>function <a name="NextButtonClick">NextButtonClick</a>(<anchorlink name="PageID">CurPageID</anchorlink>: Integer): Boolean;</tt></dt>
 <dd>
 <p>Called when the user clicks the Next button. If you return True, the wizard will move to the next page; if you return False, it will remain on the current page (specified by CurPageID).</p>
@@ -267,6 +273,9 @@
 <li><i><a name="TSetupStep">TSetupStep values</a></i><br />
 ssInstall, ssPostInstall, ssDone</li>
 
+<li><i><a name="TInstallStep">TInstallStep values</a></i><br />
+isExtractFiles, isCreateIcons, isCreateIniEntries, isCreateRegistryEntries</li>
+
 <li><i><a name="TUninstallStep">TUninstallStep value</a>s</i><br />
 usAppMutexCheck, usUninstall, usPostUninstall, usDone</li>